Package org.apache.druid.segment.nested
Class NestedFieldColumnIndexSupplier<TStringDictionary extends Indexed<ByteBuffer>>
- java.lang.Object
-
- org.apache.druid.segment.nested.NestedFieldColumnIndexSupplier<TStringDictionary>
-
- All Implemented Interfaces:
ColumnIndexSupplier
public class NestedFieldColumnIndexSupplier<TStringDictionary extends Indexed<ByteBuffer>> extends Object implements ColumnIndexSupplier
Supplies indexes for nested field columnsNestedFieldDictionaryEncodedColumn
ofNestedDataComplexColumn
.
-
-
Constructor Summary
Constructors Constructor Description NestedFieldColumnIndexSupplier(FieldTypeInfo.TypeSet types, BitmapFactory bitmapFactory, ColumnConfig columnConfig, GenericIndexed<ImmutableBitmap> bitmaps, com.google.common.base.Supplier<FixedIndexed<Integer>> localDictionarySupplier, com.google.common.base.Supplier<TStringDictionary> globalStringDictionarySupplier, com.google.common.base.Supplier<FixedIndexed<Long>> globalLongDictionarySupplier, com.google.common.base.Supplier<FixedIndexed<Double>> globalDoubleDictionarySupplier, com.google.common.base.Supplier<FixedIndexed<Integer>> arrayElementDictionarySupplier, GenericIndexed<ImmutableBitmap> arrayElementBitmaps, 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
-
NestedFieldColumnIndexSupplier
public NestedFieldColumnIndexSupplier(FieldTypeInfo.TypeSet types, BitmapFactory bitmapFactory, ColumnConfig columnConfig, GenericIndexed<ImmutableBitmap> bitmaps, com.google.common.base.Supplier<FixedIndexed<Integer>> localDictionarySupplier, com.google.common.base.Supplier<TStringDictionary> globalStringDictionarySupplier, com.google.common.base.Supplier<FixedIndexed<Long>> globalLongDictionarySupplier, com.google.common.base.Supplier<FixedIndexed<Double>> globalDoubleDictionarySupplier, @Nullable com.google.common.base.Supplier<FixedIndexed<Integer>> arrayElementDictionarySupplier, @Nullable GenericIndexed<ImmutableBitmap> arrayElementBitmaps, 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
-
-