public abstract class DefaultQuery extends Object implements Query
| Modifier and Type | Class and Description |
|---|---|
protected class |
DefaultQuery.HasContainer |
Query.Compare| Modifier and Type | Field and Description |
|---|---|
Direction |
direction |
List<DefaultQuery.HasContainer> |
hasContainers |
String[] |
labels |
int |
limit |
| Constructor and Description |
|---|
DefaultQuery() |
| Modifier and Type | Method and Description |
|---|---|
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)
Filter out the element if it does not have a property with a comparable value.
|
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 count)
Filter out the element if the take number of incident/adjacent elements to retrieve has already been reached.
|
public Direction direction
public String[] labels
public int limit
public List<DefaultQuery.HasContainer> hasContainers
public Query has(String key, Object value)
Querypublic Query hasNot(String key, Object value)
Querypublic Query hasNot(String key)
Querypublic Query has(String key)
Querypublic <T extends Comparable<T>> Query has(String key, T value, Query.Compare compare)
Querypublic Query has(String key, Predicate predicate, Object value)
Querypublic <T extends Comparable<?>> Query interval(String key, T startValue, T endValue)
QueryCopyright © 2010-2014. All Rights Reserved.