Package org.apache.druid.segment
Interface QueryableIndex
- All Superinterfaces:
AutoCloseable,Closeable,ColumnInspector,Expr.InputBindingInspector
- All Known Implementing Classes:
FrameQueryableIndex,NoopQueryableIndex,SimpleQueryableIndex
Direct interface to memory mapped segments. Not a public API for extensions; site specific queries should be
using
CursorFactory.-
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.default ColumnCapabilitiesgetColumnCapabilities(String column) Returns capabilities of a particular column.getColumnHolder(String columnName) org.joda.time.IntervalMap of column name toDimensionHandler, whose contents and iteration order matchesgetAvailableDimensions().intReturns the ordering of rows in this index.default QueryableProjection<QueryableIndex>getProjection(CursorBuildSpec cursorBuildSpec) default QueryableIndexMethods 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, canVectorize
-
Method Details
-
getDataInterval
org.joda.time.Interval getDataInterval() -
getNumRows
int getNumRows() -
getAvailableDimensions
List of dimensions, not includingColumnHolder.TIME_COLUMN_NAME. -
getBitmapFactoryForDimensions
BitmapFactory getBitmapFactoryForDimensions() -
getMetadata
-
getDimensionHandlers
Map<String,DimensionHandler> getDimensionHandlers()Map of column name toDimensionHandler, whose contents and iteration order matchesgetAvailableDimensions(). -
getColumnNames
-
getColumnHolder
-
getColumnCapabilities
Description copied from interface:ColumnInspectorReturns capabilities of a particular column.- Specified by:
getColumnCapabilitiesin interfaceColumnInspector- Parameters:
column- column name- Returns:
- capabilities, or null
-
getOrdering
Returns the ordering of rows in this index. -
close
void close()The 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- Throws:
IOException- if an exception was thrown closing the index
-
getProjection
@Nullable default QueryableProjection<QueryableIndex> getProjection(CursorBuildSpec cursorBuildSpec) -
getProjectionQueryableIndex
-