org.apache.cassandra.config
Class ColumnDefinition

java.lang.Object
  extended by org.apache.cassandra.config.ColumnDefinition

public class ColumnDefinition
extends java.lang.Object


Field Summary
 java.lang.String index_name
           
 IndexType index_type
           
 byte[] name
           
 AbstractType validator
           
 
Constructor Summary
ColumnDefinition(byte[] name, java.lang.String validation_class, IndexType index_type, java.lang.String index_name)
           
 
Method Summary
 org.apache.cassandra.config.avro.ColumnDef deflate()
           
 boolean equals(java.lang.Object o)
           
static ColumnDefinition fromColumnDef(ColumnDef cd)
           
static ColumnDefinition fromColumnDef(org.apache.cassandra.avro.ColumnDef cd)
           
static java.util.Map<byte[],ColumnDefinition> fromColumnDef(java.util.List<ColumnDef> thriftDefs)
           
static java.util.Map<byte[],ColumnDefinition> fromColumnDefs(java.lang.Iterable<org.apache.cassandra.avro.ColumnDef> avroDefs)
           
 int hashCode()
           
static ColumnDefinition inflate(org.apache.cassandra.config.avro.ColumnDef cd)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public final byte[] name

validator

public final AbstractType validator

index_type

public final IndexType index_type

index_name

public final java.lang.String index_name
Constructor Detail

ColumnDefinition

public ColumnDefinition(byte[] name,
                        java.lang.String validation_class,
                        IndexType index_type,
                        java.lang.String index_name)
                 throws ConfigurationException
Throws:
ConfigurationException
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

deflate

public org.apache.cassandra.config.avro.ColumnDef deflate()

inflate

public static ColumnDefinition inflate(org.apache.cassandra.config.avro.ColumnDef cd)

fromColumnDef

public static ColumnDefinition fromColumnDef(ColumnDef cd)
                                      throws ConfigurationException
Throws:
ConfigurationException

fromColumnDef

public static ColumnDefinition fromColumnDef(org.apache.cassandra.avro.ColumnDef cd)
                                      throws ConfigurationException
Throws:
ConfigurationException

fromColumnDef

public static java.util.Map<byte[],ColumnDefinition> fromColumnDef(java.util.List<ColumnDef> thriftDefs)
                                                            throws ConfigurationException
Throws:
ConfigurationException

fromColumnDefs

public static java.util.Map<byte[],ColumnDefinition> fromColumnDefs(java.lang.Iterable<org.apache.cassandra.avro.ColumnDef> avroDefs)
                                                             throws ConfigurationException
Throws:
ConfigurationException


Copyright © 2010 The Apache Software Foundation