Package org.apache.druid.segment.nested
Class NestedFieldDictionaryEncodedColumn<TStringDictionary extends Indexed<ByteBuffer>>
- java.lang.Object
-
- org.apache.druid.segment.nested.NestedFieldDictionaryEncodedColumn<TStringDictionary>
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,BaseColumn
,DictionaryEncodedColumn<String>
public class NestedFieldDictionaryEncodedColumn<TStringDictionary extends Indexed<ByteBuffer>> extends Object implements DictionaryEncodedColumn<String>
-
-
Constructor Summary
Constructors Constructor Description NestedFieldDictionaryEncodedColumn(FieldTypeInfo.TypeSet types, ColumnarLongs longsColumn, ColumnarDoubles doublesColumn, ColumnarInts column, TStringDictionary globalDictionary, FixedIndexed<Long> globalLongDictionary, FixedIndexed<Double> globalDoubleDictionary, FrontCodedIntArrayIndexed globalArrayDictionary, FixedIndexed<Integer> dictionary, ImmutableBitmap nullBitmap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
int
getCardinality()
FixedIndexed<Integer>
getDictionary()
IndexedInts
getMultiValueRow(int rowNum)
int
getSingleValueRow(int rowNum)
boolean
hasMultipleValues()
int
length()
int
lookupId(String name)
String
lookupName(int id)
ColumnValueSelector<?>
makeColumnValueSelector(ReadableOffset offset)
DimensionSelector
makeDimensionSelector(ReadableOffset offset, ExtractionFn extractionFn)
MultiValueDimensionVectorSelector
makeMultiValueDimensionVectorSelector(ReadableVectorOffset vectorOffset)
SingleValueDimensionVectorSelector
makeSingleValueDimensionVectorSelector(ReadableVectorOffset offset)
VectorObjectSelector
makeVectorObjectSelector(ReadableVectorOffset offset)
VectorValueSelector
makeVectorValueSelector(ReadableVectorOffset offset)
-
-
-
Constructor Detail
-
NestedFieldDictionaryEncodedColumn
public NestedFieldDictionaryEncodedColumn(FieldTypeInfo.TypeSet types, ColumnarLongs longsColumn, ColumnarDoubles doublesColumn, ColumnarInts column, TStringDictionary globalDictionary, FixedIndexed<Long> globalLongDictionary, FixedIndexed<Double> globalDoubleDictionary, @Nullable FrontCodedIntArrayIndexed globalArrayDictionary, FixedIndexed<Integer> dictionary, ImmutableBitmap nullBitmap)
-
-
Method Detail
-
length
public int length()
- Specified by:
length
in interfaceDictionaryEncodedColumn<TStringDictionary extends Indexed<ByteBuffer>>
-
hasMultipleValues
public boolean hasMultipleValues()
- Specified by:
hasMultipleValues
in interfaceDictionaryEncodedColumn<TStringDictionary extends Indexed<ByteBuffer>>
-
getSingleValueRow
public int getSingleValueRow(int rowNum)
- Specified by:
getSingleValueRow
in interfaceDictionaryEncodedColumn<TStringDictionary extends Indexed<ByteBuffer>>
-
getMultiValueRow
public IndexedInts getMultiValueRow(int rowNum)
- Specified by:
getMultiValueRow
in interfaceDictionaryEncodedColumn<TStringDictionary extends Indexed<ByteBuffer>>
-
lookupName
@Nullable public String lookupName(int id)
- Specified by:
lookupName
in interfaceDictionaryEncodedColumn<TStringDictionary extends Indexed<ByteBuffer>>
-
lookupId
public int lookupId(String name)
- Specified by:
lookupId
in interfaceDictionaryEncodedColumn<TStringDictionary extends Indexed<ByteBuffer>>
-
getCardinality
public int getCardinality()
- Specified by:
getCardinality
in interfaceDictionaryEncodedColumn<TStringDictionary extends Indexed<ByteBuffer>>
-
getDictionary
public FixedIndexed<Integer> getDictionary()
-
makeDimensionSelector
public DimensionSelector makeDimensionSelector(ReadableOffset offset, @Nullable ExtractionFn extractionFn)
- Specified by:
makeDimensionSelector
in interfaceDictionaryEncodedColumn<TStringDictionary extends Indexed<ByteBuffer>>
-
makeColumnValueSelector
public ColumnValueSelector<?> makeColumnValueSelector(ReadableOffset offset)
- Specified by:
makeColumnValueSelector
in interfaceBaseColumn
- Specified by:
makeColumnValueSelector
in interfaceDictionaryEncodedColumn<TStringDictionary extends Indexed<ByteBuffer>>
-
makeSingleValueDimensionVectorSelector
public SingleValueDimensionVectorSelector makeSingleValueDimensionVectorSelector(ReadableVectorOffset offset)
- Specified by:
makeSingleValueDimensionVectorSelector
in interfaceDictionaryEncodedColumn<TStringDictionary extends Indexed<ByteBuffer>>
-
makeMultiValueDimensionVectorSelector
public MultiValueDimensionVectorSelector makeMultiValueDimensionVectorSelector(ReadableVectorOffset vectorOffset)
- Specified by:
makeMultiValueDimensionVectorSelector
in interfaceDictionaryEncodedColumn<TStringDictionary extends Indexed<ByteBuffer>>
-
makeVectorObjectSelector
public VectorObjectSelector makeVectorObjectSelector(ReadableVectorOffset offset)
- Specified by:
makeVectorObjectSelector
in interfaceBaseColumn
-
makeVectorValueSelector
public VectorValueSelector makeVectorValueSelector(ReadableVectorOffset offset)
- Specified by:
makeVectorValueSelector
in interfaceBaseColumn
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-