public interface JanusGraphIndexQuery
Modifier and Type | Interface and Description |
---|---|
static interface |
JanusGraphIndexQuery.Result<V extends org.apache.tinkerpop.gremlin.structure.Element>
Container of a query result with its score.
|
Modifier and Type | Method and Description |
---|---|
JanusGraphIndexQuery |
addParameter(Parameter para)
Adds the given parameter to the list of parameters of this query.
|
JanusGraphIndexQuery |
addParameters(Iterable<Parameter> paras)
Adds the given parameters to the list of parameters of this query.
|
JanusGraphIndexQuery |
addParameters(Parameter... paras)
Adds the given parameters to the list of parameters of this query.
|
Stream<JanusGraphIndexQuery.Result<JanusGraphEdge>> |
edgeStream()
Returns all edges that match the query in the indexing backend.
|
Long |
edgeTotals()
Returns total edges that match the query in the indexing backend ignoring limit and offset.
|
JanusGraphIndexQuery |
limit(int limit)
Specifies the maximum number of elements to return
|
JanusGraphIndexQuery |
offset(int offset)
Specifies the offset of the query.
|
JanusGraphIndexQuery |
orderBy(String key,
org.apache.tinkerpop.gremlin.process.traversal.Order order)
Orders the element results of this query according
to their property for the given key in the given order (increasing/decreasing).
|
Stream<JanusGraphIndexQuery.Result<JanusGraphVertexProperty>> |
propertyStream()
Returns all properties that match the query in the indexing backend.
|
Long |
propertyTotals()
Returns total properties that match the query in the indexing backend ignoring limit and offset.
|
JanusGraphIndexQuery |
setElementIdentifier(String identifier)
Sets the element identifier string that is used by this query builder as the token to identifier key references
in the query string.
|
Stream<JanusGraphIndexQuery.Result<JanusGraphVertex>> |
vertexStream()
Returns all vertices that match the query in the indexing backend.
|
Long |
vertexTotals()
Returns total vertices that match the query in the indexing backend ignoring limit and offset.
|
JanusGraphIndexQuery limit(int limit)
limit
- JanusGraphIndexQuery offset(int offset)
offset
- JanusGraphIndexQuery orderBy(String key, org.apache.tinkerpop.gremlin.process.traversal.Order order)
key
- The key of the properties on which to orderorder
- the ordering directionJanusGraphIndexQuery addParameter(Parameter para)
para
- JanusGraphIndexQuery addParameters(Iterable<Parameter> paras)
paras
- JanusGraphIndexQuery addParameters(Parameter... paras)
paras
- JanusGraphIndexQuery setElementIdentifier(String identifier)
For example, in the query 'v.name: Tom' the element identifier is 'v.'
identifier
- The element identifier which must not be blankStream<JanusGraphIndexQuery.Result<JanusGraphVertex>> vertexStream()
Stream<JanusGraphIndexQuery.Result<JanusGraphEdge>> edgeStream()
Stream<JanusGraphIndexQuery.Result<JanusGraphVertexProperty>> propertyStream()
Long vertexTotals()
Long edgeTotals()
Long propertyTotals()
Copyright © 2012–2023. All rights reserved.