public abstract class QueryBase extends Object implements Query, SimilarToGraphQuery
| Modifier and Type | Class and Description |
|---|---|
static class |
QueryBase.HasContainer |
| Modifier | Constructor and Description |
|---|---|
protected |
QueryBase(Graph graph,
String[] similarToFields,
String similarToText,
Map<String,PropertyDefinition> propertyDefinitions,
Authorizations authorizations) |
protected |
QueryBase(Graph graph,
String queryString,
Map<String,PropertyDefinition> propertyDefinitions,
Authorizations authorizations) |
| Modifier and Type | Method and Description |
|---|---|
SimilarToGraphQuery |
boost(float boost)
The amount of boost to apply to the similarity query.
|
Iterable<Edge> |
edges() |
abstract Iterable<Edge> |
edges(EnumSet<FetchHint> fetchHints) |
Iterable<Edge> |
edges(String label) |
Iterable<Edge> |
edges(String label,
EnumSet<FetchHint> fetchHints) |
Graph |
getGraph() |
QueryParameters |
getParameters() |
protected Map<String,PropertyDefinition> |
getPropertyDefinitions() |
<T> Query |
has(String propertyName,
Predicate predicate,
T value)
Adds a filter to the query.
|
<T> Query |
has(String propertyName,
T value)
Adds an
Compare.EQUAL filter to the query. |
Query |
limit(int count) |
SimilarToGraphQuery |
maxDocFrequency(int maxDocFrequency)
The maximum number of documents a term can be in to be considered for a similarity match.
|
SimilarToGraphQuery |
maxQueryTerms(int maxQueryTerms)
The maximum number of terms to be searched for.
|
SimilarToGraphQuery |
minDocFrequency(int minDocFrequency)
The minimum number of documents a term must be in to be considered for a similarity match.
|
SimilarToGraphQuery |
minTermFrequency(int minTermFrequency)
The minimum number of times a term must appear in the source data to be considered for a match.
|
SimilarToGraphQuery |
percentTermsToMatch(float percentTermsToMatch)
The percentage of terms that must match to be considered similar.
|
<T> Query |
range(String propertyName,
T startValue,
T endValue)
Queries for properties in the given range.
|
Query |
skip(int count) |
Iterable<Vertex> |
vertices() |
abstract Iterable<Vertex> |
vertices(EnumSet<FetchHint> fetchHints) |
protected QueryBase(Graph graph, String queryString, Map<String,PropertyDefinition> propertyDefinitions, Authorizations authorizations)
protected QueryBase(Graph graph, String[] similarToFields, String similarToText, Map<String,PropertyDefinition> propertyDefinitions, Authorizations authorizations)
public <T> Query range(String propertyName, T startValue, T endValue)
Querypublic <T> Query has(String propertyName, T value)
QueryCompare.EQUAL filter to the query.public <T> Query has(String propertyName, Predicate predicate, T value)
Queryhas in interface QuerypropertyName - The name of the property to query on.predicate - One of Compare,
TextPredicate,
or GeoCompare.value - The value of the property to query for.public Graph getGraph()
public QueryParameters getParameters()
protected Map<String,PropertyDefinition> getPropertyDefinitions()
public SimilarToGraphQuery minTermFrequency(int minTermFrequency)
SimilarToGraphQueryminTermFrequency in interface SimilarToGraphQuerypublic SimilarToGraphQuery maxQueryTerms(int maxQueryTerms)
SimilarToGraphQuerymaxQueryTerms in interface SimilarToGraphQuerypublic SimilarToGraphQuery minDocFrequency(int minDocFrequency)
SimilarToGraphQueryminDocFrequency in interface SimilarToGraphQuerypublic SimilarToGraphQuery maxDocFrequency(int maxDocFrequency)
SimilarToGraphQuerymaxDocFrequency in interface SimilarToGraphQuerypublic SimilarToGraphQuery percentTermsToMatch(float percentTermsToMatch)
SimilarToGraphQuerypercentTermsToMatch in interface SimilarToGraphQuerypublic SimilarToGraphQuery boost(float boost)
SimilarToGraphQueryboost in interface SimilarToGraphQueryCopyright © 2014–2015. All rights reserved.