Package org.apache.druid.segment.nested
Class NestedDataComplexColumn
java.lang.Object
org.apache.druid.segment.nested.NestedDataComplexColumn
- All Implemented Interfaces:
Closeable,AutoCloseable,BaseColumn,ComplexColumn,SelectableColumn,NestedColumnIndexSupplier,NestedColumnSelectorFactory,NestedColumnTypeInspector,NestedVectorColumnSelectorFactory
- Direct Known Subclasses:
CompressedNestedDataComplexColumn
public abstract class NestedDataComplexColumn
extends Object
implements ComplexColumn, NestedColumnTypeInspector, NestedColumnIndexSupplier, NestedColumnSelectorFactory, NestedVectorColumnSelectorFactory
Describes the basic shape for any 'nested data' (
StructuredData) ComplexColumn implementation along
with basic facilities for caching any columns created and methods for retrieving selectors for nested field columns.
NestedFieldVirtualColumn allows query time use of the nested fields.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TRequest an implementation of a particular interface.Class<?> getClazz()abstract ColumnHoldergetColumnHolder(List<NestedPathPart> path) Get aColumnHolderfor a nested field column to retrieve metadata, the column itself, or indexes.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.druid.segment.column.BaseColumn
makeVectorValueSelectorMethods inherited from interface org.apache.druid.segment.column.ComplexColumn
close, getLength, getRowValue, makeColumnValueSelector, makeVectorObjectSelectorMethods inherited from interface org.apache.druid.segment.nested.NestedColumnIndexSupplier
getColumnIndexSupplierMethods inherited from interface org.apache.druid.segment.nested.NestedColumnSelectorFactory
makeColumnValueSelector, makeDimensionSelectorMethods inherited from interface org.apache.druid.segment.nested.NestedColumnTypeInspector
getFieldLogicalType, getFieldTypes, getNestedFields, isNumericMethods inherited from interface org.apache.druid.segment.nested.NestedVectorColumnSelectorFactory
makeSingleValueDimensionVectorSelector, makeVectorObjectSelector, makeVectorValueSelector
-
Constructor Details
-
NestedDataComplexColumn
public NestedDataComplexColumn()
-
-
Method Details
-
getColumnHolder
Get aColumnHolderfor a nested field column to retrieve metadata, the column itself, or indexes. -
getClazz
- Specified by:
getClazzin interfaceComplexColumn- Returns:
- Class of objects returned on calls to
ComplexColumn.getRowValue(int).
-
getTypeName
- Specified by:
getTypeNamein interfaceComplexColumn- Returns:
- Typename associated with this column.
-
as
Description copied from interface:SelectableColumnRequest an implementation of a particular interface. Physical nested columns, and virtual columns that act as a nested column, should implement:-
NestedColumnTypeInspector, required. -
NestedColumnSelectorFactory, required. -
NestedVectorColumnSelectorFactory, required. -
NestedColumnIndexSupplier, if the column has indexes.
- Specified by:
asin interfaceSelectableColumn- Type Parameters:
T- desired interface- Parameters:
clazz- desired interface- Returns:
- instance of clazz, or null if the interface is not supported by this segment
-
-