public class Term
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
Term() |
|
Term(long value,
org.apache.cassandra.cql.TermType type) |
|
Term(java.lang.String text,
int type)
Create new Term instance from a string, and an integer that corresponds
with the token ID from CQLParser.
|
|
Term(java.lang.String text,
int type,
int index) |
|
Term(java.lang.String text,
org.apache.cassandra.cql.TermType type) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.nio.ByteBuffer |
getByteBuffer()
Returns the typed value, serialized to a ByteBuffer.
|
java.nio.ByteBuffer |
getByteBuffer(AbstractType<?> validator,
java.util.List<java.nio.ByteBuffer> variables)
Returns the typed value, serialized to a ByteBuffer according to a
comparator/validator.
|
java.lang.String |
getText()
Returns the text parsed to create this term.
|
org.apache.cassandra.cql.TermType |
getType()
Obtain the term's type.
|
int |
hashCode() |
boolean |
isBindMarker() |
java.lang.String |
toString() |
public Term(java.lang.String text, org.apache.cassandra.cql.TermType type)
public Term(java.lang.String text, int type)
text
- the text representation of the term.type
- the term's type as an integer token ID.public Term(long value, org.apache.cassandra.cql.TermType type)
protected Term()
public Term(java.lang.String text, int type, int index)
public java.lang.String getText()
public java.nio.ByteBuffer getByteBuffer(AbstractType<?> validator, java.util.List<java.nio.ByteBuffer> variables) throws InvalidRequestException
InvalidRequestException
- if unable to coerce the string to its type.public java.nio.ByteBuffer getByteBuffer() throws InvalidRequestException
InvalidRequestException
- if unable to coerce the string to its type.public org.apache.cassandra.cql.TermType getType()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isBindMarker()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2013 The Apache Software Foundation