Class LimitedRowsAndColumns
- java.lang.Object
-
- org.apache.druid.query.rowsandcols.LimitedRowsAndColumns
-
- All Implemented Interfaces:
RowsAndColumns
public class LimitedRowsAndColumns extends Object implements RowsAndColumns
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.druid.query.rowsandcols.RowsAndColumns
RowsAndColumns.RowsAndColumnsDeserializer, RowsAndColumns.RowsAndColumnsSerializer
-
-
Constructor Summary
Constructors Constructor Description LimitedRowsAndColumns(RowsAndColumns rac, int start, int end)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Column
findColumn(String name)
Finds a column by name.Collection<String>
getColumnNames()
The set of column names available from the RowsAndColumnsint
numRows()
The number of rows in the RowsAndColumns object-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.druid.query.rowsandcols.RowsAndColumns
as
-
-
-
-
Constructor Detail
-
LimitedRowsAndColumns
public LimitedRowsAndColumns(RowsAndColumns rac, int start, int end)
-
-
Method Detail
-
getColumnNames
public Collection<String> getColumnNames()
Description copied from interface:RowsAndColumns
The set of column names available from the RowsAndColumns- Specified by:
getColumnNames
in interfaceRowsAndColumns
- Returns:
- The set of column names available from the RowsAndColumns
-
numRows
public int numRows()
Description copied from interface:RowsAndColumns
The number of rows in the RowsAndColumns object- Specified by:
numRows
in interfaceRowsAndColumns
- Returns:
- the integer number of rows
-
findColumn
public Column findColumn(String name)
Description copied from interface:RowsAndColumns
Finds a column by name. null is returned if the column is not found. The RowsAndColumns object should not attempt to default not-found columns to pretend as if they exist, instead the user of the RowsAndColumns object should decide the correct semantic interpretation of a column that does not exist. It is expected that most locations will choose to believe that the column does exist and is always null, but there are often optimizations that can effect this same assumption without doing a lot of extra work if the calling code knows that it does not exist.- Specified by:
findColumn
in interfaceRowsAndColumns
- Parameters:
name
- the name of the column to find- Returns:
- the Column, if found. null if not found.
-
-