Package org.apache.cassandra.cql3
Class CQL3Type.Custom
- java.lang.Object
-
- org.apache.cassandra.cql3.CQL3Type.Custom
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.cassandra.cql3.CQL3Type
CQL3Type.Collection, CQL3Type.Custom, CQL3Type.Native, CQL3Type.Raw, CQL3Type.Tuple, CQL3Type.UserDefined
-
-
Constructor Summary
Constructors Constructor Description Custom(java.lang.String className)Custom(AbstractType<?> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)AbstractType<?>getType()inthashCode()java.lang.StringtoCQLLiteral(java.nio.ByteBuffer buffer, ProtocolVersion version)Generates CQL literal from a binary value of this type.java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.cql3.CQL3Type
getUDFType, isCollection, isUDT
-
-
-
-
Constructor Detail
-
Custom
public Custom(AbstractType<?> type)
-
Custom
public Custom(java.lang.String className) throws SyntaxException, ConfigurationException
-
-
Method Detail
-
getType
public AbstractType<?> getType()
-
toCQLLiteral
public java.lang.String toCQLLiteral(java.nio.ByteBuffer buffer, ProtocolVersion version)Description copied from interface:CQL3TypeGenerates CQL literal from a binary value of this type.- Specified by:
toCQLLiteralin interfaceCQL3Type- Parameters:
buffer- the value to convert to a CQL literal. This value must be serialized withversionof the native protocol.version- the native protocol version in whichbufferis encoded.
-
equals
public final boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-