Package org.apache.druid.segment
Class SimpleQueryableIndex
- java.lang.Object
-
- org.apache.druid.segment.SimpleQueryableIndex
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Expr.InputBindingInspector
,ColumnInspector
,QueryableIndex
public class SimpleQueryableIndex extends Object implements QueryableIndex
-
-
Constructor Summary
Constructors Constructor Description SimpleQueryableIndex(org.joda.time.Interval dataInterval, Indexed<String> dimNames, BitmapFactory bitmapFactory, Map<String,com.google.common.base.Supplier<ColumnHolder>> columns, SmooshedFileMapper fileMapper, Metadata metadata, boolean lazy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
The close method shouldn't actually be here as this is nasty.Indexed<String>
getAvailableDimensions()
BitmapFactory
getBitmapFactoryForDimensions()
ColumnHolder
getColumnHolder(String columnName)
List<String>
getColumnNames()
Map<String,com.google.common.base.Supplier<ColumnHolder>>
getColumns()
org.joda.time.Interval
getDataInterval()
Map<String,DimensionHandler>
getDimensionHandlers()
SmooshedFileMapper
getFileMapper()
Metadata
getMetadata()
int
getNumRows()
-
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
getColumnCapabilitiesWithDefault, 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
-
SimpleQueryableIndex
public SimpleQueryableIndex(org.joda.time.Interval dataInterval, Indexed<String> dimNames, BitmapFactory bitmapFactory, Map<String,com.google.common.base.Supplier<ColumnHolder>> columns, SmooshedFileMapper fileMapper, @Nullable Metadata metadata, boolean lazy)
-
-
Method Detail
-
getDataInterval
public org.joda.time.Interval getDataInterval()
- Specified by:
getDataInterval
in interfaceQueryableIndex
-
getNumRows
public int getNumRows()
- Specified by:
getNumRows
in interfaceQueryableIndex
-
getColumnNames
public List<String> getColumnNames()
- Specified by:
getColumnNames
in interfaceQueryableIndex
-
getAvailableDimensions
public Indexed<String> getAvailableDimensions()
- Specified by:
getAvailableDimensions
in interfaceQueryableIndex
-
getBitmapFactoryForDimensions
public BitmapFactory getBitmapFactoryForDimensions()
- Specified by:
getBitmapFactoryForDimensions
in interfaceQueryableIndex
-
getColumnHolder
@Nullable public ColumnHolder getColumnHolder(String columnName)
- Specified by:
getColumnHolder
in interfaceQueryableIndex
-
getColumns
public Map<String,com.google.common.base.Supplier<ColumnHolder>> getColumns()
-
getFileMapper
public SmooshedFileMapper getFileMapper()
-
close
public void close()
Description copied from interface:QueryableIndex
The close method shouldn't actually be here as this is nasty. We will adjust it in the future.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceQueryableIndex
-
getMetadata
public Metadata getMetadata()
- Specified by:
getMetadata
in interfaceQueryableIndex
-
getDimensionHandlers
public Map<String,DimensionHandler> getDimensionHandlers()
- Specified by:
getDimensionHandlers
in interfaceQueryableIndex
-
-