public class

ThriftColumnDefinitionImpl

extends Object
implements ColumnDefinition
java.lang.Object
   ↳ com.netflix.astyanax.thrift.ddl.ThriftColumnDefinitionImpl

Summary

Public Constructors
ThriftColumnDefinitionImpl()
ThriftColumnDefinitionImpl(ColumnDef columnDef)
Public Methods
String getIndexName()
Return the index name
String getIndexType()
Return the index type.
String getName()
Get the column name
ByteBuffer getRawName()
Get the raw column name.
String getValidationClass()
Return the value validation type.
boolean hasIndex()
Returns true if there is an index on this column
ColumnDefinition setIndex(String name, String type)
Sets an index on this column.
ColumnDefinition setKeysIndex(String name)
Sets a keys index on this column
ColumnDefinition setName(byte[] name)
Sets the column byte array name
ColumnDefinition setName(String name)
Sets the column string name
ColumnDefinition setName(ByteBuffer name)
Sets the column byte buffer name
ColumnDefinition setValidationClass(String value)
Sets the validation class for the column values.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.netflix.astyanax.ddl.ColumnDefinition

Public Constructors

public ThriftColumnDefinitionImpl ()

public ThriftColumnDefinitionImpl (ColumnDef columnDef)

Public Methods

public String getIndexName ()

Return the index name

public String getIndexType ()

Return the index type. At the time of this writing only KEYS index is supported

public String getName ()

Get the column name

public ByteBuffer getRawName ()

Get the raw column name. In most cases the column name is a string but the actual column name is stored as a byte array

public String getValidationClass ()

Return the value validation type. See ComparatorType for possible values.

public boolean hasIndex ()

Returns true if there is an index on this column

public ColumnDefinition setIndex (String name, String type)

Sets an index on this column.

Parameters
name Name of index
type "KEYS"

public ColumnDefinition setKeysIndex (String name)

Sets a keys index on this column

public ColumnDefinition setName (byte[] name)

Sets the column byte array name

public ColumnDefinition setName (String name)

Sets the column string name

public ColumnDefinition setName (ByteBuffer name)

Sets the column byte buffer name

public ColumnDefinition setValidationClass (String value)

Sets the validation class for the column values. See ComparatorType for possible values. Setting the validation class here makes it possible to have different values types per column within the same column family.