com.netflix.astyanax.model
Class ColumnPath<C>

java.lang.Object
  extended by com.netflix.astyanax.model.ColumnPath<C>
All Implemented Interfaces:
Iterable<ByteBuffer>

Deprecated. Super columns should be replaced with composite columns

public class ColumnPath<C>
extends Object
implements Iterable<ByteBuffer>

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

Author:
elandau TODO: Add append for all serializer types

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
<C2> ColumnPath<C>
append(C2 name, Serializer<C2> ser)
          Deprecated. Add a depth to the path
<C2> ColumnPath<C>
append(double name)
          Deprecated.  
<C2> ColumnPath<C>
append(int name)
          Deprecated.  
<C2> ColumnPath<C>
append(String name)
          Deprecated.  
 ByteBuffer get(int index)
          Deprecated. Get a path element from a specific depth
 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
 Iterator<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

ColumnPath

public ColumnPath(Serializer<C> columnSerializer)
Deprecated. 
Construct an empty path and give it the serializer for column names at the end of the path. Use this constructor when performing a query

Parameters:
columnSerializer -

ColumnPath

public ColumnPath()
Deprecated. 
Construct a column path for a mutation. The serializer for the column names at the end of the path is not necessary.

Method Detail

append

public <C2> ColumnPath<C> append(C2 name,
                                 Serializer<C2> ser)
Deprecated. 
Add a depth to the path

Type Parameters:
C -
Parameters:
ser -
name -
Returns:

append

public <C2> ColumnPath<C> append(String name)
Deprecated. 

append

public <C2> ColumnPath<C> append(int name)
Deprecated. 

append

public <C2> ColumnPath<C> append(double name)
Deprecated. 

iterator

public Iterator<ByteBuffer> iterator()
Deprecated. 
Specified by:
iterator in interface Iterable<ByteBuffer>

length

public int length()
Deprecated. 
Return the path 'depth'

Returns:

get

public ByteBuffer get(int index)
Deprecated. 
Get a path element from a specific depth

Parameters:
index -
Returns:

getLast

public ByteBuffer getLast()
Deprecated. 
Returns the last element in the path. This is usually the column name being queried or modified.

Returns:

getSerializer

public Serializer<C> getSerializer()
Deprecated. 
Return serializer for column names at the end of the path

Returns:


Copyright © 2012. All Rights Reserved.