public class

ColumnPath

extends Object
implements Iterable<T>
java.lang.Object
   ↳ com.netflix.astyanax.model.ColumnPath<C>

This class is deprecated.
Super columns should be replaced with composite columns

Class Overview

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

Summary

Public Constructors
ColumnPath(Serializer<C> columnSerializer)
Construct an empty path and give it the serializer for column names at the end of the path.
ColumnPath()
Construct a column path for a mutation.
Public Methods
<C2> ColumnPath<C> append(int name)
<C2> ColumnPath<C> append(double name)
<C2> ColumnPath<C> append(String name)
<C2> ColumnPath<C> append(C2 name, Serializer<C2> ser)
Add a depth to the path
ByteBuffer get(int index)
Get a path element from a specific depth
ByteBuffer getLast()
Returns the last element in the path.
Serializer<C> getSerializer()
Return serializer for column names at the end of the path
Iterator<ByteBuffer> iterator()
int length()
Return the path 'depth'
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.lang.Iterable

Public Constructors

public ColumnPath (Serializer<C> columnSerializer)

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

public ColumnPath ()

Construct a column path for a mutation. The serializer for the column names at the end of the path is not necessary.

Public Methods

public ColumnPath<C> append (int name)

public ColumnPath<C> append (double name)

public ColumnPath<C> append (String name)

public ColumnPath<C> append (C2 name, Serializer<C2> ser)

Add a depth to the path

public ByteBuffer get (int index)

Get a path element from a specific depth

public ByteBuffer getLast ()

Returns the last element in the path. This is usually the column name being queried or modified.

public Serializer<C> getSerializer ()

Return serializer for column names at the end of the path

public Iterator<ByteBuffer> iterator ()

public int length ()

Return the path 'depth'