Package org.apache.drill.exec.vector
Class ValueHolderHelper
java.lang.Object
org.apache.drill.exec.vector.ValueHolderHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BigIntHolder
getBigIntHolder
(long value) static BitHolder
getBitHolder
(int value) static DateHolder
getDateHolder
(long value) static Decimal18Holder
getDecimal18Holder
(long decimal, int precision, int scale) static Decimal28SparseHolder
getDecimal28Holder
(DrillBuf buf, String decimal) static Decimal28SparseHolder
getDecimal28Holder
(DrillBuf buf, BigDecimal bigDecimal) static Decimal38SparseHolder
getDecimal38Holder
(DrillBuf buf, String decimal) static Decimal38SparseHolder
getDecimal38Holder
(DrillBuf buf, BigDecimal bigDecimal) static Decimal9Holder
getDecimal9Holder
(int decimal, int precision, int scale) static Float4Holder
getFloat4Holder
(float value) static Float8Holder
getFloat8Holder
(double value) Returns list of field names which belong to holder corresponding to the specifiedTypeProtos.MajorType type
.static IntervalDayHolder
getIntervalDayHolder
(int days, int millis) static IntervalYearHolder
getIntervalYearHolder
(int intervalYear) static IntHolder
getIntHolder
(int value) static NullableBitHolder
getNullableBitHolder
(boolean isNull, int value) static TimeHolder
getTimeHolder
(int value) static TimeStampHolder
getTimeStampHolder
(long value) static VarCharHolder
getVarCharHolder
(DrillBuf buf, String s) static VarCharHolder
static VarDecimalHolder
getVarDecimalHolder
(DrillBuf buf, String decimal) static VarDecimalHolder
getVarDecimalHolder
(DrillBuf buf, BigDecimal bigDecimal)
-
Constructor Details
-
ValueHolderHelper
public ValueHolderHelper()
-
-
Method Details
-
getIntHolder
-
getBigIntHolder
-
getFloat4Holder
-
getFloat8Holder
-
getDateHolder
-
getTimeHolder
-
getTimeStampHolder
-
getBitHolder
-
getNullableBitHolder
-
getVarCharHolder
-
getVarCharHolder
-
getIntervalYearHolder
-
getIntervalDayHolder
-
getDecimal9Holder
-
getDecimal18Holder
-
getDecimal28Holder
-
getDecimal28Holder
-
getDecimal38Holder
-
getDecimal38Holder
-
getVarDecimalHolder
-
getVarDecimalHolder
-
getHolderParams
Returns list of field names which belong to holder corresponding to the specifiedTypeProtos.MajorType type
.- Parameters:
type
- type of holder whose fields should be returned- Returns:
- list of field names which belong to holder corresponding to the specified
TypeProtos.MajorType type
.
-