Interface QueryResult<T>


  • public interface QueryResult<T>
    Individual result of a query operation. Used by QueryType to translate results into a suitable representation.
    Author:
    Andreas Holstenson
    • Method Summary

      Modifier and Type Method Description
      T getData()
      Get the main data of the result.
      <R> R getMetadata​(String key)
      Get some metadata from this query result.
      default <R> R getMetadata​(String key, R defaultValue)
      Get some metadata from this query result.
    • Method Detail

      • getData

        T getData()
        Get the main data of the result.
        Returns:
      • getMetadata

        <R> R getMetadata​(String key)
        Get some metadata from this query result.
        Parameters:
        key -
        Returns:
      • getMetadata

        default <R> R getMetadata​(String key,
                                  R defaultValue)
        Get some metadata from this query result.
        Parameters:
        key -
        defaultValue -
        Returns: