Class AbstractFrameRowsAndColumns
java.lang.Object
org.apache.druid.query.rowsandcols.concrete.AbstractFrameRowsAndColumns
- All Implemented Interfaces:
Closeable,AutoCloseable,FrameRowsAndColumns,RowsAndColumns,CloseableShapeshifter
- Direct Known Subclasses:
ColumnBasedFrameRowsAndColumns,RowBasedFrameRowsAndColumns
public abstract class AbstractFrameRowsAndColumns
extends Object
implements FrameRowsAndColumns, AutoCloseable, CloseableShapeshifter
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.druid.query.rowsandcols.RowsAndColumns
RowsAndColumns.RowsAndColumnsDeserializer, RowsAndColumns.RowsAndColumnsSerializer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TAsks the RowsAndColumns to return itself as a concrete implementation of a specific interface.voidclose()booleanThe set of column names available from the RowsAndColumnsgetFrame()inthashCode()intnumRows()The number of rows in the RowsAndColumns objectMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.druid.query.rowsandcols.RowsAndColumns
findColumn
-
Constructor Details
-
AbstractFrameRowsAndColumns
-
-
Method Details
-
getFrame
- Specified by:
getFramein interfaceFrameRowsAndColumns
-
getSignature
- Specified by:
getSignaturein interfaceFrameRowsAndColumns
-
getColumnNames
Description copied from interface:RowsAndColumnsThe set of column names available from the RowsAndColumns- Specified by:
getColumnNamesin interfaceRowsAndColumns- Returns:
- The set of column names available from the RowsAndColumns
-
numRows
public int numRows()Description copied from interface:RowsAndColumnsThe number of rows in the RowsAndColumns object- Specified by:
numRowsin interfaceRowsAndColumns- Returns:
- the integer number of rows
-
as
Description copied from interface:RowsAndColumnsAsks the RowsAndColumns to return itself as a concrete implementation of a specific interface. The interface asked for will tend to be a semantically-meaningful interface. This method allows the calling code to interrogate the RowsAndColumns object about whether it can offer a meaningful optimization of the semantic interface. If a RowsAndColumns cannot do anything specifically optimal for the interface requested, it should return null instead of trying to come up with its own default implementation.- Specified by:
asin interfaceCloseableShapeshifter- Specified by:
asin interfaceRowsAndColumns- Type Parameters:
T- The interface that the calling code wants a concrete implementation of- Parameters:
clazz- A class object representing the interface that the calling code wants a concrete implementation of- Returns:
- A concrete implementation of the interface, or null if there is no meaningful optimization to be had through a local implementation of the interface.
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
hashCode
public int hashCode() -
equals
-