public class Cell extends Object
Constructor and Description |
---|
Cell(BinaryValue varcharValue)
Creates a new "Varchar" cell from the provided BinaryValue.
|
Cell(boolean booleanValue)
Creates a new "Boolean" Cell from the provided boolean.
|
Cell(byte[] blobValue)
Creates a new "Blob" Cell from the provided byte array.
|
Cell(Calendar timestampValue)
Creates a new "Timestamp" Cell from the provided Calendar, by fetching the current time in milliseconds.
|
Cell(Date timestampValue)
Creates a new "Timestamp" Cell from the provided Date, by fetching the current time in milliseconds.
|
Cell(double doubleValue)
Creates a new double cell.
|
Cell(long sint64Value)
Creates a new "Integer" Cell from the provided long.
|
Cell(String varcharValue)
Creates a new "Varchar" Cell, based on the UTF8 binary encoding of the provided String.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
byte[] |
getBlob() |
boolean |
getBoolean() |
double |
getDouble() |
long |
getLong() |
long |
getTimestamp() |
String |
getVarcharAsUTF8String() |
BinaryValue |
getVarcharValue() |
boolean |
hasBlob() |
boolean |
hasBoolean() |
boolean |
hasDouble() |
int |
hashCode() |
boolean |
hasLong() |
boolean |
hasTimestamp() |
boolean |
hasVarcharValue() |
static Cell |
newTimestamp(long rawTimestampValue)
Creates a new "Timestamp" cell from the provided raw value.
|
String |
toString() |
public Cell(String varcharValue)
varcharValue
- The string to encode and store.public Cell(BinaryValue varcharValue)
varcharValue
- The BinaryValue to store.public Cell(long sint64Value)
sint64Value
- The long to store.public Cell(double doubleValue)
doubleValue
- The double to store.public Cell(boolean booleanValue)
booleanValue
- The boolean to store.public Cell(Calendar timestampValue)
timestampValue
- The Calendar to fetch the timestamp from.public Cell(Date timestampValue)
timestampValue
- The Date to fetch the timestamp from.public Cell(byte[] blobValue)
blobValue
- The blob to store.public static Cell newTimestamp(long rawTimestampValue)
rawTimestampValue
- The epoch timestamp, including milliseconds.public boolean hasVarcharValue()
public boolean hasLong()
public boolean hasDouble()
public boolean hasTimestamp()
public boolean hasBoolean()
public boolean hasBlob()
public String getVarcharAsUTF8String()
public BinaryValue getVarcharValue()
public long getLong()
public double getDouble()
public long getTimestamp()
public boolean getBoolean()
public byte[] getBlob()
Copyright © 2016. All rights reserved.