public abstract class CompressedNestedDataComplexColumn<TStringDictionary extends Indexed<ByteBuffer>> extends NestedDataComplexColumn
NestedDataComplexColumn which uses a CompressedVariableSizedBlobColumn for the
'raw' StructuredData values and provides selectors for nested 'literal' field columns.| Constructor and Description |
|---|
CompressedNestedDataComplexColumn(NestedDataColumnMetadata metadata,
ColumnConfig columnConfig,
CompressedVariableSizedBlobColumnSupplier compressedRawColumnSupplier,
ImmutableBitmap nullValues,
GenericIndexed<String> fields,
NestedLiteralTypeInfo fieldInfo,
com.google.common.base.Supplier<TStringDictionary> stringDictionary,
com.google.common.base.Supplier<FixedIndexed<Long>> longDictionarySupplier,
com.google.common.base.Supplier<FixedIndexed<Double>> doubleDictionarySupplier,
SmooshedFileMapper fileMapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close and release any resources associated with this column.
|
ColumnHolder |
getColumnHolder(List<NestedPathPart> path) |
ColumnIndexSupplier |
getColumnIndexSupplier(List<NestedPathPart> path)
Make a
ColumnIndexSupplier for a nested literal field column associated with this nested
complex column located at the 'path' represented as a sequence of NestedPathPart. |
Set<ColumnType> |
getColumnTypes(List<NestedPathPart> path) |
FixedIndexed<Double> |
getDoubleDictionary() |
abstract String |
getField(List<NestedPathPart> path) |
abstract String |
getFieldFileName(String fileNameBase,
String field,
int fieldIndex) |
NestedLiteralTypeInfo |
getFieldInfo() |
GenericIndexed<String> |
getFields() |
int |
getLength() |
FixedIndexed<Long> |
getLongDictionary() |
List<List<NestedPathPart>> |
getNestedFields() |
ImmutableBitmap |
getNullValues() |
Object |
getRowValue(int rowNum)
Return rows in the column.
|
TStringDictionary |
getStringDictionary() |
boolean |
isNumeric(List<NestedPathPart> path) |
ColumnValueSelector<?> |
makeColumnValueSelector(List<NestedPathPart> path,
ReadableOffset readableOffset)
Make a
ColumnValueSelector for a nested literal field column associated with this nested
complex column specified by a sequence of NestedPathPart. |
ColumnValueSelector<?> |
makeColumnValueSelector(ReadableOffset offset)
Optionally overridden when complex column serialization is not based on default serialization based
on
GenericIndexed in ComplexColumnSerializer. |
DimensionSelector |
makeDimensionSelector(List<NestedPathPart> path,
ReadableOffset readableOffset,
ExtractionFn fn)
Make a
DimensionSelector for a nested literal field column associated with this nested
complex column specified by a sequence of NestedPathPart. |
SingleValueDimensionVectorSelector |
makeSingleValueDimensionVectorSelector(List<NestedPathPart> path,
ReadableVectorOffset readableOffset)
Make a
SingleValueDimensionVectorSelector for a nested literal field column associated with this nested
complex column specified by a sequence of NestedPathPart. |
VectorObjectSelector |
makeVectorObjectSelector(List<NestedPathPart> path,
ReadableVectorOffset readableOffset)
Make a
VectorObjectSelector for a nested literal field column associated with this nested
complex column located at the 'path' represented as a sequence of NestedPathPart. |
VectorObjectSelector |
makeVectorObjectSelector(ReadableVectorOffset offset) |
VectorValueSelector |
makeVectorValueSelector(List<NestedPathPart> path,
ReadableVectorOffset readableOffset)
Make a
VectorValueSelector for a nested literal field column associated with this nested
complex column located at the 'path' represented as a sequence of NestedPathPart. |
abstract List<NestedPathPart> |
parsePath(String path) |
fromColumnSelector, getClazz, getTypeNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmakeVectorValueSelectorpublic CompressedNestedDataComplexColumn(NestedDataColumnMetadata metadata, ColumnConfig columnConfig, CompressedVariableSizedBlobColumnSupplier compressedRawColumnSupplier, ImmutableBitmap nullValues, GenericIndexed<String> fields, NestedLiteralTypeInfo fieldInfo, com.google.common.base.Supplier<TStringDictionary> stringDictionary, com.google.common.base.Supplier<FixedIndexed<Long>> longDictionarySupplier, com.google.common.base.Supplier<FixedIndexed<Double>> doubleDictionarySupplier, SmooshedFileMapper fileMapper)
public abstract List<NestedPathPart> parsePath(String path)
public abstract String getField(List<NestedPathPart> path)
public abstract String getFieldFileName(String fileNameBase, String field, int fieldIndex)
public GenericIndexed<String> getFields()
public List<List<NestedPathPart>> getNestedFields()
getNestedFields in class NestedDataComplexColumnpublic NestedLiteralTypeInfo getFieldInfo()
public TStringDictionary getStringDictionary()
public FixedIndexed<Long> getLongDictionary()
public FixedIndexed<Double> getDoubleDictionary()
public ImmutableBitmap getNullValues()
@Nullable public Object getRowValue(int rowNum)
ComplexColumnrowNum - the row numberComplexColumn.getClazz() } at row number "rowNum" .public ColumnValueSelector<?> makeColumnValueSelector(ReadableOffset offset)
ComplexColumnGenericIndexed in ComplexColumnSerializer.offset - object to retrieve row numberColumnValueSelector objectpublic VectorObjectSelector makeVectorObjectSelector(ReadableVectorOffset offset)
public int getLength()
public void close()
ComplexColumnpublic DimensionSelector makeDimensionSelector(List<NestedPathPart> path, ReadableOffset readableOffset, ExtractionFn fn)
NestedDataComplexColumnDimensionSelector for a nested literal field column associated with this nested
complex column specified by a sequence of NestedPathPart.makeDimensionSelector in class NestedDataComplexColumnpublic ColumnValueSelector<?> makeColumnValueSelector(List<NestedPathPart> path, ReadableOffset readableOffset)
NestedDataComplexColumnColumnValueSelector for a nested literal field column associated with this nested
complex column specified by a sequence of NestedPathPart.makeColumnValueSelector in class NestedDataComplexColumnpublic SingleValueDimensionVectorSelector makeSingleValueDimensionVectorSelector(List<NestedPathPart> path, ReadableVectorOffset readableOffset)
NestedDataComplexColumnSingleValueDimensionVectorSelector for a nested literal field column associated with this nested
complex column specified by a sequence of NestedPathPart.makeSingleValueDimensionVectorSelector in class NestedDataComplexColumnpublic VectorObjectSelector makeVectorObjectSelector(List<NestedPathPart> path, ReadableVectorOffset readableOffset)
NestedDataComplexColumnVectorObjectSelector for a nested literal field column associated with this nested
complex column located at the 'path' represented as a sequence of NestedPathPart.makeVectorObjectSelector in class NestedDataComplexColumnpublic VectorValueSelector makeVectorValueSelector(List<NestedPathPart> path, ReadableVectorOffset readableOffset)
NestedDataComplexColumnVectorValueSelector for a nested literal field column associated with this nested
complex column located at the 'path' represented as a sequence of NestedPathPart.makeVectorValueSelector in class NestedDataComplexColumn@Nullable public Set<ColumnType> getColumnTypes(List<NestedPathPart> path)
getColumnTypes in class NestedDataComplexColumn@Nullable public ColumnHolder getColumnHolder(List<NestedPathPart> path)
getColumnHolder in class NestedDataComplexColumn@Nullable public ColumnIndexSupplier getColumnIndexSupplier(List<NestedPathPart> path)
NestedDataComplexColumnColumnIndexSupplier for a nested literal field column associated with this nested
complex column located at the 'path' represented as a sequence of NestedPathPart.getColumnIndexSupplier in class NestedDataComplexColumnpublic boolean isNumeric(List<NestedPathPart> path)
isNumeric in class NestedDataComplexColumnCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.