Package org.apache.druid.segment
Interface QueryableIndex
-
- All Superinterfaces:
AutoCloseable,Closeable,ColumnInspector,Expr.InputBindingInspector
- All Known Implementing Classes:
FrameQueryableIndex,SimpleQueryableIndex
public interface QueryableIndex extends Closeable, ColumnInspector
Direct interface to memory mapped segments. Not a public API for extensions; site specific queries should be usingStorageAdapter.- See Also:
for query path adapter,for indexing path adapter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidclose()The close method shouldn't actually be here as this is nasty.Indexed<String>getAvailableDimensions()BitmapFactorygetBitmapFactoryForDimensions()default ColumnCapabilitiesgetColumnCapabilities(String column)Returns capabilities of a particular column.ColumnHoldergetColumnHolder(String columnName)List<String>getColumnNames()org.joda.time.IntervalgetDataInterval()Map<String,DimensionHandler>getDimensionHandlers()MetadatagetMetadata()intgetNumRows()-
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
-
-
-
-
Method Detail
-
getDataInterval
org.joda.time.Interval getDataInterval()
-
getNumRows
int getNumRows()
-
getBitmapFactoryForDimensions
BitmapFactory getBitmapFactoryForDimensions()
-
getDimensionHandlers
Map<String,DimensionHandler> getDimensionHandlers()
-
getColumnHolder
@Nullable ColumnHolder getColumnHolder(String columnName)
-
getColumnCapabilities
@Nullable default ColumnCapabilities getColumnCapabilities(String column)
Description copied from interface:ColumnInspectorReturns capabilities of a particular column.- Specified by:
getColumnCapabilitiesin interfaceColumnInspector- Parameters:
column- column name- Returns:
- capabilities, or null
-
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
-
-