C - public class CqlColumnImpl<C>
extends java.lang.Object
implements com.netflix.astyanax.model.Column<C>
Column interface.
Note that since columns can be rows in CQL3, this class needs access to the java driver Row
within the java driver ResultSet
The index provided within the row indicates where to start parsing the Column data.
Also this class handles reading the TTL and Timestamp on the Column as well.| Constructor and Description |
|---|
CqlColumnImpl() |
CqlColumnImpl(C colName,
com.datastax.driver.core.Row row,
int index) |
CqlColumnImpl(C colName,
com.datastax.driver.core.Row row,
int index,
com.datastax.driver.core.ColumnDefinitions.Definition colDefinition) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBooleanValue() |
byte[] |
getByteArrayValue() |
java.nio.ByteBuffer |
getByteBufferValue() |
byte |
getByteValue() |
com.netflix.astyanax.serializers.ComparatorType |
getComparatorType() |
java.lang.String |
getCompressedStringValue() |
java.util.Date |
getDateValue() |
double |
getDoubleValue() |
float |
getFloatValue() |
java.lang.Object |
getGenericValue() |
int |
getIntegerValue() |
long |
getLongValue() |
C |
getName() |
java.nio.ByteBuffer |
getRawName() |
short |
getShortValue() |
java.lang.String |
getStringValue() |
<C2> com.netflix.astyanax.model.ColumnList<C2> |
getSubColumns(com.netflix.astyanax.Serializer<C2> ser)
Deprecated.
|
long |
getTimestamp() |
int |
getTtl() |
java.util.UUID |
getUUIDValue() |
<V> V |
getValue(com.netflix.astyanax.Serializer<V> valSer) |
boolean |
hasValue() |
boolean |
isParentColumn()
Deprecated.
|
public CqlColumnImpl()
public CqlColumnImpl(C colName, com.datastax.driver.core.Row row, int index)
public CqlColumnImpl(C colName, com.datastax.driver.core.Row row, int index, com.datastax.driver.core.ColumnDefinitions.Definition colDefinition)
public java.nio.ByteBuffer getRawName()
getRawName in interface com.netflix.astyanax.model.Column<C>public long getTimestamp()
getTimestamp in interface com.netflix.astyanax.model.Column<C>public <V> V getValue(com.netflix.astyanax.Serializer<V> valSer)
getValue in interface com.netflix.astyanax.model.Column<C>public java.lang.String getStringValue()
getStringValue in interface com.netflix.astyanax.model.Column<C>public java.lang.String getCompressedStringValue()
getCompressedStringValue in interface com.netflix.astyanax.model.Column<C>public byte getByteValue()
getByteValue in interface com.netflix.astyanax.model.Column<C>public short getShortValue()
getShortValue in interface com.netflix.astyanax.model.Column<C>public int getIntegerValue()
getIntegerValue in interface com.netflix.astyanax.model.Column<C>public float getFloatValue()
getFloatValue in interface com.netflix.astyanax.model.Column<C>public double getDoubleValue()
getDoubleValue in interface com.netflix.astyanax.model.Column<C>public long getLongValue()
getLongValue in interface com.netflix.astyanax.model.Column<C>public byte[] getByteArrayValue()
getByteArrayValue in interface com.netflix.astyanax.model.Column<C>public boolean getBooleanValue()
getBooleanValue in interface com.netflix.astyanax.model.Column<C>public java.nio.ByteBuffer getByteBufferValue()
getByteBufferValue in interface com.netflix.astyanax.model.Column<C>public java.util.Date getDateValue()
getDateValue in interface com.netflix.astyanax.model.Column<C>Date from GettableByIndexData.getTimestamp(int) for backwards-
compatibility because this getTimestamp() returns column timestamp, not value of a Date-based column.public java.util.UUID getUUIDValue()
getUUIDValue in interface com.netflix.astyanax.model.Column<C>@Deprecated public <C2> com.netflix.astyanax.model.ColumnList<C2> getSubColumns(com.netflix.astyanax.Serializer<C2> ser)
getSubColumns in interface com.netflix.astyanax.model.Column<C>@Deprecated public boolean isParentColumn()
isParentColumn in interface com.netflix.astyanax.model.Column<C>public int getTtl()
getTtl in interface com.netflix.astyanax.model.Column<C>public boolean hasValue()
hasValue in interface com.netflix.astyanax.model.Column<C>public java.lang.Object getGenericValue()
public com.netflix.astyanax.serializers.ComparatorType getComparatorType()