Package org.apache.druid.segment.serde
Class StringUtf8ColumnIndexSupplier<TIndexed extends Indexed<ByteBuffer>>
- java.lang.Object
-
- org.apache.druid.segment.serde.StringUtf8ColumnIndexSupplier<TIndexed>
-
- All Implemented Interfaces:
ColumnIndexSupplier
public class StringUtf8ColumnIndexSupplier<TIndexed extends Indexed<ByteBuffer>> extends Object implements ColumnIndexSupplier
-
-
Constructor Summary
Constructors Constructor Description StringUtf8ColumnIndexSupplier(BitmapFactory bitmapFactory, com.google.common.base.Supplier<TIndexed> utf8Dictionary, GenericIndexed<ImmutableBitmap> bitmaps, ImmutableRTree indexedTree)
StringUtf8ColumnIndexSupplier(BitmapFactory bitmapFactory, com.google.common.base.Supplier<TIndexed> utf8Dictionary, GenericIndexed<ImmutableBitmap> bitmaps, ImmutableRTree indexedTree, ColumnConfig columnConfig, int numRows)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
as(Class<T> clazz)
Try to get a column 'index' of the specified type.
-
-
-
Constructor Detail
-
StringUtf8ColumnIndexSupplier
public StringUtf8ColumnIndexSupplier(BitmapFactory bitmapFactory, com.google.common.base.Supplier<TIndexed> utf8Dictionary, @Nullable GenericIndexed<ImmutableBitmap> bitmaps, @Nullable ImmutableRTree indexedTree)
-
StringUtf8ColumnIndexSupplier
public StringUtf8ColumnIndexSupplier(BitmapFactory bitmapFactory, com.google.common.base.Supplier<TIndexed> utf8Dictionary, @Nullable GenericIndexed<ImmutableBitmap> bitmaps, @Nullable ImmutableRTree indexedTree, @Nullable ColumnConfig columnConfig, int numRows)
-
-
Method Detail
-
as
@Nullable public <T> T as(Class<T> clazz)
Description copied from interface:ColumnIndexSupplier
Try to get a column 'index' of the specified type. If the index of the desired type is not available, this method will return null. If the value is non-null, the index may be used for the eventual construction of anOffset
to form the basis of aCursor
(orVectorOffset
andVectorCursor
) which can greatly reduce the total number of rows which need to be scanned and processed. Objects returned by this method are not thread-safe.- Specified by:
as
in interfaceColumnIndexSupplier
-
-