public class IntervalDayTimeColumnVector extends ColumnVector
ColumnVector.Type
isNull, isRepeating, noNulls
Constructor and Description |
---|
IntervalDayTimeColumnVector()
Use this constructor by default.
|
IntervalDayTimeColumnVector(int len)
Don't use this except for testing purposes.
|
Modifier and Type | Method and Description |
---|---|
HiveIntervalDayTime |
asScratchIntervalDayTime(int elementNum)
Return the scratch HiveIntervalDayTime object set from a row.
|
int |
compareTo(HiveIntervalDayTime intervalDayTime,
int elementNum)
Compare HiveIntervalDayTime to row.
|
int |
compareTo(IntervalDayTimeColumnVector intervalDayTimeColVector1,
int elementNum1,
int elementNum2)
Compare another TimestampColumnVector's row to a row.
|
int |
compareTo(int elementNum,
HiveIntervalDayTime intervalDayTime)
Compare row to HiveIntervalDayTime.
|
int |
compareTo(int elementNum1,
IntervalDayTimeColumnVector intervalDayTimeColVector2,
int elementNum2)
Compare a row to another TimestampColumnVector's row.
|
void |
copySelected(boolean selectedInUse,
int[] sel,
int size,
IntervalDayTimeColumnVector output) |
void |
ensureSize(int size,
boolean preserveData)
Ensure the ColumnVector can hold at least size values.
|
void |
fill(HiveIntervalDayTime intervalDayTime)
Fill all the vector entries with a HiveIntervalDayTime.
|
void |
flatten(boolean selectedInUse,
int[] sel,
int size) |
double |
getDouble(int elementNum)
Return a row's HiveIntervalDayTime.getDouble() value.
|
int |
getLength()
Return the number of rows.
|
long |
getNanos(int elementNum)
Return a row's HiveIntervalDayTime.getNanos() value.
|
HiveIntervalDayTime |
getScratchIntervalDayTime()
Return the scratch HiveIntervalDayTime (contents undefined).
|
org.apache.hadoop.io.Writable |
getScratchWritable()
Return a convenience writable object stored by this column vector.
|
long |
getTotalSeconds(int elementNum)
Return a row's HiveIntervalDayTime.getTotalSeconds() value.
|
void |
intervalDayTimeUpdate(HiveIntervalDayTime intervalDayTime,
int elementNum)
Set a HiveIntervalDayTime object from a row of the column.
|
void |
set(int elementNum,
HiveIntervalDayTime intervalDayTime)
Set a row from a HiveIntervalDayTime.
|
void |
setElement(int outElementNum,
int inputElementNum,
ColumnVector inputVector)
Set the element in this column vector from the given input vector.
|
void |
setFromScratchIntervalDayTime(int elementNum)
Set a row from the current value in the scratch interval day time.
|
void |
setNullValue(int elementNum)
Set row to standard null value(s).
|
void |
setScratchWritable(org.apache.hadoop.io.Writable scratchWritable)
Set the convenience writable object stored by this column vector
|
void |
stringifyValue(StringBuilder buffer,
int row)
Print the value for this column into the given string builder.
|
flattenNoNulls, flattenPush, flattenRepeatingNulls, init, reset, setRepeating, unFlatten
public IntervalDayTimeColumnVector()
public IntervalDayTimeColumnVector(int len)
len
- the number of rowspublic int getLength()
public long getTotalSeconds(int elementNum)
elementNum
- public long getNanos(int elementNum)
elementNum
- public double getDouble(int elementNum)
elementNum
- public void intervalDayTimeUpdate(HiveIntervalDayTime intervalDayTime, int elementNum)
intervalDayTime
- elementNum
- public HiveIntervalDayTime asScratchIntervalDayTime(int elementNum)
elementNum
- public HiveIntervalDayTime getScratchIntervalDayTime()
public int compareTo(int elementNum, HiveIntervalDayTime intervalDayTime)
elementNum
- intervalDayTime
- public int compareTo(HiveIntervalDayTime intervalDayTime, int elementNum)
intervalDayTime
- elementNum
- public int compareTo(int elementNum1, IntervalDayTimeColumnVector intervalDayTimeColVector2, int elementNum2)
elementNum1
- intervalDayTimeColVector2
- elementNum2
- public int compareTo(IntervalDayTimeColumnVector intervalDayTimeColVector1, int elementNum1, int elementNum2)
intervalDayTimeColVector1
- elementNum1
- elementNum2
- public void setElement(int outElementNum, int inputElementNum, ColumnVector inputVector)
ColumnVector
setElement
in class ColumnVector
public void flatten(boolean selectedInUse, int[] sel, int size)
flatten
in class ColumnVector
public void set(int elementNum, HiveIntervalDayTime intervalDayTime)
elementNum
- intervalDayTime
- public void setFromScratchIntervalDayTime(int elementNum)
elementNum
- public void setNullValue(int elementNum)
elementNum
- public void copySelected(boolean selectedInUse, int[] sel, int size, IntervalDayTimeColumnVector output)
public void fill(HiveIntervalDayTime intervalDayTime)
intervalDayTime
- public org.apache.hadoop.io.Writable getScratchWritable()
public void setScratchWritable(org.apache.hadoop.io.Writable scratchWritable)
scratchWritable
- public void stringifyValue(StringBuilder buffer, int row)
ColumnVector
stringifyValue
in class ColumnVector
buffer
- the buffer to print intorow
- the id of the row to printpublic void ensureSize(int size, boolean preserveData)
ColumnVector
ensureSize
in class ColumnVector
size
- the new minimum sizepreserveData
- should the old data be preserved?Copyright © 2016 The Apache Software Foundation. All rights reserved.