public interface Query
| Modifier and Type | Interface and Description |
|---|---|
static class |
Query.Compare
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Iterable<Edge> |
edges()
Execute the query and return the matching edges.
|
Query |
has(String key)
Filter out elements that do not have a property with provided key.
|
Query |
has(String key,
Object value)
Filter out elements that do not have a property value equal to provided value.
|
Query |
has(String key,
Predicate predicate,
Object value)
Filter out the element if it does not have a property with a comparable value.
|
<T extends Comparable<T>> |
has(String key,
T value,
Query.Compare compare)
Deprecated.
|
Query |
hasNot(String key)
Filter out elements that have a property with provided key.
|
Query |
hasNot(String key,
Object value)
Filter out elements that have a property value equal to provided value.
|
<T extends Comparable<?>> |
interval(String key,
T startValue,
T endValue)
Filter out the element of its property value is not within the provided interval.
|
Query |
limit(int limit)
Filter out the element if the take number of incident/adjacent elements to retrieve has already been reached.
|
Iterable<Vertex> |
vertices()
Execute the query and return the vertices on the other end of the matching edges.
|
Query has(String key)
key - the key of the propertyQuery hasNot(String key)
key - the key of the propertyQuery has(String key, Object value)
key - the key of the propertyvalue - the value to check againstQuery hasNot(String key, Object value)
key - the key of the propertyvalue - the value to check againstQuery has(String key, Predicate predicate, Object value)
key - the key of the propertypredicate - the comparator to use for comparisonvalue - the value to check against@Deprecated <T extends Comparable<T>> Query has(String key, T value, Query.Compare compare)
key - the key of the propertyvalue - the value to check againstcompare - the comparator to use for comparison<T extends Comparable<?>> Query interval(String key, T startValue, T endValue)
key - the key of the propertystartValue - the inclusive start value of the intervalendValue - the exclusive end value of the intervalQuery limit(int limit)
limit - the take number of elements to returnIterable<Edge> edges()
Copyright © 2010-2014. All Rights Reserved.