Search in sources :

Example 6 with TitanPredicate

use of com.thinkaurelius.titan.graphdb.query.TitanPredicate in project incubator-atlas by apache.

the class NativeTitan0GraphQuery method has.

@Override
public void has(String propertyName, ComparisionOperator op, Object value) {
    Compare c = getGremlinPredicate(op);
    TitanPredicate pred = TitanPredicate.Converter.convert(c);
    query.has(propertyName, pred, value);
}
Also used : Compare(com.tinkerpop.blueprints.Compare) TitanPredicate(com.thinkaurelius.titan.graphdb.query.TitanPredicate)

Example 7 with TitanPredicate

use of com.thinkaurelius.titan.graphdb.query.TitanPredicate in project incubator-atlas by apache.

the class NativeTitan1GraphQuery method has.

@Override
public void has(String propertyName, ComparisionOperator op, Object value) {
    Compare c = getGremlinPredicate(op);
    TitanPredicate pred = TitanPredicate.Converter.convert(c);
    query.has(propertyName, pred, value);
}
Also used : Compare(org.apache.tinkerpop.gremlin.process.traversal.Compare) TitanPredicate(com.thinkaurelius.titan.graphdb.query.TitanPredicate)

Aggregations

TitanPredicate (com.thinkaurelius.titan.graphdb.query.TitanPredicate)7 Mapping (com.thinkaurelius.titan.core.schema.Mapping)4 Instant (java.time.Instant)3 TitanElement (com.thinkaurelius.titan.core.TitanElement)2 Shape (com.spatial4j.core.shape.Shape)1 Cmp (com.thinkaurelius.titan.core.attribute.Cmp)1 Geoshape (com.thinkaurelius.titan.core.attribute.Geoshape)1 Parameter (com.thinkaurelius.titan.core.schema.Parameter)1 And (com.thinkaurelius.titan.graphdb.query.condition.And)1 Condition (com.thinkaurelius.titan.graphdb.query.condition.Condition)1 Not (com.thinkaurelius.titan.graphdb.query.condition.Not)1 Or (com.thinkaurelius.titan.graphdb.query.condition.Or)1 PredicateCondition (com.thinkaurelius.titan.graphdb.query.condition.PredicateCondition)1 Compare (com.tinkerpop.blueprints.Compare)1 ArrayList (java.util.ArrayList)1 Date (java.util.Date)1 List (java.util.List)1 UUID (java.util.UUID)1 BooleanFilter (org.apache.lucene.queries.BooleanFilter)1 TermsFilter (org.apache.lucene.queries.TermsFilter)1