Class FrameQueryableIndex
- java.lang.Object
-
- org.apache.druid.frame.segment.columnar.FrameQueryableIndex
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Expr.InputBindingInspector,ColumnInspector,QueryableIndex
public class FrameQueryableIndex extends Object implements QueryableIndex
AQueryableIndeximplementation based on a single columnarFrame. There is no internal caching of columns here, so callers should generally wrap this in aColumnCache. This class exists soFrameCursorFactorycan reuse code meant for regular segment-backedQueryableIndex. Some methods are implemented by throwingUnsupportedOperationException, wherever it is not expected that those methods are actually going to be needed.
-
-
Constructor Summary
Constructors Constructor Description FrameQueryableIndex(Frame frame, RowSignature signature, List<FrameColumnReader> columnReaders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()The close method shouldn't actually be here as this is nasty.Indexed<String>getAvailableDimensions()BitmapFactorygetBitmapFactoryForDimensions()ColumnHoldergetColumnHolder(String columnName)List<String>getColumnNames()org.joda.time.IntervalgetDataInterval()Map<String,DimensionHandler>getDimensionHandlers()MetadatagetMetadata()intgetNumRows()-
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.segment.ColumnInspector
getType
-
Methods inherited from interface org.apache.druid.math.expr.Expr.InputBindingInspector
areNumeric, areNumeric, areSameTypes, areSameTypes, areScalar, areScalar, canVectorize, canVectorize
-
Methods inherited from interface org.apache.druid.segment.QueryableIndex
getColumnCapabilities
-
-
-
-
Constructor Detail
-
FrameQueryableIndex
public FrameQueryableIndex(Frame frame, RowSignature signature, List<FrameColumnReader> columnReaders)
-
-
Method Detail
-
getNumRows
public int getNumRows()
- Specified by:
getNumRowsin interfaceQueryableIndex
-
getColumnNames
public List<String> getColumnNames()
- Specified by:
getColumnNamesin interfaceQueryableIndex
-
getColumnHolder
@Nullable public ColumnHolder getColumnHolder(String columnName)
- Specified by:
getColumnHolderin interfaceQueryableIndex
-
getDataInterval
public org.joda.time.Interval getDataInterval()
- Specified by:
getDataIntervalin interfaceQueryableIndex
-
getAvailableDimensions
public Indexed<String> getAvailableDimensions()
- Specified by:
getAvailableDimensionsin interfaceQueryableIndex
-
getBitmapFactoryForDimensions
public BitmapFactory getBitmapFactoryForDimensions()
- Specified by:
getBitmapFactoryForDimensionsin interfaceQueryableIndex
-
getMetadata
@Nullable public Metadata getMetadata()
- Specified by:
getMetadatain interfaceQueryableIndex
-
getDimensionHandlers
public Map<String,DimensionHandler> getDimensionHandlers()
- 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
-
-