|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.netflix.astyanax.model.ColumnPath<C>
public class ColumnPath<C>
Container for a path within a row. The path is essentially a list of columns in hierarchical order. Paths can have any column name type which is eventually converted to a ByteBuffer. When querying a super column the path must also include a serializer for the sub columns names. The serializer is not needed when reading a subcolumn or standard column. The current Cassandra implementation only supports a path depth of 2. C - Serializer for column names at the end of the path. For super columns. C2 - Serializer for a column name that is part of the path
Constructor Summary | |
---|---|
ColumnPath()
Deprecated. Construct a column path for a mutation. |
|
ColumnPath(Serializer<C> columnSerializer)
Deprecated. Construct an empty path and give it the serializer for column names at the end of the path. |
Method Summary | ||
---|---|---|
|
append(C2 name,
Serializer<C2> ser)
Deprecated. Add a depth to the path |
|
|
append(double name)
Deprecated. |
|
|
append(int name)
Deprecated. |
|
|
append(java.lang.String name)
Deprecated. |
|
java.nio.ByteBuffer |
get(int index)
Deprecated. Get a path element from a specific depth |
|
java.nio.ByteBuffer |
getLast()
Deprecated. Returns the last element in the path. |
|
Serializer<C> |
getSerializer()
Deprecated. Return serializer for column names at the end of the path |
|
java.util.Iterator<java.nio.ByteBuffer> |
iterator()
Deprecated. |
|
int |
length()
Deprecated. Return the path 'depth' |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ColumnPath(Serializer<C> columnSerializer)
columnSerializer
- public ColumnPath()
Method Detail |
---|
public <C2> ColumnPath<C> append(C2 name, Serializer<C2> ser)
C
- ser
- name
-
public <C2> ColumnPath<C> append(java.lang.String name)
public <C2> ColumnPath<C> append(int name)
public <C2> ColumnPath<C> append(double name)
public java.util.Iterator<java.nio.ByteBuffer> iterator()
iterator
in interface java.lang.Iterable<java.nio.ByteBuffer>
public int length()
public java.nio.ByteBuffer get(int index)
index
-
public java.nio.ByteBuffer getLast()
public Serializer<C> getSerializer()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |