Class SimpleQueryResult

  • All Implemented Interfaces:
    QueryResult

    public class SimpleQueryResult
    extends Object
    implements QueryResult
    Simple query result implementation.
    • Constructor Detail

      • SimpleQueryResult

        protected SimpleQueryResult​(String[] columnNames,
                                    String[] selectorNames,
                                    RowIterator rowIterator)
        Creates a query result with the given column and selector names and row iterator.
        Parameters:
        columnNames - column names
        selectorNames - selector names
        rowIterator - iterator over matching rows
    • Method Detail

      • getColumnNames

        public String[] getColumnNames()
        Returns the column names of this query. Note that the returned array is not protected against modification by the client application.
        Specified by:
        getColumnNames in interface QueryResult
        Returns:
        column names
      • getSelectorNames

        public String[] getSelectorNames()
        Returns the selector names of this query. Note that the returned array is not protected against modification by the client application.
        Specified by:
        getSelectorNames in interface QueryResult
        Returns:
        selector names