public abstract class ObjectColumnSelector<T> extends Object implements ColumnValueSelector<T>
ColumnValueSelectors, it provides default
implementations for all ColumnValueSelector's methods except BaseObjectColumnValueSelector.getObject() and BaseObjectColumnValueSelector.classOfObject().
This class should appear ONLY in "extends" clause or anonymous class creation, but NOT in "user" code, where
BaseObjectColumnValueSelector must be used instead.
This is a class rather than an interface unlike LongColumnSelector, FloatColumnSelector and DoubleColumnSelector solely in order to make isNull() method final.EMPTY_ARRAY| Constructor and Description |
|---|
ObjectColumnSelector() |
| Modifier and Type | Method and Description |
|---|---|
double |
getDouble()
Deprecated.
This method is marked as deprecated in ObjectColumnSelector to minimize the probability of accidental
calling. "Polymorphism" of ObjectColumnSelector should be used only when operating on
ColumnValueSelector
objects. |
float |
getFloat()
Deprecated.
This method is marked as deprecated in ObjectColumnSelector to minimize the probability of accidental
calling. "Polymorphism" of ObjectColumnSelector should be used only when operating on
ColumnValueSelector
objects. |
long |
getLong()
Deprecated.
This method is marked as deprecated in ObjectColumnSelector to minimize the probability of accidental
calling. "Polymorphism" of ObjectColumnSelector should be used only when operating on
ColumnValueSelector
objects. |
boolean |
isNull()
Deprecated.
This method is marked as deprecated in ObjectColumnSelector since it always returns false.
There is no need to call this method.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinspectRuntimeShapeclassOfObject, getObject@Deprecated public float getFloat()
ColumnValueSelector
objects.getFloat in interface BaseFloatColumnValueSelector@Deprecated public double getDouble()
ColumnValueSelector
objects.getDouble in interface BaseDoubleColumnValueSelector@Deprecated public long getLong()
ColumnValueSelector
objects.getLong in interface BaseLongColumnValueSelector@Deprecated public final boolean isNull()
BaseNullableColumnValueSelectorBaseLongColumnValueSelector.getLong(), BaseDoubleColumnValueSelector.getDouble()
and BaseFloatColumnValueSelector.getFloat() must check this method first, or else they may improperly
use placeholder values returned by the primitive get methods.
Users of BaseObjectColumnValueSelector.getObject() should not call this method. Instead, call "getObject"
and check if it is null.isNull in interface BaseNullableColumnValueSelectorCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.