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
-
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()Returns the frame.Returns a signature, which may or may not be available.inthashCode()booleanintnumRows()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
Description copied from interface:FrameRowsAndColumnsReturns the frame.- Specified by:
getFramein interfaceFrameRowsAndColumns
-
hasSignature
public boolean hasSignature() -
getSignature
Description copied from interface:FrameRowsAndColumnsReturns a signature, which may or may not be available.- 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
-
equals
-
hashCode
public int hashCode()
-