Package org.apache.druid.frame.field
Class NumericFieldReader
java.lang.Object
org.apache.druid.frame.field.NumericFieldReader
- All Implemented Interfaces:
FieldReader
- Direct Known Subclasses:
DoubleFieldReader,FloatFieldReader,LongFieldReader
Reads the fields created by the
NumericFieldWriter. See the Javadoc for the writer for format details- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classHelper class which allows the inheritors to fetch the nullity of the field located at fieldPointer's position in the dataRegion. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ColumnValueSelector<?>getColumnValueSelector(org.apache.datasketches.memory.Memory memory, ReadableFieldPointer fieldPointer, byte nullIndicatorByte) Creates a column value selector for the element written at fieldPointer's position in the memory.byteabstract ValueTypeValueTypeof the inheritor's elementbooleanisNull(org.apache.datasketches.memory.Memory memory, long position) Whether the provided memory position points to a null value.makeColumnValueSelector(org.apache.datasketches.memory.Memory memory, ReadableFieldPointer fieldPointer) Create aColumnValueSelectorbacked by some memory and a moveable pointer.makeDimensionSelector(org.apache.datasketches.memory.Memory memory, ReadableFieldPointer fieldPointer, ExtractionFn extractionFn) Create aDimensionSelectorbacked by some memory and a moveable pointer.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.druid.frame.field.FieldReader
makeRACColumn
-
Constructor Details
-
NumericFieldReader
public NumericFieldReader(boolean forArray)
-
-
Method Details
-
getNullIndicatorByte
public byte getNullIndicatorByte() -
makeColumnValueSelector
public ColumnValueSelector<?> makeColumnValueSelector(org.apache.datasketches.memory.Memory memory, ReadableFieldPointer fieldPointer) Description copied from interface:FieldReaderCreate aColumnValueSelectorbacked by some memory and a moveable pointer.- Specified by:
makeColumnValueSelectorin interfaceFieldReader
-
makeDimensionSelector
public DimensionSelector makeDimensionSelector(org.apache.datasketches.memory.Memory memory, ReadableFieldPointer fieldPointer, @Nullable ExtractionFn extractionFn) Description copied from interface:FieldReaderCreate aDimensionSelectorbacked by some memory and a moveable pointer.- Specified by:
makeDimensionSelectorin interfaceFieldReader
-
isNull
public boolean isNull(org.apache.datasketches.memory.Memory memory, long position) Description copied from interface:FieldReaderWhether the provided memory position points to a null value.- Specified by:
isNullin interfaceFieldReader
-
getColumnValueSelector
public abstract ColumnValueSelector<?> getColumnValueSelector(org.apache.datasketches.memory.Memory memory, ReadableFieldPointer fieldPointer, byte nullIndicatorByte) Creates a column value selector for the element written at fieldPointer's position in the memory. The nullilty check is handled by the nullIndicatorByte -
getValueType
ValueTypeof the inheritor's element
-