use of org.apache.atlas.repository.graphdb.AtlasGraphQuery.MatchingOperator in project atlas by apache.
the class NativeJanusGraphQuery method has.
@Override
public void has(String propertyName, QueryOperator op, Object value) {
JanusGraphPredicate pred;
if (op instanceof ComparisionOperator) {
Compare c = getGremlinPredicate((ComparisionOperator) op);
pred = JanusGraphPredicate.Converter.convert(c);
} else {
pred = getGremlinPredicate((MatchingOperator) op);
}
query.has(propertyName, pred, value);
}
use of org.apache.atlas.repository.graphdb.AtlasGraphQuery.MatchingOperator in project incubator-atlas by apache.
the class NativeTitan0GraphQuery method has.
@Override
public void has(String propertyName, QueryOperator op, Object value) {
TitanPredicate pred;
if (op instanceof ComparisionOperator) {
Compare c = getGremlinPredicate((ComparisionOperator) op);
pred = TitanPredicate.Converter.convert(c);
} else {
pred = getGremlinPredicate((MatchingOperator) op);
}
query.has(propertyName, pred, value);
}
use of org.apache.atlas.repository.graphdb.AtlasGraphQuery.MatchingOperator in project incubator-atlas by apache.
the class NativeTitan1GraphQuery method has.
@Override
public void has(String propertyName, QueryOperator op, Object value) {
TitanPredicate pred;
if (op instanceof ComparisionOperator) {
Compare c = getGremlinPredicate((ComparisionOperator) op);
pred = TitanPredicate.Converter.convert(c);
} else {
pred = getGremlinPredicate((MatchingOperator) op);
}
query.has(propertyName, pred, value);
}
use of org.apache.atlas.repository.graphdb.AtlasGraphQuery.MatchingOperator in project atlas by apache.
the class NativeTitan0GraphQuery method has.
@Override
public void has(String propertyName, QueryOperator op, Object value) {
TitanPredicate pred;
if (op instanceof ComparisionOperator) {
Compare c = getGremlinPredicate((ComparisionOperator) op);
pred = TitanPredicate.Converter.convert(c);
} else {
pred = getGremlinPredicate((MatchingOperator) op);
}
query.has(propertyName, pred, value);
}
Aggregations