public class ValueHolderHelper extends Object
Constructor and Description |
---|
ValueHolderHelper() |
Modifier and Type | Method and Description |
---|---|
static org.apache.drill.exec.expr.holders.BigIntHolder |
getBigIntHolder(long value) |
static org.apache.drill.exec.expr.holders.BitHolder |
getBitHolder(int value) |
static org.apache.drill.exec.expr.holders.DateHolder |
getDateHolder(long value) |
static org.apache.drill.exec.expr.holders.Decimal18Holder |
getDecimal18Holder(long decimal,
int precision,
int scale) |
static org.apache.drill.exec.expr.holders.Decimal28SparseHolder |
getDecimal28Holder(DrillBuf buf,
BigDecimal bigDecimal) |
static org.apache.drill.exec.expr.holders.Decimal28SparseHolder |
getDecimal28Holder(DrillBuf buf,
String decimal) |
static org.apache.drill.exec.expr.holders.Decimal38SparseHolder |
getDecimal38Holder(DrillBuf buf,
BigDecimal bigDecimal) |
static org.apache.drill.exec.expr.holders.Decimal38SparseHolder |
getDecimal38Holder(DrillBuf buf,
String decimal) |
static org.apache.drill.exec.expr.holders.Decimal9Holder |
getDecimal9Holder(int decimal,
int precision,
int scale) |
static org.apache.drill.exec.expr.holders.Float4Holder |
getFloat4Holder(float value) |
static org.apache.drill.exec.expr.holders.Float8Holder |
getFloat8Holder(double value) |
static List<String> |
getHolderParams(TypeProtos.MajorType type)
Returns list of field names which belong to holder corresponding to the specified
TypeProtos.MajorType type . |
static org.apache.drill.exec.expr.holders.IntervalDayHolder |
getIntervalDayHolder(int days,
int millis) |
static org.apache.drill.exec.expr.holders.IntervalYearHolder |
getIntervalYearHolder(int intervalYear) |
static org.apache.drill.exec.expr.holders.IntHolder |
getIntHolder(int value) |
static org.apache.drill.exec.expr.holders.NullableBitHolder |
getNullableBitHolder(boolean isNull,
int value) |
static org.apache.drill.exec.expr.holders.TimeHolder |
getTimeHolder(int value) |
static org.apache.drill.exec.expr.holders.TimeStampHolder |
getTimeStampHolder(long value) |
static org.apache.drill.exec.expr.holders.VarCharHolder |
getVarCharHolder(BufferAllocator a,
String s) |
static org.apache.drill.exec.expr.holders.VarCharHolder |
getVarCharHolder(DrillBuf buf,
String s) |
static org.apache.drill.exec.expr.holders.VarDecimalHolder |
getVarDecimalHolder(DrillBuf buf,
BigDecimal bigDecimal) |
static org.apache.drill.exec.expr.holders.VarDecimalHolder |
getVarDecimalHolder(DrillBuf buf,
String decimal) |
public static org.apache.drill.exec.expr.holders.IntHolder getIntHolder(int value)
public static org.apache.drill.exec.expr.holders.BigIntHolder getBigIntHolder(long value)
public static org.apache.drill.exec.expr.holders.Float4Holder getFloat4Holder(float value)
public static org.apache.drill.exec.expr.holders.Float8Holder getFloat8Holder(double value)
public static org.apache.drill.exec.expr.holders.DateHolder getDateHolder(long value)
public static org.apache.drill.exec.expr.holders.TimeHolder getTimeHolder(int value)
public static org.apache.drill.exec.expr.holders.TimeStampHolder getTimeStampHolder(long value)
public static org.apache.drill.exec.expr.holders.BitHolder getBitHolder(int value)
public static org.apache.drill.exec.expr.holders.NullableBitHolder getNullableBitHolder(boolean isNull, int value)
public static org.apache.drill.exec.expr.holders.VarCharHolder getVarCharHolder(DrillBuf buf, String s)
public static org.apache.drill.exec.expr.holders.VarCharHolder getVarCharHolder(BufferAllocator a, String s)
public static org.apache.drill.exec.expr.holders.IntervalYearHolder getIntervalYearHolder(int intervalYear)
public static org.apache.drill.exec.expr.holders.IntervalDayHolder getIntervalDayHolder(int days, int millis)
public static org.apache.drill.exec.expr.holders.Decimal9Holder getDecimal9Holder(int decimal, int precision, int scale)
public static org.apache.drill.exec.expr.holders.Decimal18Holder getDecimal18Holder(long decimal, int precision, int scale)
public static org.apache.drill.exec.expr.holders.Decimal28SparseHolder getDecimal28Holder(DrillBuf buf, String decimal)
public static org.apache.drill.exec.expr.holders.Decimal28SparseHolder getDecimal28Holder(DrillBuf buf, BigDecimal bigDecimal)
public static org.apache.drill.exec.expr.holders.Decimal38SparseHolder getDecimal38Holder(DrillBuf buf, String decimal)
public static org.apache.drill.exec.expr.holders.Decimal38SparseHolder getDecimal38Holder(DrillBuf buf, BigDecimal bigDecimal)
public static org.apache.drill.exec.expr.holders.VarDecimalHolder getVarDecimalHolder(DrillBuf buf, String decimal)
public static org.apache.drill.exec.expr.holders.VarDecimalHolder getVarDecimalHolder(DrillBuf buf, BigDecimal bigDecimal)
public static List<String> getHolderParams(TypeProtos.MajorType type)
TypeProtos.MajorType type
.type
- type of holder whose fields should be returnedTypeProtos.MajorType type
.Copyright © 2021 The Apache Software Foundation. All rights reserved.