Package org.apache.drill.exec.vector
Class ValueHolderHelper
java.lang.Object
org.apache.drill.exec.vector.ValueHolderHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BigIntHoldergetBigIntHolder(long value) static BitHoldergetBitHolder(int value) static DateHoldergetDateHolder(long value) static Decimal18HoldergetDecimal18Holder(long decimal, int precision, int scale) static Decimal28SparseHoldergetDecimal28Holder(DrillBuf buf, String decimal) static Decimal28SparseHoldergetDecimal28Holder(DrillBuf buf, BigDecimal bigDecimal) static Decimal38SparseHoldergetDecimal38Holder(DrillBuf buf, String decimal) static Decimal38SparseHoldergetDecimal38Holder(DrillBuf buf, BigDecimal bigDecimal) static Decimal9HoldergetDecimal9Holder(int decimal, int precision, int scale) static Float4HoldergetFloat4Holder(float value) static Float8HoldergetFloat8Holder(double value) Returns list of field names which belong to holder corresponding to the specifiedTypeProtos.MajorType type.static IntervalDayHoldergetIntervalDayHolder(int days, int millis) static IntervalYearHoldergetIntervalYearHolder(int intervalYear) static IntHoldergetIntHolder(int value) static NullableBitHoldergetNullableBitHolder(boolean isNull, int value) static TimeHoldergetTimeHolder(int value) static TimeStampHoldergetTimeStampHolder(long value) static VarCharHoldergetVarCharHolder(DrillBuf buf, String s) static VarCharHolderstatic VarDecimalHoldergetVarDecimalHolder(DrillBuf buf, String decimal) static VarDecimalHoldergetVarDecimalHolder(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.
-