Package org.apache.druid.segment.nested
Class ScalarDoubleColumnAndIndexSupplier
- java.lang.Object
-
- org.apache.druid.segment.nested.ScalarDoubleColumnAndIndexSupplier
-
- All Implemented Interfaces:
com.google.common.base.Supplier<NestedCommonFormatColumn>
,Supplier<NestedCommonFormatColumn>
,ColumnIndexSupplier
public class ScalarDoubleColumnAndIndexSupplier extends Object implements com.google.common.base.Supplier<NestedCommonFormatColumn>, ColumnIndexSupplier
-
-
Method Summary
All Methods Static 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.NestedCommonFormatColumn
get()
static ScalarDoubleColumnAndIndexSupplier
read(ByteOrder byteOrder, BitmapSerdeFactory bitmapSerdeFactory, ByteBuffer bb, ColumnBuilder columnBuilder, ColumnConfig columnConfig, ScalarDoubleColumnAndIndexSupplier parent)
-
-
-
Method Detail
-
read
public static ScalarDoubleColumnAndIndexSupplier read(ByteOrder byteOrder, BitmapSerdeFactory bitmapSerdeFactory, ByteBuffer bb, ColumnBuilder columnBuilder, ColumnConfig columnConfig, @Nullable ScalarDoubleColumnAndIndexSupplier parent)
-
get
public NestedCommonFormatColumn get()
- Specified by:
get
in interfacecom.google.common.base.Supplier<NestedCommonFormatColumn>
- Specified by:
get
in interfaceSupplier<NestedCommonFormatColumn>
-
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. There are several built-in index classes which can be passed as an argument to this method when used fromFilter.getBitmapColumnIndex(ColumnIndexSelector)
. Implementors of this interface should provide as many of them as possible to participate fully in as manyFilter
as possible, as different filters require different index types, and may prefer some over others. Indexes for matching a row to a specific value:- Specified by:
as
in interfaceColumnIndexSupplier
- See Also:
NullValueIndex
,Indexes for matching a row to any of a set of values:
,ValueSetIndexes
,Indexes for matching a row to a range of values:
,LexicographicalRangeIndexes
,Indexes for matching an array element of a row to a specific value:
,Indexes for matching a row using a :
,Speciality indexes:
,Low level access to implementation specific index stuff not particularly suitable for use in filtering:
,DictionaryEncodedValueIndex
,DictionaryEncodedStringValueIndex
-
-