|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cassandra.cql.Term
public class Term
A term parsed from a CQL statement.
Constructor Summary | |
---|---|
protected |
Term()
|
|
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,
org.apache.cassandra.cql.TermType type)
|
Method Summary | |
---|---|
java.nio.ByteBuffer |
getByteBuffer()
Returns the typed value, serialized to a ByteBuffer. |
java.nio.ByteBuffer |
getByteBuffer(AbstractType<?> validator)
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. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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(java.lang.String text, org.apache.cassandra.cql.TermType type)
protected Term()
Method Detail |
---|
public java.lang.String getText()
public java.nio.ByteBuffer getByteBuffer(AbstractType<?> validator) throws org.apache.cassandra.thrift.InvalidRequestException
org.apache.cassandra.thrift.InvalidRequestException
- if unable to coerce the string to its type.public java.nio.ByteBuffer getByteBuffer() throws org.apache.cassandra.thrift.InvalidRequestException
org.apache.cassandra.thrift.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |