Package | Description |
---|---|
org.hypergraphdb |
Welcome to HyperGraphDB
|
org.hypergraphdb.atom | |
org.hypergraphdb.query | |
org.hypergraphdb.query.cond2qry | |
org.hypergraphdb.query.impl |
Modifier and Type | Method and Description |
---|---|
static HGQueryCondition |
HGQuery.hg.all()
Return a condition that will yield all atoms in the graph.
|
static HGQueryCondition |
HGQuery.hg.apply(Mapping<?,?> m,
HGQueryCondition c)
Return a "condition" that transforms the result set by applying an arbitrary
Mapping to each
element. |
static HGQueryCondition |
HGQuery.hg.deref(HyperGraph graph,
HGQueryCondition condition)
Short for
hg.apply(hg.deref(graph), condition) - assuming the condition
parameter yields a result set of HGHandle s, the returned condition will yield a result set
of atoms loaded from the graph parameter. |
static HGQueryCondition |
HGQuery.hg.guessUniquenessCondition(HyperGraph graph,
Object instance)
Construct a
HGQueryCondition that uniquely identifies an atom based on
the passed in Object instance. |
Modifier and Type | Method and Description |
---|---|
static HGHandle |
HGQuery.hg.addUnique(HyperGraph graph,
Object instance,
Class<?> javaClass,
HGQueryCondition condition)
Add a new atom of a given type only if there's no atom matching the passed in
HGQueryCondition . |
static HGHandle |
HGQuery.hg.addUnique(HyperGraph graph,
Object instance,
HGHandle typeHandle,
HGQueryCondition condition)
Add a new atom of a given type only if there's no atom matching the passed in
HGQueryCondition . |
static HGHandle |
HGQuery.hg.addUnique(HyperGraph graph,
Object instance,
HGQueryCondition condition)
Add the given instance as an atom in the graph if and only if no atoms
match the passed in
HGQueryCondition |
static And |
HGQuery.hg.and(HGQueryCondition... clauses)
Return a conjunction (logical
and ) of conditions - atoms in the result set will have
to match all condition in the parameter list. |
static HGQueryCondition |
HGQuery.hg.apply(Mapping<?,?> m,
HGQueryCondition c)
Return a "condition" that transforms the result set by applying an arbitrary
Mapping to each
element. |
HGQuery<SearchResult> |
HGQuery.compile(HGQueryCondition condition)
Compile the passed in condition as
this query object and return this . |
long |
HyperGraph.count(HGQueryCondition condition) |
long |
HyperNode.count(HGQueryCondition condition) |
static long |
HGQuery.hg.count(HyperGraph graph,
HGQueryCondition cond)
Count the number of atoms that match the query condition parameter.
|
static HGQueryCondition |
HGQuery.hg.deref(HyperGraph graph,
HGQueryCondition condition)
Short for
hg.apply(hg.deref(graph), condition) - assuming the condition
parameter yields a result set of HGHandle s, the returned condition will yield a result set
of atoms loaded from the graph parameter. |
<T> HGSearchResult<T> |
HyperGraph.find(HGQueryCondition condition)
Run a HyperGraphDB lookup query based on the specified condition.
|
<T> HGSearchResult<T> |
HyperNode.find(HGQueryCondition condition) |
List<HGHandle> |
HyperGraph.findAll(HGQueryCondition condition) |
<T> List<T> |
HyperNode.findAll(HGQueryCondition condition) |
static <T> List<T> |
HGQuery.hg.findAll(HyperGraph graph,
HGQueryCondition condition)
Run a query based on the specified condition and put all
HGHandle s
from the result set into a java.util.List . |
<T> T |
HyperGraph.findOne(HGQueryCondition condition) |
<T> T |
HyperNode.findOne(HGQueryCondition condition) |
static <T> T |
HGQuery.hg.findOne(HyperGraph graph,
HGQueryCondition condition)
Run a query based on the passed in condition.
|
<T> List<T> |
HyperGraph.getAll(HGQueryCondition condition) |
<T> List<T> |
HyperNode.getAll(HGQueryCondition condition) |
static <T> List<T> |
HGQuery.hg.getAll(HyperGraph graph,
HGQueryCondition condition)
Run a query based on the specified condition and put all atom instances
from the result set into a
java.util.List . |
<T> T |
HyperGraph.getOne(HGQueryCondition condition) |
<T> T |
HyperNode.getOne(HGQueryCondition condition) |
static <T> T |
HGQuery.hg.getOne(HyperGraph graph,
HGQueryCondition condition)
Run a query based on the passed in condition.
|
static <SearchResult> |
HGQuery.make(HyperGraph graph,
HGQueryCondition condition)
Create a new query returning all atoms matching the given
HGQueryCondition . |
static Or |
HGQuery.hg.or(HGQueryCondition... clauses)
Return a disjunction (logical
or ) of conditions - atoms in the result set will have
to match at least one of the conditions in the parameter list. |
Modifier and Type | Method and Description |
---|---|
long |
HGSubgraph.count(HGQueryCondition condition) |
<T> HGSearchResult<T> |
HGSubgraph.find(HGQueryCondition condition) |
List<HGHandle> |
HGSubgraph.findAll(HGQueryCondition condition) |
<T> T |
HGSubgraph.findOne(HGQueryCondition condition) |
<T> List<T> |
HGSubgraph.getAll(HGQueryCondition condition) |
<T> T |
HGSubgraph.getOne(HGQueryCondition condition) |
Modifier and Type | Class and Description |
---|---|
class |
And
Represents the conjunction operator of a query condition.
|
class |
AnyAtomCondition
This condition is satisfied by any and all atoms in the HyperGraph database.
|
class |
ArityCondition
The
ArityCondition is a simply predicate condition that checks the arity
(i.e. |
class |
AtomPartCondition
A condition that constraints the value of a component of a composite typed atom.
|
class |
AtomPartRegExPredicate
A predicate that constrains the value of a component of a composite typed atom using a
regular expression.
|
class |
AtomProjectionCondition
An
AtomProjectionCondition will yield all atoms that are
projections along a certain dimension of a given base atom set. |
class |
AtomRegExPredicate
Base class for matching string values using a regular expression.
|
class |
AtomTypeCondition
An
AtomTypeCondition examines the type of a given atom
and evaluates to true or false depending on
whether the type of the atom matches exactly (i.e. |
class |
AtomValueCondition
The
AtomValueCondition represents a query condition on
the atom value. |
class |
AtomValueRegExPredicate
A predicate that constrains the value of an atom using a regular expression.
|
class |
BFSCondition
The breadth-first search variant of a
TraversalCondition . |
class |
DFSCondition
The depth-first search variant of a
TraversalCondition . |
class |
DisconnectedPredicate
A predicate that returns
true if the incidence set of a given atom
is empty and false otherwise. |
class |
IncidentCondition
The
IncidentCondition specifies that a search result atom
should be a member of the incidence set of a given atom. |
class |
IndexCondition<Key,Value> |
class |
IndexedPartCondition |
class |
IsCondition
An "identity" condition that evaluates to true for a specific handle.
|
class |
LinkCondition
A
LinkCondition constraints the query result set to links
pointing to a target set of atoms. |
class |
MapCondition |
class |
Not
A generic negating
HGQueryCondition . |
class |
Nothing
This condition represents the negation of everything.
|
class |
Or
Represents the disjunction operator of a query condition.
|
class |
OrderedLinkCondition
A
OrderedLinkCondition constraints the query result set to ordered links
pointing to a target set of atoms. |
class |
PositionedIncidentCondition
A
PositionedLinkCondition constraints the query result set to
links pointing to a target atom positioned within a predetermined range in
the link tuple. |
class |
SimpleValueCondition
Basic class for conditions examining individual primitive values.
|
class |
SubgraphContainsCondition |
class |
SubgraphMemberCondition |
class |
SubsumedCondition
The
SubsumedCondition examines a given atom and is satisfied
if that atom is subsumed by the atom specified in the condition. |
class |
SubsumesCondition
The
SubsumesCondition examines a given atom and is satisfied
if that atom subsumes the atom specified in the condition. |
class |
TargetCondition
A query condition that constraints the result set to atoms that are targets to
a specific link.
|
class |
TraversalCondition
A condition that gets translated into a graph traversal.
|
class |
TypedValueCondition
This is a
HGQueryCondition that constrains the value of an
atom as well as its type. |
class |
TypePlusCondition |
Modifier and Type | Method and Description |
---|---|
HGQueryCondition |
AtomProjectionCondition.getBaseSetCondition() |
HGQueryCondition |
MapCondition.getCondition() |
Modifier and Type | Method and Description |
---|---|
Map<String,Set<HGQueryCondition>> |
AnalyzedQuery.analyze() |
Pair<HGQueryCondition,Set<HGQueryCondition>> |
QueryCompile.Contract.contract(HyperGraph graph,
HGQueryCondition expression) |
Pair<HGQueryCondition,Set<HGQueryCondition>> |
QueryCompile.Contract.contract(HyperGraph graph,
HGQueryCondition expression) |
Set<HGQueryCondition> |
QueryCompile.Expand.contract(HyperGraph graph,
HGQueryCondition expression) |
Set<HGQueryCondition> |
AnalyzedQuery.getAnalysisResult(String option) |
Modifier and Type | Method and Description |
---|---|
static <SearchResult> |
QueryCompile.analyze(HyperGraph graph,
HGQueryCondition condition,
Map<String,Object> options) |
Pair<HGQueryCondition,Set<HGQueryCondition>> |
QueryCompile.Contract.contract(HyperGraph graph,
HGQueryCondition expression) |
Set<HGQueryCondition> |
QueryCompile.Expand.contract(HyperGraph graph,
HGQueryCondition expression) |
void |
AtomProjectionCondition.setBaseSetCondition(HGQueryCondition baseSetCondition) |
void |
MapCondition.setCondition(HGQueryCondition cond) |
static QueryMetaData |
QueryCompile.toMetaData(HyperGraph graph,
HGQueryCondition condition) |
void |
AnalyzedQuery.transformed(HGQueryCondition source,
HGQueryCondition destination) |
void |
AnalyzedQuery.transformed(HGQueryCondition source,
Set<HGQueryCondition> destination) |
void |
AnalyzedQuery.transformed(Set<HGQueryCondition> source,
HGQueryCondition destination) |
static <T> HGQuery<T> |
QueryCompile.translate(HyperGraph graph,
HGQueryCondition condition) |
<R> void |
AnalyzedQuery.translated(HGQueryCondition source,
HGQuery<R> destination,
QueryMetaData metadata) |
Modifier and Type | Class and Description |
---|---|
class |
ValueAsPredicateOnly |
Modifier and Type | Field and Description |
---|---|
HGQueryCondition |
QueryMetaData.cond |
Modifier and Type | Field and Description |
---|---|
static Pair<HGQueryCondition,Set<HGQueryCondition>> |
ContractConjunction.emptyresult |
static Pair<HGQueryCondition,Set<HGQueryCondition>> |
ContractConjunction.emptyresult |
static Pair<HGQueryCondition,Set<HGQueryCondition>> |
ContractConjunction.notransform |
static Pair<HGQueryCondition,Set<HGQueryCondition>> |
ContractConjunction.notransform |
Modifier and Type | Method and Description |
---|---|
static <T extends HGQueryCondition> |
QEManip.collapse(HyperGraph graph,
Set<HGQueryCondition> S) |
Modifier and Type | Method and Description |
---|---|
HGQueryCondition |
ExpressionBasedQuery.getCondition()
Return a possibly simplified and normalized version of the condition with
which this query was constructed.
|
Modifier and Type | Method and Description |
---|---|
Pair<HGQueryCondition,Set<HGQueryCondition>> |
ContractConjunction.TypeValueContract.contract(HyperGraph graph,
HGQueryCondition expression) |
Pair<HGQueryCondition,Set<HGQueryCondition>> |
ContractConjunction.TypeValueContract.contract(HyperGraph graph,
HGQueryCondition expression) |
Pair<HGQueryCondition,Set<HGQueryCondition>> |
ContractConjunction.ApplyByPartIndex.contract(HyperGraph graph,
HGQueryCondition expression) |
Pair<HGQueryCondition,Set<HGQueryCondition>> |
ContractConjunction.ApplyByPartIndex.contract(HyperGraph graph,
HGQueryCondition expression) |
Pair<HGQueryCondition,Set<HGQueryCondition>> |
ContractConjunction.ApplyByTargetIndex.contract(HyperGraph graph,
HGQueryCondition expression) |
Pair<HGQueryCondition,Set<HGQueryCondition>> |
ContractConjunction.ApplyByTargetIndex.contract(HyperGraph graph,
HGQueryCondition expression) |
static Map<Class<?>,Set<HGQueryCondition>> |
QEManip.find(Collection<HGQueryCondition> C,
Class<?>... condType)
Collect and group different types of conditions in map.
|
Modifier and Type | Method and Description |
---|---|
static <T extends HGQueryCondition> |
QEManip.collapse(HyperGraph graph,
Set<HGQueryCondition> S) |
static Map<Class<?>,Set<HGQueryCondition>> |
QEManip.find(Collection<HGQueryCondition> C,
Class<?>... condType)
Collect and group different types of conditions in map.
|
ConditionToQuery<?> |
ToQueryMap.resolve(Class<? extends HGQueryCondition> cl) |
Constructor and Description |
---|
ExpressionBasedQuery(HyperGraph graph,
HGQueryCondition condition) |
Modifier and Type | Class and Description |
---|---|
class |
TypeConditionAggregate |
Constructor and Description |
---|
DefaultKeyBasedQuery(HyperGraph graph,
HGQueryCondition cond,
ValueSetter<Key> setter) |
Copyright © 2015. All rights reserved.