K
- type of the column key or nameV
- type of the column valuepublic abstract class Column<K extends Serializable & Comparable<K>,V> extends Object implements Visitable<ColumnVisitor<K>>
Modifier and Type | Field and Description |
---|---|
protected com.netflix.astyanax.Serializer<V> |
serializer |
Modifier | Constructor and Description |
---|---|
protected |
Column(ColumnName<K,V> name)
Creates a column with no value.
|
protected |
Column(ColumnName<K,V> name,
V value)
Creates a column.
|
|
Column(ColumnName<K,V> name,
V value,
com.netflix.astyanax.Serializer<V> serializer) |
Modifier and Type | Method and Description |
---|---|
abstract int |
compareTo(Column<K,V> o2) |
boolean |
equals(Object obj) |
ColumnName<K,V> |
getName()
Gets the column's name.
|
com.netflix.astyanax.Serializer<V> |
getSerializer()
Gets the serializer to use to encode decode the value.
|
V |
getValue()
Gets the column's value.
|
int |
hashCode() |
String |
toString() |
protected final com.netflix.astyanax.Serializer<V> serializer
protected Column(ColumnName<K,V> name)
name
- column's nameprotected Column(ColumnName<K,V> name, V value)
name
- column's namevalue
- column's valuepublic Column(ColumnName<K,V> name, V value, com.netflix.astyanax.Serializer<V> serializer)
public ColumnName<K,V> getName()
public V getValue()
public com.netflix.astyanax.Serializer<V> getSerializer()
Copyright © 2015. All Rights Reserved.