org.apache.cassandra.config
Class ColumnDefinition
java.lang.Object
org.apache.cassandra.config.ColumnDefinition
public class ColumnDefinition
- extends java.lang.Object
Constructor Summary |
ColumnDefinition(java.nio.ByteBuffer name,
java.lang.String validation_class,
IndexType index_type,
java.lang.String index_name)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
name
public final java.nio.ByteBuffer name
validator
public final AbstractType validator
ColumnDefinition
public ColumnDefinition(java.nio.ByteBuffer name,
java.lang.String validation_class,
IndexType index_type,
java.lang.String index_name)
throws ConfigurationException
- Throws:
ConfigurationException
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.avro.ColumnDef deflate()
inflate
public static ColumnDefinition inflate(org.apache.cassandra.avro.ColumnDef cd)
fromColumnDef
public static ColumnDefinition fromColumnDef(ColumnDef thriftColumnDef)
throws ConfigurationException
- Throws:
ConfigurationException
fromColumnDef
public static ColumnDefinition fromColumnDef(org.apache.cassandra.avro.ColumnDef avroColumnDef)
throws ConfigurationException
- Throws:
ConfigurationException
fromColumnDef
public static java.util.Map<java.nio.ByteBuffer,ColumnDefinition> fromColumnDef(java.util.List<ColumnDef> thriftDefs)
throws ConfigurationException
- Throws:
ConfigurationException
fromColumnDefs
public static java.util.Map<java.nio.ByteBuffer,ColumnDefinition> fromColumnDefs(java.lang.Iterable<org.apache.cassandra.avro.ColumnDef> avroDefs)
throws ConfigurationException
- Throws:
ConfigurationException
validateIndexType
public static void validateIndexType(org.apache.cassandra.avro.ColumnDef avroColumnDef)
throws ConfigurationException
- Throws:
ConfigurationException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getIndexName
public java.lang.String getIndexName()
setIndexName
public void setIndexName(java.lang.String s)
getIndexType
public IndexType getIndexType()
setIndexType
public void setIndexType(IndexType index_type)
Copyright © 2011 The Apache Software Foundation