Package org.apache.cassandra.cql3
Class CQL3Type.Collection
- java.lang.Object
-
- org.apache.cassandra.cql3.CQL3Type.Collection
-
-
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 Collection(CollectionType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
AbstractType<?>
getType()
int
hashCode()
boolean
isCollection()
java.lang.String
toCQLLiteral(java.nio.ByteBuffer buffer, ProtocolVersion version)
Generates CQL literal from a binary value of this type.java.lang.String
toString()
-
-
-
Constructor Detail
-
Collection
public Collection(CollectionType type)
-
-
Method Detail
-
getType
public AbstractType<?> getType()
-
isCollection
public boolean isCollection()
- Specified by:
isCollection
in interfaceCQL3Type
-
toCQLLiteral
public java.lang.String toCQLLiteral(java.nio.ByteBuffer buffer, ProtocolVersion version)
Description copied from interface:CQL3Type
Generates CQL literal from a binary value of this type.- Specified by:
toCQLLiteral
in interfaceCQL3Type
- Parameters:
buffer
- the value to convert to a CQL literal. This value must be serialized withversion
of the native protocol.version
- the native protocol version in whichbuffer
is encoded.
-
equals
public final boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-