Package | Description |
---|---|
org.hypergraphdb |
Welcome to HyperGraphDB
|
org.hypergraphdb.query | |
org.hypergraphdb.query.cond2qry | |
org.hypergraphdb.query.impl | |
org.hypergraphdb.util |
Modifier and Type | Method and Description |
---|---|
HGQuery<SearchResult> |
HGQuery.compile(HGQueryCondition condition)
Compile the passed in condition as
this query object and return this . |
<T> HGQuery<SearchResult> |
HGQuery.initialVar(String name,
T value) |
static <SearchResult> |
HGQuery.make(Class<SearchResult> type,
HyperGraph graph)
Create a new query with the given result type and bound to the given
HyperGraph instance. |
static <T> HGQuery<T> |
HGQuery.hg.make(Class<T> type,
HyperGraph graph) |
static <SearchResult> |
HGQuery.make(HyperGraph graph,
HGQueryCondition condition)
Create a new query returning all atoms matching the given
HGQueryCondition . |
static <ResultType> |
HGQuery.NOP()
A query that return the empty result set.
|
<T> HGQuery<SearchResult> |
HGQuery.var(String name,
T value)
Modify the thread-local copy of a given variable.
|
Modifier and Type | Method and Description |
---|---|
static long |
HGQuery.hg.count(HGQuery<?> query)
Count the result set from executing the given query.
|
static <T> List<T> |
HGQuery.hg.findAll(HGQuery<T> query)
Execute the given query, put all the elements from the result set in a
List
and return that List |
static <T> List<T> |
HGQuery.hg.getAll(HGQuery<HGHandle> query)
Execute the given query, put all atom instances
from the result set into a
java.util.List . |
Modifier and Type | Class and Description |
---|---|
class |
AnalyzedQuery<SearchResult>
A query object that holds information collected during the compilation process.
|
Modifier and Type | Method and Description |
---|---|
static <T> HGQuery<T> |
QueryCompile.translate(HyperGraph graph,
HGQueryCondition condition) |
Modifier and Type | Method and Description |
---|---|
<R> void |
AnalyzedQuery.translated(HGQueryCondition source,
HGQuery<R> destination,
QueryMetaData metadata) |
Modifier and Type | Class and Description |
---|---|
class |
ExpressionBasedQuery<ResultType> |
Modifier and Type | Class and Description |
---|---|
class |
DefaultKeyBasedQuery<Key,Value> |
class |
IndexBasedQuery<T>
A simple query that operates on a single index.
|
class |
IndexScanQuery<Key,Value>
This queries simply scans all elements in a given index.
|
class |
IntersectionQuery<T>
An
IntersectionQuery combines the results of two underlying
queries and produces a result set containing only elements that appear
in both of the input result sets. |
class |
KeyBasedQuery<Key,Value>
A
KeyBasedQuery is a HGQuery that produces
a result based on a single key value. |
class |
PipeQuery<Key,Value>
A
PipeQuery pipes the output of one query as the
input of another. |
class |
PredicateBasedFilter<T>
A
HGQuery whose result is constructed by filtering the result set
of another HGQuery according to a HGQueryCondition . |
class |
PredicateBasedRAFilter<T>
A
HGQuery whose result is constructed by filtering the result set
of another HGQuery according to a HGQueryCondition . |
class |
ResultMapQuery
A
HGQuery that transforms the result of an underlying query
by applying a provided mapping. |
class |
SearchableBasedQuery<Key,Value>
A simple query that operates on a single
HGSearchable entity, usually
a HGIndex . |
class |
TraversalBasedQuery |
class |
UnionQuery<T>
An
UnionQuery combines the results of two underlying
queries and produces a result set containing elements that appear
in either of the input result sets. |
Modifier and Type | Method and Description |
---|---|
HGQuery<T> |
IntersectionQuery.getLeft() |
HGQuery<T> |
PredicateBasedFilter.getQuery() |
HGQuery<T> |
IntersectionQuery.getRight() |
Modifier and Type | Method and Description |
---|---|
Iterator<HGQuery> |
PipeQuery.iterator() |
Iterator<HGQuery> |
ResultMapQuery.iterator() |
Iterator<HGQuery<T>> |
UnionQuery.iterator() |
Iterator<HGQuery<T>> |
PredicateBasedFilter.iterator() |
Iterator<HGQuery<T>> |
IntersectionQuery.iterator() |
Iterator<HGQuery<T>> |
PredicateBasedRAFilter.iterator() |
Modifier and Type | Method and Description |
---|---|
void |
IntersectionQuery.setLeft(HGQuery<T> left) |
void |
IntersectionQuery.setRight(HGQuery<T> right) |
Constructor and Description |
---|
DelayedSetLoadPredicate(HGQuery<HGHandle> query) |
IntersectionQuery(HGQuery<T> left,
HGQuery<T> right,
RSCombiner<T> combiner)
Construct an intersection of two queries.
|
IntersectionQuery(HGQuery<T> left,
HGQuery<T> right,
RSCombiner<T> combiner)
Construct an intersection of two queries.
|
PipeQuery(HGQuery<Key> in,
KeyBasedQuery<Key,Value> out) |
PredicateBasedFilter(HyperGraph graph,
HGQuery<T> query,
HGAtomPredicate atomPredicate)
Construct a
PredicateBasedFilter , filtering the result
set of a given query based on a HGQueryCondition . |
PredicateBasedFilter(HyperGraph graph,
HGQuery<T> query,
Mapping<T,Boolean> predicate) |
PredicateBasedRAFilter(HyperGraph graph,
HGQuery<T> query,
HGAtomPredicate atomPredicate)
Construct a
PredicateBasedFilter , filtering the result
set of a given query based on a HGQueryCondition . |
PredicateBasedRAFilter(HyperGraph graph,
HGQuery<T> query,
Mapping<T,Boolean> predicate) |
RABasedPredicate(HGQuery query) |
ResultMapQuery(HGQuery query,
Mapping mapping)
Create a query that transforms the output of a given query by
the specified mapping.
|
UnionQuery(HGQuery<T> left,
HGQuery<T> right)
Construct a union of two queries.
|
UnionQuery(HGQuery<T> left,
HGQuery<T> right)
Construct a union of two queries.
|
Modifier and Type | Method and Description |
---|---|
static <T> long |
HGUtils.queryBatchProcess(HGQuery<T> query,
Mapping<T,Boolean> F,
int batchSize,
T startAfter,
long first)
Process a potentially large query result in batches where each batch is a encapsulated
in a single transaction.
|
Copyright © 2015. All rights reserved.