public class TimestampColumnVector extends ColumnVector
ColumnVector.Type| Modifier and Type | Field and Description |
|---|---|
int[] |
nanos |
long[] |
time |
isNull, isRepeating, noNulls| Constructor and Description |
|---|
TimestampColumnVector()
Use this constructor by default.
|
TimestampColumnVector(int len)
Don't use this except for testing purposes.
|
| Modifier and Type | Method and Description |
|---|---|
Timestamp |
asScratchTimestamp(int elementNum)
Return the scratch Timestamp object set from a row.
|
int |
compareTo(int elementNum,
Timestamp timestamp)
Compare row to Timestamp.
|
int |
compareTo(int elementNum1,
TimestampColumnVector timestampColVector2,
int elementNum2)
Compare a row to another TimestampColumnVector's row.
|
int |
compareTo(TimestampColumnVector timestampColVector1,
int elementNum1,
int elementNum2)
Compare another TimestampColumnVector's row to a row.
|
int |
compareTo(Timestamp timestamp,
int elementNum)
Compare Timestamp to row.
|
void |
copySelected(boolean selectedInUse,
int[] sel,
int size,
TimestampColumnVector output) |
void |
ensureSize(int size,
boolean preserveData)
Ensure the ColumnVector can hold at least size values.
|
void |
fill(Timestamp timestamp)
Fill all the vector entries with a timestamp.
|
void |
flatten(boolean selectedInUse,
int[] sel,
int size) |
double |
getDouble(int elementNum)
Return a double representation of a Timestamp.
|
static double |
getDouble(Timestamp timestamp)
Return a double representation of a Timestamp.
|
int |
getLength()
Return the number of rows.
|
int |
getNanos(int elementNum)
Return a row's Timestamp.getNanos() value.
|
Timestamp |
getScratchTimestamp()
Return the scratch timestamp (contents undefined).
|
org.apache.hadoop.io.Writable |
getScratchWritable()
Return a convenience writable object stored by this column vector.
|
long |
getTime(int elementNum)
Return a row's Timestamp.getTime() value.
|
long |
getTimestampAsLong(int elementNum)
Return a long representation of a Timestamp.
|
static long |
getTimestampAsLong(Timestamp timestamp)
Return a long representation of a Timestamp.
|
void |
set(int elementNum,
Timestamp timestamp)
Set a row from a timestamp.
|
void |
setElement(int outElementNum,
int inputElementNum,
ColumnVector inputVector)
Set the element in this column vector from the given input vector.
|
void |
setFromScratchTimestamp(int elementNum)
Set a row from the current value in the scratch timestamp.
|
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.
|
void |
timestampUpdate(Timestamp timestamp,
int elementNum)
Set a Timestamp object from a row of the column.
|
flattenNoNulls, flattenPush, flattenRepeatingNulls, init, reset, setRepeating, unFlattenpublic TimestampColumnVector()
public TimestampColumnVector(int len)
len - the number of rowspublic int getLength()
public long getTime(int elementNum)
elementNum - public int getNanos(int elementNum)
elementNum - public void timestampUpdate(Timestamp timestamp, int elementNum)
timestamp - elementNum - public Timestamp asScratchTimestamp(int elementNum)
elementNum - public Timestamp getScratchTimestamp()
public long getTimestampAsLong(int elementNum)
elementNum - public static long getTimestampAsLong(Timestamp timestamp)
timestamp - public double getDouble(int elementNum)
elementNum - public static double getDouble(Timestamp timestamp)
timestamp - public int compareTo(int elementNum,
Timestamp timestamp)
elementNum - timestamp - public int compareTo(Timestamp timestamp, int elementNum)
timestamp - elementNum - public int compareTo(int elementNum1,
TimestampColumnVector timestampColVector2,
int elementNum2)
elementNum1 - timestampColVector2 - elementNum2 - public int compareTo(TimestampColumnVector timestampColVector1, int elementNum1, int elementNum2)
timestampColVector1 - elementNum1 - elementNum2 - public void setElement(int outElementNum,
int inputElementNum,
ColumnVector inputVector)
ColumnVectorsetElement in class ColumnVectorpublic void flatten(boolean selectedInUse,
int[] sel,
int size)
flatten in class ColumnVectorpublic void set(int elementNum,
Timestamp timestamp)
elementNum - timestamp - public void setFromScratchTimestamp(int elementNum)
elementNum - public void setNullValue(int elementNum)
elementNum - public void copySelected(boolean selectedInUse,
int[] sel,
int size,
TimestampColumnVector output)
public void fill(Timestamp timestamp)
timestamp - public org.apache.hadoop.io.Writable getScratchWritable()
public void setScratchWritable(org.apache.hadoop.io.Writable scratchWritable)
scratchWritable - public void stringifyValue(StringBuilder buffer, int row)
ColumnVectorstringifyValue in class ColumnVectorbuffer - the buffer to print intorow - the id of the row to printpublic void ensureSize(int size,
boolean preserveData)
ColumnVectorensureSize in class ColumnVectorsize - the new minimum sizepreserveData - should the old data be preserved?Copyright © 2016 The Apache Software Foundation. All rights reserved.