Class SettableLongColumnValueSelector
- java.lang.Object
-
- org.apache.druid.segment.selector.settable.SettableLongColumnValueSelector
-
- All Implemented Interfaces:
HotLoopCallee,BaseDoubleColumnValueSelector,BaseFloatColumnValueSelector,BaseLongColumnValueSelector,BaseNullableColumnValueSelector,BaseObjectColumnValueSelector<Long>,ColumnValueSelector<Long>,LongColumnSelector,SettableColumnValueSelector<Long>
public class SettableLongColumnValueSelector extends Object implements SettableColumnValueSelector<Long>, LongColumnSelector
-
-
Field Summary
-
Fields inherited from interface org.apache.druid.segment.ColumnValueSelector
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description SettableLongColumnValueSelector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetLong()booleanisNull()Returns true if the primitive long, double, or float value returned by this selector should be treated as null.voidsetValue(long value)Optimized method for assigning timestamps, that are known to never be nullvoidsetValueFrom(ColumnValueSelector<?> selector)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.druid.segment.LongColumnSelector
classOfObject, getDouble, getFloat, getObject
-
Methods inherited from interface org.apache.druid.segment.selector.settable.SettableColumnValueSelector
inspectRuntimeShape
-
-
-
-
Method Detail
-
setValueFrom
public void setValueFrom(ColumnValueSelector<?> selector)
- Specified by:
setValueFromin interfaceSettableColumnValueSelector<Long>
-
setValue
public void setValue(long value)
Optimized method for assigning timestamps, that are known to never be null
-
getLong
public long getLong()
- Specified by:
getLongin interfaceBaseLongColumnValueSelector
-
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
-
-