Class FrameQueryableIndex
java.lang.Object
org.apache.druid.frame.segment.columnar.FrameQueryableIndex
- All Implemented Interfaces:
Closeable,AutoCloseable,Expr.InputBindingInspector,ColumnInspector,QueryableIndex
A
QueryableIndex implementation based on a single columnar Frame. There is no internal caching
of columns here, so callers should generally wrap this in a ColumnCache.
This class exists so ColumnarFrameCursorFactory can reuse code meant for regular segment-backed
QueryableIndex. Some methods are implemented by throwing UnsupportedOperationException, wherever
it is not expected that those methods are actually going to be needed.-
Constructor Summary
ConstructorsConstructorDescriptionFrameQueryableIndex(Frame frame, RowSignature signature, List<FrameColumnReader> columnReaders) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()The close method shouldn't actually be here as this is nasty.List of dimensions, not includingColumnHolder.TIME_COLUMN_NAME.getColumnHolder(String columnName) org.joda.time.IntervalMap of column name toDimensionHandler, whose contents and iteration order matchesQueryableIndex.getAvailableDimensions().intReturns the ordering of rows in this index.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.druid.segment.ColumnInspector
getTypeMethods inherited from interface org.apache.druid.math.expr.Expr.InputBindingInspector
areNumeric, areNumeric, areSameTypes, areSameTypes, areScalar, areScalar, canVectorize, canVectorizeMethods inherited from interface org.apache.druid.segment.QueryableIndex
getColumnCapabilities, getProjection, getProjectionQueryableIndex
-
Constructor Details
-
FrameQueryableIndex
public FrameQueryableIndex(Frame frame, RowSignature signature, List<FrameColumnReader> columnReaders)
-
-
Method Details
-
getNumRows
public int getNumRows()- Specified by:
getNumRowsin interfaceQueryableIndex
-
getColumnNames
- Specified by:
getColumnNamesin interfaceQueryableIndex
-
getColumnHolder
- Specified by:
getColumnHolderin interfaceQueryableIndex
-
getDataInterval
public org.joda.time.Interval getDataInterval()- Specified by:
getDataIntervalin interfaceQueryableIndex
-
getAvailableDimensions
Description copied from interface:QueryableIndexList of dimensions, not includingColumnHolder.TIME_COLUMN_NAME.- Specified by:
getAvailableDimensionsin interfaceQueryableIndex
-
getOrdering
Description copied from interface:QueryableIndexReturns the ordering of rows in this index.- Specified by:
getOrderingin interfaceQueryableIndex
-
getBitmapFactoryForDimensions
- Specified by:
getBitmapFactoryForDimensionsin interfaceQueryableIndex
-
getMetadata
- Specified by:
getMetadatain interfaceQueryableIndex
-
getDimensionHandlers
Description copied from interface:QueryableIndexMap of column name toDimensionHandler, whose contents and iteration order matchesQueryableIndex.getAvailableDimensions().- Specified by:
getDimensionHandlersin interfaceQueryableIndex
-
close
public void close()Description copied from interface:QueryableIndexThe close method shouldn't actually be here as this is nasty. We will adjust it in the future.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceQueryableIndex
-