org.apache.cassandra.cql
Class Relation
java.lang.Object
org.apache.cassandra.cql.Relation
public class Relation
- extends java.lang.Object
Relations encapsulate the relationship between an entity of some kind, and
a value (term). For example, KEY > "start" or "colname1" = "somevalue".
Constructor Summary |
Relation(Term entity,
java.lang.String type,
Term value)
Creates a new relation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Relation
public Relation(Term entity,
java.lang.String type,
Term value)
- Creates a new relation.
- Parameters:
entity
- the kind of relation this is; what the term is being compared to.type
- the type that describes how this entity relates to the value.value
- the value being compared.
isKey
public boolean isKey()
isColumn
public boolean isColumn()
operator
public org.apache.cassandra.cql.RelationType operator()
getEntity
public Term getEntity()
getValue
public Term getValue()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2011 The Apache Software Foundation