Class SettableDoubleColumnValueSelector
java.lang.Object
org.apache.druid.segment.selector.settable.SettableDoubleColumnValueSelector
- All Implemented Interfaces:
HotLoopCallee,BaseDoubleColumnValueSelector,BaseFloatColumnValueSelector,BaseLongColumnValueSelector,BaseNullableColumnValueSelector,BaseObjectColumnValueSelector<Double>,ColumnValueSelector<Double>,DoubleColumnSelector,SettableColumnValueSelector<Double>
public class SettableDoubleColumnValueSelector
extends Object
implements SettableColumnValueSelector<Double>, DoubleColumnSelector
-
Field Summary
Fields inherited from interface org.apache.druid.segment.ColumnValueSelector
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublebooleanisNull()Returns true if the primitive long, double, or float value returned by this selector should be treated as null.voidsetValueFrom(ColumnValueSelector<?> selector) 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.DoubleColumnSelector
classOfObject, getFloat, getLong, getObjectMethods inherited from interface org.apache.druid.segment.selector.settable.SettableColumnValueSelector
inspectRuntimeShape
-
Constructor Details
-
SettableDoubleColumnValueSelector
public SettableDoubleColumnValueSelector()
-
-
Method Details
-
setValueFrom
- Specified by:
setValueFromin interfaceSettableColumnValueSelector<Double>
-
getDouble
public double getDouble()- Specified by:
getDoublein interfaceBaseDoubleColumnValueSelector
-
isNull
public boolean isNull()Description copied from interface:BaseNullableColumnValueSelectorReturns true if the primitive long, double, or float value returned by this selector should be treated as null. Users ofBaseLongColumnValueSelector.getLong(),BaseDoubleColumnValueSelector.getDouble()andBaseFloatColumnValueSelector.getFloat()must check this method first, or else they may improperly use placeholder values returned by the primitive get methods. Users ofBaseObjectColumnValueSelector.getObject()should not call this method. Instead, call "getObject" and check if it is null.- Specified by:
isNullin interfaceBaseNullableColumnValueSelector
-