|
||||||||||
| 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(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,
org.apache.cassandra.cql.TermType type)
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
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. |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, 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)
public Term(long value,
org.apache.cassandra.cql.TermType type)
protected Term()
| Method Detail |
|---|
public java.lang.String getText()
public java.nio.ByteBuffer getByteBuffer(AbstractType<?> validator)
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.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||