Modifier and Type | Interface and Description |
---|---|
interface |
HGPersistentHandle
A
HGPersistentHandle is a HGHandle that survives system
downtime. |
Modifier and Type | Field and Description |
---|---|
static HGHandle[] |
HyperGraph.EMPTY_HANDLE_SET |
protected HGHandle[] |
HGPlainLink.outgoingSet
An array of
HGHandle s representing the target set
of this link. |
Modifier and Type | Method and Description |
---|---|
HGHandle |
HyperGraph.add(Object atom)
Add a new atom to the database using the default, Java Beans based typing
mechanism and default system flags.
|
HGHandle |
HyperGraph.add(Object atom,
HGHandle type)
Add a new atom with a specified type and default system flags to the database.
|
HGHandle |
HyperGraph.add(Object atom,
HGHandle type,
int flags)
Add a new atom with a specified type and system flags to the database.
|
HGHandle |
HyperNode.add(Object atom,
HGHandle type,
int flags) |
HGHandle |
HyperGraph.add(Object atom,
int flags)
Add a new atom to the database using the default, Java Beans based typing
mechanism and the set of specified system flags.
|
HGHandle |
HGTypeSystem.addPredefinedType(HGPersistentHandle handle,
HGAtomType type,
Class<?> clazz)
Deprecated.
Use {@link #addPredefinedType(HGPersistentHandle, HGAtomType, URI) instead;
|
HGHandle |
HGTypeSystem.addPredefinedType(HGPersistentHandle handle,
HGAtomType type,
URI typeId)
Specify an application specific predefined type, possibly overriding a default
HyperGraph basic type.
|
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 HGHandle |
HGQuery.hg.anyHandle()
Return a special handle indicating a "don't care" in a condition expression (e.g.
|
static HGHandle |
HGQuery.hg.assertAtom(HyperGraph graph,
Object instance)
Return
assertAtom(graph, instance, false) . |
static HGHandle |
HGQuery.hg.assertAtom(HyperGraph graph,
Object instance,
boolean ignoreValue)
Return the atom handle if
instance is already a loaded atom in the cache. |
static HGHandle |
HGQuery.hg.assertAtom(HyperGraph graph,
Object instance,
HGHandle type)
Return
assertAtom(graph, instance, type, false) . |
static HGHandle |
HGQuery.hg.assertAtom(HyperGraph graph,
Object instance,
HGHandle type,
boolean ignoreValue)
Add a new atom to the specified graph only if it is not already there.
|
HGHandle |
IncidenceSet.getAtom()
Return the atom whose incidence set this instance represents.
|
HGHandle |
HGReplaceRefusedException.getAtom()
Return the proposed atom whose addition failed.
|
HGHandle |
HGRemoveRefusedException.getAtom()
Return the proposed atom whose addition failed.
|
HGHandle |
IncidenceSetRef.getAtomHandle() |
HGHandle |
HGHandleHolder.getAtomHandle()
Return the HyperGraphDB atom handle of this object.
|
HGHandle |
HyperGraph.getHandle(Object atom)
Return the handle of the specified atom.
|
HGHandle |
HGTypeSystem.getHandleForIdentifier(URI typeId) |
HGHandle |
HGTypeSystem.getNullType()
Return the type of the special Java value
null . |
HGHandle |
HGLink.getTargetAt(int i)
Return the ith target.
|
HGHandle |
HGPlainLink.getTargetAt(int i)
Return the
i th target of this link. |
HGHandle |
HGTypeSystem.getTop()
Return the type of all predefined types.
|
HGHandle |
HyperGraph.getType(HGHandle handle)
Retrieve the handle of the type of the atom referred to by
handle . |
HGHandle |
HyperNode.getType(HGHandle handle) |
HGHandle |
HGTypeSystem.getTypeHandle(Class<?> clazz)
Return the
HGHandle of the HyperGraph type representing a given
Java class. |
HGHandle |
HGTypeSystem.getTypeHandle(HGHandle atomHandle)
Deprecated.
Please call
#HyperGraph.getType(HGHandle) instead. This method
will be removed in future versions. |
HGHandle |
HGTypeSystem.getTypeHandle(Object x)
Return the HyperGraph type handle of the given Java object.
|
HGHandle |
HGTypeSystem.getTypeHandle(String alias)
Return the handle of the type corresponding to the given alias.
|
HGHandle |
HGTypeSystem.getTypeHandle(URI typeIdentifier) |
HGHandle |
HGTypeSystem.getTypeHandleIfDefined(Class<?> clazz)
Return the handle of the type associated with the specified class.
|
HGHandle |
HGTypeSystem.getTypeHandleIfDefined(URI uri)
Return the HyperGraphDB type handle corresponding to the given Java class if
a type for this class was previously defined.
|
HGHandle |
HyperGraph.refreshHandle(HGHandle handle)
Refresh an atom handle with a currently valid and efficient run-time value.
|
Modifier and Type | Method and Description |
---|---|
static <T> Mapping<HGHandle,T> |
HGQuery.hg.deref(HyperGraph graph)
|
List<HGHandle> |
HyperGraph.findAll(HGQueryCondition condition) |
Iterator<HGHandle> |
HGPlainLink.iterator() |
static Mapping<HGLink,HGHandle> |
HGQuery.hg.linkProjection(int targetPosition)
Return a
Mapping that takes a link atom and returns a target at the given position. |
static Mapping<HGLink,HGHandle> |
HGQuery.hg.linkProjection(Ref<Integer> targetPosition)
Return a
Mapping that takes a link atom and returns a target at the given position. |
static Mapping<HGHandle,HGHandle> |
HGQuery.hg.targetAt(HyperGraph graph,
int targetPosition)
Return a
Mapping that given a handle to a link will return the target (handle) at the specified
target position. |
static Mapping<HGHandle,HGHandle> |
HGQuery.hg.targetAt(HyperGraph graph,
int targetPosition)
Return a
Mapping that given a handle to a link will return the target (handle) at the specified
target position. |
Modifier and Type | Method and Description |
---|---|
HGHandle |
HyperGraph.add(Object atom,
HGHandle type)
Add a new atom with a specified type and default system flags to the database.
|
HGHandle |
HyperGraph.add(Object atom,
HGHandle type,
int flags)
Add a new atom with a specified type and system flags to the database.
|
HGHandle |
HyperNode.add(Object atom,
HGHandle type,
int flags) |
void |
HGTypeSystem.addAlias(HGHandle typeHandle,
String alias)
Add a new alias for a given type.
|
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.assertAtom(HyperGraph graph,
Object instance,
HGHandle type)
Return
assertAtom(graph, instance, type, false) . |
static HGHandle |
HGQuery.hg.assertAtom(HyperGraph graph,
Object instance,
HGHandle type,
boolean ignoreValue)
Add a new atom to the specified graph only if it is not already there.
|
void |
HGTypeSystem.assertSubtype(HGHandle superType,
HGHandle subType)
Declare that a given type is a sub-type of another type.
|
static BFSCondition |
HGQuery.hg.bfs(HGHandle start)
Return a condition whose result set is the breadth first traversal of the graph
starting a given atom.
|
static BFSCondition |
HGQuery.hg.bfs(HGHandle start,
HGAtomPredicate lp,
HGAtomPredicate sp)
Return a condition whose result set is the breadth first traversal of the graph
starting a given atom.
|
static BFSCondition |
HGQuery.hg.bfs(HGHandle start,
HGAtomPredicate lp,
HGAtomPredicate sp,
boolean returnPreceding,
boolean returnSucceeding)
Return a condition whose result set is the breadth first traversal of the graph
starting a given atom.
|
static SubgraphContainsCondition |
HGQuery.hg.contains(HGHandle atom)
Return a condition constraining the result set to atoms that are instances of
HGSubgraph and containing the specified atom. |
void |
HyperGraph.define(HGHandle atomHandle,
HGHandle typeHandle,
HGHandle valueHandle,
HGLink outgoingSet,
Object instance,
int flags)
Put an existing atom into this HyperGraph instance.
|
void |
HyperGraph.define(HGHandle atomHandle,
HGHandle typeHandle,
Object instance,
int flags)
A version of
define allowing one to pass a specific type to use when
storing the atom. |
void |
HyperNode.define(HGHandle handle,
HGHandle type,
Object instance,
int flags) |
void |
HyperGraph.define(HGHandle atomHandle,
Object instance)
Delegate to
define(HGPersistentHandle, Object, HGHandle [], byte) with the
flags parameter = 0. |
void |
HyperGraph.define(HGHandle atomHandle,
Object instance,
int flags)
Put an atom with a specific
HGPersistentHandle into this HyperGraph instance. |
void |
HGTypeSystem.defineTypeAtom(HGHandle typeHandle,
URI typeUri) |
static DFSCondition |
HGQuery.hg.dfs(HGHandle start)
Return a condition whose result set is the depth first traversal of the graph
starting with a given atom.
|
static DFSCondition |
HGQuery.hg.dfs(HGHandle start,
HGAtomPredicate linkPredicate,
HGAtomPredicate siblingPredicate)
Return a condition whose result set is the depth first traversal of the graph
starting with a given atom.
|
static DFSCondition |
HGQuery.hg.dfs(HGHandle start,
HGAtomPredicate linkPredicate,
HGAtomPredicate siblingPredicate,
boolean returnPreceeding,
boolean returnSucceeding)
Return a condition whose result set is the depth first traversal of the graph
starting a given atom.
|
Set<String> |
HGTypeSystem.findAliases(HGHandle typeHandle)
Retrieve all the aliases of a given type.
|
Object |
HyperGraph.freeze(HGHandle handle)
Freeze an atom into the HyperGraph cache.Frozen atoms are guaranteed to NOT be evicted
from the cache.
|
<T> T |
HyperGraph.get(HGHandle handle)
Retrieve a hypergraph atom by its handle.
|
<T> T |
HyperNode.get(HGHandle handle) |
HGAtomType |
HGTypeSystem.getAtomType(HGHandle handle)
Return the type instance of a given atom.
|
Class<?> |
HGTypeSystem.getClassForType(HGHandle typeHandle)
Return the Java class that corresponds to the given HyperGraphDB type handle.
|
String |
HGTypeSystem.getClassNameForType(HGHandle typeHandle)
Return the Java classname that corresponds to the given HyperGraphDB type handle.
|
Set<URI> |
HGTypeSystem.getIdentifiersForHandle(HGHandle typeHandle)
Return the
URI identifiers of the set of types
realized by the given type atom. |
IncidenceSet |
HyperGraph.getIncidenceSet(HGHandle handle)
Return the
IncidenceSet , that is the set of all HGLink s pointing
to, the atom referred by the passed in handle. |
IncidenceSet |
HyperNode.getIncidenceSet(HGHandle handle) |
List<HGIndexer<?,?>> |
HGIndexManager.getIndexersForType(HGHandle type)
Return all registered
HGIndexer s for a given HyperGraph type. |
HGPersistentHandle |
HyperGraph.getPersistentHandle(HGHandle handle)
Return the persistent handle of a given atom.
|
int |
HyperGraph.getSystemFlags(HGHandle handle) |
HGHandle |
HyperGraph.getType(HGHandle handle)
Retrieve the handle of the type of the atom referred to by
handle . |
HGHandle |
HyperNode.getType(HGHandle handle) |
HGAtomType |
HGTypeSystem.getType(HGHandle handle)
Return the
HGAtomType by its HGHandle . |
HGHandle |
HGTypeSystem.getTypeHandle(HGHandle atomHandle)
Deprecated.
Please call
#HyperGraph.getType(HGHandle) instead. This method
will be removed in future versions. |
HGTypeStructuralInfo |
HGTypeSystem.getTypeMetaData(HGHandle typeHandle)
Return any metadata associated with the given type or
null . |
static IncidentCondition |
HGQuery.hg.incident(HGHandle atomHandle)
Return a condition constraining the result to links to a specific atom.
|
static PositionedIncidentCondition |
HGQuery.hg.incidentAt(HGHandle target,
int position) |
static PositionedIncidentCondition |
HGQuery.hg.incidentAt(HGHandle target,
int lowerBound,
int upperBound) |
static PositionedIncidentCondition |
HGQuery.hg.incidentNotAt(HGHandle target,
int position) |
static PositionedIncidentCondition |
HGQuery.hg.incidentNotAt(HGHandle target,
int lowerBound,
int upperBound) |
static IsCondition |
HGQuery.hg.is(HGHandle atomHandle)
Return the "identity" condition that evaluates to true for a specific handle.
|
boolean |
HyperGraph.isFrozen(HGHandle handle)
Return
true if a given is currently frozen in the cache
and false otherwise. |
boolean |
HyperGraph.isIncidenceSetLoaded(HGHandle h)
Return
true if the incidence set of a given atom is currently
loaded in main memory and false otherwise. |
boolean |
HyperGraph.isLoaded(HGHandle handle)
Return
true if a given is currently loaded in main memory
and false otherwise. |
static LinkCondition |
HGQuery.hg.link(HGHandle... h)
Return a condition constraining the query result set to links pointing to a target set
of atoms.
|
static SubgraphMemberCondition |
HGQuery.hg.memberOf(HGHandle subgraphHandle)
Return a condition constraining the result set to atoms that are members of the
specified subgraph.
|
void |
HGLink.notifyTargetHandleUpdate(int i,
HGHandle handle)
Notify the
HGLink that one of its target atoms should be referred to
by a different HGHandle instance. |
void |
HGPlainLink.notifyTargetHandleUpdate(int i,
HGHandle handle) |
static OrderedLinkCondition |
HGQuery.hg.orderedLink(HGHandle... h)
Return a condition constraining the query result set to being ordered links of a certain
form.
|
HGHandle |
HyperGraph.refreshHandle(HGHandle handle)
Refresh an atom handle with a currently valid and efficient run-time value.
|
boolean |
HyperGraph.remove(HGHandle handle)
Remove an atom from the HyperGraph database.
|
boolean |
HyperNode.remove(HGHandle handle) |
void |
HGAtomCache.remove(HGHandle handle)
Force a removal a given atom from the cache.
|
boolean |
HyperGraph.remove(HGHandle handle,
boolean keepIncidentLinks)
Remove the atom referred to by
handle from the hypergraph store. |
boolean |
HyperGraph.replace(HGHandle handle,
Object atom)
Replace the value of an atom with a new value.
|
boolean |
HyperGraph.replace(HGHandle handle,
Object atom,
HGHandle type)
Replace the value of an atom with a new value.
|
boolean |
HyperNode.replace(HGHandle handle,
Object newValue,
HGHandle newType) |
void |
HGReplaceRefusedException.setAtom(HGHandle atom)
Set the proposed atom whose addition failed.
|
void |
HGRemoveRefusedException.setAtom(HGHandle atom)
Set the proposed atom whose addition failed.
|
void |
HGHandleHolder.setAtomHandle(HGHandle handle)
Set the HyperGraphDB atom handle of this object - used normally only
by the
HyperGraph instance holding this atom. |
void |
HyperGraph.setSystemFlags(HGHandle handle,
int flags) |
void |
HGTypeSystem.setTypeForClass(HGHandle typeHandle,
Class<?> clazz)
Specifically map a HyperGraphDB
HGAtomType , already stored as an
atom with handle typeHandle to the Java class clazz . |
static SubsumedCondition |
HGQuery.hg.subsumed(HGHandle general)
Return a condition constraining the result set to atoms more specific than the passed in
general parameter. |
static SubsumesCondition |
HGQuery.hg.subsumes(HGHandle specific)
Return a condition constraining the result set to atoms more general than the passed in
specific parameter. |
static TargetCondition |
HGQuery.hg.target(HGHandle linkHandle)
Return a query condition that constraints the result set to atoms that are targets to a specific link.
|
protected String |
HGPlainLink.toStringHdlArr(HGHandle[] hdls) |
static AtomTypeCondition |
HGQuery.hg.type(HGHandle typeHandle)
Return a
HGQueryCondition constraining the type of the result
to the type identified by typeHandle . |
static TypePlusCondition |
HGQuery.hg.typePlus(HGHandle h)
Return a
HGQueryCondition constraining the type of the result
to the type identified by typeHandle and all its sub-types. |
void |
HyperGraph.unfreeze(HGHandle handle)
Unfreeze a previously frozen atom so that it becomes subject of eviction from the cache.
|
void |
HGIndexManager.unregisterAll(HGHandle typeHandle)
Remove all indexers for the given type.
|
Modifier and Type | Method and Description |
---|---|
static BFSCondition |
HGQuery.hg.bfs(Ref<HGHandle> start)
Return a condition whose result set is the breadth first traversal of the graph
starting a given atom.
|
static BFSCondition |
HGQuery.hg.bfs(Ref<HGHandle> start,
HGAtomPredicate lp,
HGAtomPredicate sp)
Return a condition whose result set is the breadth first traversal of the graph
starting a given atom.
|
static BFSCondition |
HGQuery.hg.bfs(Ref<HGHandle> start,
HGAtomPredicate lp,
HGAtomPredicate sp,
boolean returnPreceding,
boolean returnSucceeding)
Return a condition whose result set is the breadth first traversal of the graph
starting a given atom.
|
static DFSCondition |
HGQuery.hg.dfs(Ref<HGHandle> start)
Return a condition whose result set is the depth first traversal of the graph
starting with a given atom.
|
static DFSCondition |
HGQuery.hg.dfs(Ref<HGHandle> start,
HGAtomPredicate linkPredicate,
HGAtomPredicate siblingPredicate)
Return a condition whose result set is the depth first traversal of the graph
starting with a given atom.
|
static DFSCondition |
HGQuery.hg.dfs(Ref<HGHandle> start,
HGAtomPredicate linkPredicate,
HGAtomPredicate siblingPredicate,
boolean returnPreceeding,
boolean returnSucceeding)
Return a condition whose result set is the depth first traversal of the graph
starting a given atom.
|
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 . |
static PositionedIncidentCondition |
HGQuery.hg.incidentAt(Ref<HGHandle> target,
int position) |
static PositionedIncidentCondition |
HGQuery.hg.incidentAt(Ref<HGHandle> target,
Ref<Integer> lowerBound,
Ref<Integer> upperBound)
Return a condition constraining the query result set to links pointing to a target atom
positioned within a predetermined range in the link tuple.
|
static PositionedIncidentCondition |
HGQuery.hg.incidentNotAt(Ref<HGHandle> target,
int position) |
static PositionedIncidentCondition |
HGQuery.hg.incidentNotAt(Ref<HGHandle> target,
Ref<Integer> lowerBound,
Ref<Integer> upperBound)
Same as {@link hg#incidentAt(Ref, Ref, Ref) except uses the complement of the specified range.
|
static LinkCondition |
HGQuery.hg.link(Collection<HGHandle> C)
Return a condition constraining the query result set to links pointing to a target set
of atoms.
|
static OrderedLinkCondition |
HGQuery.hg.orderedLink(List<HGHandle> L)
Return a condition constraining the query result set to being ordered links of a certain
form.
|
static SubsumedCondition |
HGQuery.hg.subsumed(Ref<HGHandle> general)
Return a condition constraining the result set to atoms more specific than the passed in
general reference parameter. |
static TargetCondition |
HGQuery.hg.target(Ref<HGHandle> linkHandle)
|
Constructor and Description |
---|
HGPlainLink(HGHandle... outgoingSet)
Construct a new link with the specified outgoing set.
|
HGRemoveRefusedException(HGHandle atom,
Object reason) |
HGReplaceRefusedException(HGHandle atom,
Object reason) |
HGValueLink(HGHandle... targets) |
HGValueLink(Object value,
HGHandle... targets) |
IncidenceSet(HGHandle atom,
HGSortedSet<HGHandle> impl) |
IncidenceSetRef(HGHandle atomHandle,
HyperGraph graph) |
Constructor and Description |
---|
IncidenceSet(HGHandle atom,
HGSortedSet<HGHandle> impl) |
Modifier and Type | Method and Description |
---|---|
HGHandle |
HGDepthFirstTraversal.getStartAtom() |
HGHandle |
HGBreadthFirstTraversal.getStartAtom() |
HGHandle |
CopyGraphTraversal.getStartAtom() |
Modifier and Type | Method and Description |
---|---|
Pair<HGHandle,HGHandle> |
DefaultALGenerator.AdjIterator.current() |
Pair<HGHandle,HGHandle> |
DefaultALGenerator.AdjIterator.current() |
Pair<HGHandle,HGHandle> |
SimpleALGenerator.AdjIterator.current() |
Pair<HGHandle,HGHandle> |
SimpleALGenerator.AdjIterator.current() |
HGSearchResult<Pair<HGHandle,HGHandle>> |
DefaultALGenerator.generate(HGHandle h) |
HGSearchResult<Pair<HGHandle,HGHandle>> |
DefaultALGenerator.generate(HGHandle h) |
HGSearchResult<Pair<HGHandle,HGHandle>> |
SimpleALGenerator.generate(HGHandle h) |
HGSearchResult<Pair<HGHandle,HGHandle>> |
SimpleALGenerator.generate(HGHandle h) |
HGSearchResult<Pair<HGHandle,HGHandle>> |
HGALGenerator.generate(HGHandle h)
Return
HGSearchResult over all atoms adjacent to the passed in
atom. |
HGSearchResult<Pair<HGHandle,HGHandle>> |
HGALGenerator.generate(HGHandle h)
Return
HGSearchResult over all atoms adjacent to the passed in
atom. |
Ref<HGHandle> |
HGDepthFirstTraversal.getStartAtomReference() |
Ref<HGHandle> |
HGBreadthFirstTraversal.getStartAtomReference() |
Pair<HGHandle,HGHandle> |
HGDepthFirstTraversal.next() |
Pair<HGHandle,HGHandle> |
HGDepthFirstTraversal.next() |
Pair<HGHandle,HGHandle> |
DefaultALGenerator.AdjIterator.next() |
Pair<HGHandle,HGHandle> |
DefaultALGenerator.AdjIterator.next() |
Pair<HGHandle,HGHandle> |
HGTraversal.next()
Return a pair consisting of the link pointing to the next atom in the
traversal as well as the atom itself.
|
Pair<HGHandle,HGHandle> |
HGTraversal.next()
Return a pair consisting of the link pointing to the next atom in the
traversal as well as the atom itself.
|
Pair<HGHandle,HGHandle> |
HGBreadthFirstTraversal.next() |
Pair<HGHandle,HGHandle> |
HGBreadthFirstTraversal.next() |
Pair<HGHandle,HGHandle> |
HyperTraversal.next() |
Pair<HGHandle,HGHandle> |
HyperTraversal.next() |
Pair<HGHandle,HGHandle> |
SimpleALGenerator.AdjIterator.next() |
Pair<HGHandle,HGHandle> |
SimpleALGenerator.AdjIterator.next() |
Pair<HGHandle,HGHandle> |
CopyGraphTraversal.next() |
Pair<HGHandle,HGHandle> |
CopyGraphTraversal.next() |
Pair<HGHandle,HGHandle> |
DefaultALGenerator.AdjIterator.prev() |
Pair<HGHandle,HGHandle> |
DefaultALGenerator.AdjIterator.prev() |
Pair<HGHandle,HGHandle> |
SimpleALGenerator.AdjIterator.prev() |
Pair<HGHandle,HGHandle> |
SimpleALGenerator.AdjIterator.prev() |
Modifier and Type | Method and Description |
---|---|
static Double |
GraphClassics.dijkstra(HGHandle start,
HGHandle goal,
HGALGenerator adjencyGenerator)
Simplified interface to Dijkstra's algorithm - calls the full version with
the remaining arguments set to
null . |
static Double |
GraphClassics.dijkstra(HGHandle start,
HGHandle goal,
HGALGenerator adjacencyGenerator,
Mapping<HGHandle,Double> weight,
Map<HGHandle,Double> distanceMatrix,
Map<HGHandle,HGHandle> predecessorMatrix)
Implements Dijkstra's algorithm for finding the shortest path between two
nodes (i.e.
|
HGSearchResult<Pair<HGHandle,HGHandle>> |
DefaultALGenerator.generate(HGHandle h) |
HGSearchResult<Pair<HGHandle,HGHandle>> |
SimpleALGenerator.generate(HGHandle h) |
HGSearchResult<Pair<HGHandle,HGHandle>> |
HGALGenerator.generate(HGHandle h)
Return
HGSearchResult over all atoms adjacent to the passed in
atom. |
static boolean |
GraphClassics.hasCycles(HGHandle root,
HGALGenerator adjencyGenerator)
Detect whether a sub-graph has cycles.
|
boolean |
HGDepthFirstTraversal.isVisited(HGHandle handle) |
boolean |
HGTraversal.isVisited(HGHandle handle)
Return
true if the given atom was already visited and
false otherwise. |
boolean |
HGBreadthFirstTraversal.isVisited(HGHandle handle) |
boolean |
HyperTraversal.isVisited(HGHandle handle) |
boolean |
CopyGraphTraversal.isVisited(HGHandle handle) |
void |
GraphClassics.prim(HGHandle start,
HGALGenerator adjencyGenerator,
Mapping<HGHandle,Double> weight,
Map<HGHandle,HGHandle> parentMatrix) |
void |
HGDepthFirstTraversal.setStartAtom(HGHandle startAtom) |
void |
HGBreadthFirstTraversal.setStartAtom(HGHandle startAtom) |
void |
CopyGraphTraversal.setStartAtom(HGHandle startAtom) |
Modifier and Type | Method and Description |
---|---|
static Double |
GraphClassics.dijkstra(HGHandle start,
HGHandle goal,
HGALGenerator adjacencyGenerator,
Mapping<HGHandle,Double> weight,
Map<HGHandle,Double> distanceMatrix,
Map<HGHandle,HGHandle> predecessorMatrix)
Implements Dijkstra's algorithm for finding the shortest path between two
nodes (i.e.
|
static Double |
GraphClassics.dijkstra(HGHandle start,
HGHandle goal,
HGALGenerator adjacencyGenerator,
Mapping<HGHandle,Double> weight,
Map<HGHandle,Double> distanceMatrix,
Map<HGHandle,HGHandle> predecessorMatrix)
Implements Dijkstra's algorithm for finding the shortest path between two
nodes (i.e.
|
static Double |
GraphClassics.dijkstra(HGHandle start,
HGHandle goal,
HGALGenerator adjacencyGenerator,
Mapping<HGHandle,Double> weight,
Map<HGHandle,Double> distanceMatrix,
Map<HGHandle,HGHandle> predecessorMatrix)
Implements Dijkstra's algorithm for finding the shortest path between two
nodes (i.e.
|
static Double |
GraphClassics.dijkstra(HGHandle start,
HGHandle goal,
HGALGenerator adjacencyGenerator,
Mapping<HGHandle,Double> weight,
Map<HGHandle,Double> distanceMatrix,
Map<HGHandle,HGHandle> predecessorMatrix)
Implements Dijkstra's algorithm for finding the shortest path between two
nodes (i.e.
|
void |
GraphClassics.kruskall(Iterator<HGHandle> links,
Mapping<HGHandle,Double> weight,
Map<HGHandle,HGHandle> parentMatrix) |
void |
GraphClassics.kruskall(Iterator<HGHandle> links,
Mapping<HGHandle,Double> weight,
Map<HGHandle,HGHandle> parentMatrix) |
void |
GraphClassics.kruskall(Iterator<HGHandle> links,
Mapping<HGHandle,Double> weight,
Map<HGHandle,HGHandle> parentMatrix) |
void |
GraphClassics.kruskall(Iterator<HGHandle> links,
Mapping<HGHandle,Double> weight,
Map<HGHandle,HGHandle> parentMatrix) |
void |
GraphClassics.prim(HGHandle start,
HGALGenerator adjencyGenerator,
Mapping<HGHandle,Double> weight,
Map<HGHandle,HGHandle> parentMatrix) |
void |
GraphClassics.prim(HGHandle start,
HGALGenerator adjencyGenerator,
Mapping<HGHandle,Double> weight,
Map<HGHandle,HGHandle> parentMatrix) |
void |
GraphClassics.prim(HGHandle start,
HGALGenerator adjencyGenerator,
Mapping<HGHandle,Double> weight,
Map<HGHandle,HGHandle> parentMatrix) |
void |
HGDepthFirstTraversal.setStartAtomReference(Ref<HGHandle> startAtom) |
void |
HGBreadthFirstTraversal.setStartAtomReference(Ref<HGHandle> startAtom) |
Constructor and Description |
---|
CopyGraphTraversal(HGHandle startAtom,
HGALGenerator adjListGenerator) |
CopyGraphTraversal(HGHandle startAtom,
HGALGenerator adjListGenerator,
int maxDistance) |
DefaultALGenerator.AdjIterator(HGHandle src,
Iterator<HGHandle> linksIterator,
boolean closeResultSet) |
HGBreadthFirstTraversal(HGHandle startAtom,
HGALGenerator adjListGenerator) |
HGBreadthFirstTraversal(HGHandle startAtom,
HGALGenerator adjListGenerator,
int maxDistance) |
HGDepthFirstTraversal(HGHandle startAtom,
HGALGenerator adjListGenerator) |
SimpleALGenerator.AdjIterator(HGHandle src,
Iterator<HGHandle> linksIterator,
boolean closeResultSet) |
Constructor and Description |
---|
DefaultALGenerator.AdjIterator(HGHandle src,
Iterator<HGHandle> linksIterator,
boolean closeResultSet) |
HGBreadthFirstTraversal(Ref<HGHandle> startAtom,
HGALGenerator adjListGenerator) |
HGBreadthFirstTraversal(Ref<HGHandle> startAtom,
HGALGenerator adjListGenerator,
int maxDistance) |
HGDepthFirstTraversal(Ref<HGHandle> startAtom,
HGALGenerator adjListGenerator) |
SimpleALGenerator.AdjIterator(HGHandle src,
Iterator<HGHandle> linksIterator,
boolean closeResultSet) |
Modifier and Type | Field and Description |
---|---|
protected HGHandle |
HGSubgraph.thisHandle |
Modifier and Type | Method and Description |
---|---|
HGHandle |
HGSubgraph.add(HGHandle atom)
Add an existing atom to this
HyperNode . |
HGHandle |
HGSubgraph.add(Object atom,
HGHandle type,
int flags)
Add to global graph and mark as member of this subgraph.
|
HGHandle |
HGAtomQueue.dequeue() |
HGHandle |
HGAtomSet.first() |
HGHandle |
HGSubgraph.getAtomHandle() |
HGHandle |
HGSubsumes.getGeneral() |
HGHandle |
AtomProjection.getProjectionValueType() |
HGHandle |
HGAtomRef.getReferent()
Return the referent atom.
|
HGHandle |
HGSubsumes.getSpecific() |
HGHandle |
HGRelType.getTargetAt(int i) |
HGHandle |
AtomProjection.getType() |
HGHandle |
HGSubgraph.getType(HGHandle handle) |
HGHandle |
HGAtomSet.last() |
HGHandle |
HGAtomQueue.peek() |
HGHandle |
HGAtomStack.peek() |
HGHandle |
HGAtomStack.pop() |
Modifier and Type | Method and Description |
---|---|
Comparator<? super HGHandle> |
HGAtomSet.comparator() |
List<HGHandle> |
HGSubgraph.findAll(HGQueryCondition condition) |
Set<HGHandle> |
HGBergeLink.getHead() |
HGRandomAccessResult<HGHandle> |
HGAtomSet.getSearchResult() |
Set<HGHandle> |
HGBergeLink.getTail() |
SortedSet<HGHandle> |
HGAtomSet.headSet(HGHandle h) |
Iterator<HGHandle> |
HGAtomSet.iterator() |
SortedSet<HGHandle> |
HGAtomSet.subSet(HGHandle fromElement,
HGHandle toElement) |
SortedSet<HGHandle> |
HGAtomSet.tailSet(HGHandle h) |
Modifier and Type | Method and Description |
---|---|
HGHandle |
HGSubgraph.add(HGHandle atom)
Add an existing atom to this
HyperNode . |
boolean |
HGAtomSet.add(HGHandle h) |
HGHandle |
HGSubgraph.add(Object atom,
HGHandle type,
int flags)
Add to global graph and mark as member of this subgraph.
|
void |
HGSubgraph.define(HGHandle handle,
HGHandle type,
Object instance,
int flags)
Define in global graph and mark as member of this subgraph.
|
void |
HGAtomQueue.enqueue(HGHandle handle) |
<T> T |
HGSubgraph.get(HGHandle handle) |
IncidenceSet |
HGSubgraph.getIncidenceSet(HGHandle handle)
Return incidence set where each element is a member of this
HGSubgraph . |
HGHandle |
HGSubgraph.getType(HGHandle handle) |
SortedSet<HGHandle> |
HGAtomSet.headSet(HGHandle h) |
boolean |
HGSubgraph.isMember(HGHandle atom) |
void |
HGRelType.notifyTargetHandleUpdate(int i,
HGHandle handle) |
void |
HGAtomStack.push(HGHandle handle) |
boolean |
HGSubgraph.remove(HGHandle handle)
Removes an atom from this scope.
|
boolean |
HGSubgraph.removeGlobally(HGHandle handle)
Removes the atom globally from the database as well as from the nested graph.
|
boolean |
HGSubgraph.removeGlobally(HGHandle handle,
boolean keepIncidentLinks)
Removes the atom globally from the database as well as from the nested graph.
|
boolean |
HGSubgraph.replace(HGHandle handle,
Object newValue,
HGHandle newType)
Performs the replace in the global database as this only deals with
an atom's value.
|
void |
HGSubgraph.setAtomHandle(HGHandle handle) |
SortedSet<HGHandle> |
HGAtomSet.subSet(HGHandle fromElement,
HGHandle toElement) |
SortedSet<HGHandle> |
HGAtomSet.tailSet(HGHandle h) |
Modifier and Type | Method and Description |
---|---|
boolean |
HGAtomSet.addAll(Collection<? extends HGHandle> c) |
Constructor and Description |
---|
AtomProjection(HGHandle[] targetSet) |
AtomProjection(HGHandle type,
String name,
HGHandle valueType,
HGAtomRef.Mode mode)
Construct an atom projection link.
|
HGAtomRef(HGHandle referent,
HGAtomRef.Mode mode)
Construct a new
HGAtomRef to the atom pointed by reference |
HGBergeLink(HGHandle... targets) |
HGBergeLink(HGHandle[] head,
HGHandle[] tail) |
HGBergeLink(HGHandle[] head,
HGHandle[] tail) |
HGBergeLink(int tailIndex,
HGHandle... targets) |
HGRel(HGHandle... targetSet) |
HGRel(String name,
HGHandle... targetSet) |
HGRelType(HGHandle... targetTypes) |
HGRelType(String name,
HGHandle... targetTypes) |
HGSubsumes(HGHandle[] link) |
HGSubsumes(HGHandle general,
HGHandle specific) |
Modifier and Type | Method and Description |
---|---|
void |
WeakRefAtomCache.remove(HGHandle handle) |
void |
DefaultAtomCache.remove(HGHandle handle)
Remove a live handle and all its associations from the cache.
|
void |
PhantomRefAtomCache.remove(HGHandle handle) |
Modifier and Type | Method and Description |
---|---|
HGHandle |
HGAtomEvent.getAtomHandle() |
HGHandle |
HGAtomReplaceRequestEvent.getType() |
HGHandle |
HGAtomProposeEvent.getType() |
Modifier and Type | Method and Description |
---|---|
void |
HGAtomReplaceRequestEvent.setType(HGHandle type) |
void |
HGAtomProposeEvent.setType(HGHandle type) |
Constructor and Description |
---|
HGAtomAccessedEvent(HGHandle handle,
Object instance) |
HGAtomAddedEvent(HGHandle handle,
Object source) |
HGAtomEvent(HGHandle handle) |
HGAtomEvent(HGHandle handle,
Object source) |
HGAtomEvictEvent(HGHandle handle,
Object instance) |
HGAtomLoadedEvent(HGHandle handle,
Object instance) |
HGAtomProposeEvent(Object atom,
HGHandle type,
int flags) |
HGAtomRemovedEvent(HGHandle handle) |
HGAtomRemoveRequestEvent(HGHandle handle)
Construct a new
HGAtomRemoveRequestEvent for the
given atom. |
HGAtomReplacedEvent(HGHandle handle) |
HGAtomReplaceRequestEvent(HGHandle handle,
HGHandle type,
Object newValue)
Construct a new
HGAtomReplaceRequestEvent for the
given atom. |
Modifier and Type | Interface and Description |
---|---|
interface |
HGLiveHandle
A
LiveHandle represents an in memory handle to a HyperGraph atom. |
interface |
HGManagedLiveHandle |
Modifier and Type | Class and Description |
---|---|
class |
DefaultLiveHandle |
class |
DefaultManagedLiveHandle |
class |
IntPersistentHandle |
class |
LongPersistentHandle |
class |
PhantomHandle
An implementation of a live handle that tracks garbage collection activity by
extending
PhantomReference . |
class |
PhantomManagedHandle |
class |
UUIDPersistentHandle |
class |
WeakHandle |
class |
WeakManagedHandle |
Modifier and Type | Method and Description |
---|---|
int |
WeakHandle.compareTo(HGHandle h) |
int |
PhantomHandle.compareTo(HGHandle h) |
int |
UUIDPersistentHandle.compareTo(HGHandle other) |
Modifier and Type | Method and Description |
---|---|
HGHandle |
TargetToTargetIndexer.getKey(HyperGraph graph,
Object atom) |
HGHandle |
HGKeyIndexer.getType() |
HGHandle |
HGValueIndexer.getType() |
HGHandle |
HGIndexer.getType()
Return the handle of the atom type all of whose instances should be indexed
by this indexer.
|
HGHandle |
TargetToTargetIndexer.getValue(HyperGraph graph,
Object atom) |
Modifier and Type | Method and Description |
---|---|
ByteArrayConverter<HGHandle> |
TargetToTargetIndexer.getConverter(HyperGraph graph) |
ByteArrayConverter<HGHandle> |
TargetToTargetIndexer.getValueConverter(HyperGraph graph) |
Modifier and Type | Method and Description |
---|---|
void |
HGKeyIndexer.index(HyperGraph graph,
HGHandle atomHandle,
Object atom,
HGIndex<KeyType,HGPersistentHandle> index) |
void |
HGValueIndexer.index(HyperGraph graph,
HGHandle atomHandle,
Object atom,
HGIndex<KeyType,ValueType> index) |
void |
HGIndexer.index(HyperGraph graph,
HGHandle atomHandle,
Object atom,
HGIndex<KeyType,ValueType> index)
Add a particular atom the the index.
|
void |
HGKeyIndexer.setType(HGHandle type) |
void |
HGValueIndexer.setType(HGHandle type) |
void |
HGIndexer.setType(HGHandle type)
Set the handle of the atom type all of whose instances should be indexed
by this indexer.
|
void |
HGKeyIndexer.unindex(HyperGraph graph,
HGHandle atomHandle,
Object atom,
HGIndex<KeyType,HGPersistentHandle> index) |
void |
HGValueIndexer.unindex(HyperGraph graph,
HGHandle atomHandle,
Object atom,
HGIndex<KeyType,ValueType> index) |
void |
HGIndexer.unindex(HyperGraph graph,
HGHandle atomHandle,
Object atom,
HGIndex<KeyType,ValueType> index)
Remove a particular from the index, assuming it is currently being indexed.
|
Constructor and Description |
---|
ByPartIndexer(HGHandle type,
String dimensionPath)
Convenience constructor that allows passing a dot separated dimension path
that is converted to a
String[] . |
ByPartIndexer(HGHandle type,
String[] dimensionPath) |
ByPartIndexer(String name,
HGHandle type,
String dimensionPath)
Convenience constructor that allows passing a dot separated dimension path
that is converted to a
String[] . |
ByPartIndexer(String name,
HGHandle type,
String[] dimensionPath) |
ByTargetIndexer(HGHandle type,
int target) |
ByTargetIndexer(String name,
HGHandle type,
int target) |
CompositeIndexer(HGHandle type,
HGKeyIndexer<Object>[] indexerParts) |
CompositeIndexer(String name,
HGHandle type,
HGKeyIndexer<Object>[] indexerParts) |
DirectValueIndexer(HGHandle type) |
HGKeyIndexer(HGHandle type) |
HGKeyIndexer(String name,
HGHandle type) |
HGValueIndexer(HGHandle type) |
HGValueIndexer(String name,
HGHandle type) |
LinkIndexer(HGHandle type) |
LinkIndexer(String name,
HGHandle type) |
TargetToTargetIndexer(HGHandle type,
int fromTarget,
int toTarget) |
TargetToTargetIndexer(String name,
HGHandle type,
int fromTarget,
int toTarget) |
Modifier and Type | Method and Description |
---|---|
HGHandle |
ApplyNewIndexer.getHindexer() |
Modifier and Type | Method and Description |
---|---|
void |
ApplyNewIndexer.setHindexer(HGHandle indexer) |
Constructor and Description |
---|
ApplyNewIndexer(HGHandle hIndexer) |
Modifier and Type | Method and Description |
---|---|
HGHandle |
SubgraphContainsCondition.getAtom() |
HGHandle |
IsCondition.getAtomHandle() |
HGHandle |
TypePlusCondition.getBaseType() |
HGHandle |
SubsumedCondition.getGeneralHandle() |
HGHandle |
TargetCondition.getLink() |
HGHandle |
SubsumesCondition.getSpecificHandle() |
HGHandle |
TraversalCondition.getStartAtom() |
HGHandle |
SubgraphMemberCondition.getSubgraphHandle() |
HGHandle |
IncidentCondition.getTarget() |
HGHandle |
IndexedPartCondition.getType() |
HGHandle |
AtomTypeCondition.getTypeHandle() |
HGHandle |
TypedValueCondition.getTypeHandle() |
HGHandle |
AtomTypeCondition.getTypeHandle(HyperGraph graph) |
HGHandle |
TypedValueCondition.getTypeHandle(HyperGraph graph) |
HGHandle |
AtomTypeCondition.typeHandleIfAvailable(HyperGraph graph) |
Modifier and Type | Method and Description |
---|---|
Ref<HGHandle> |
IsCondition.getAtomHandleReference() |
Ref<HGHandle> |
SubsumedCondition.getGeneralHandleReference() |
Ref<HGHandle> |
TargetCondition.getLinkReference() |
Ref<HGHandle> |
SubsumesCondition.getSpecificHandleReference() |
Ref<HGHandle> |
TraversalCondition.getStartAtomReference() |
List<HGHandle> |
TypePlusCondition.getSubTypes(HyperGraph graph) |
Ref<HGHandle> |
PositionedIncidentCondition.getTargetRef() |
Ref<HGHandle> |
IncidentCondition.getTargetRef() |
Set<Ref<HGHandle>> |
LinkCondition.getTargetSet() |
Set<Ref<HGHandle>> |
LinkCondition.targets() |
Modifier and Type | Method and Description |
---|---|
boolean |
LinkCondition.contains(HGHandle h) |
boolean |
AtomValueRegExPredicate.satisfies(HyperGraph hg,
HGHandle handle) |
boolean |
LinkCondition.satisfies(HyperGraph graph,
HGHandle handle)
Return
true if handle points to a link whose
target set is a superset of this condition's targetSet . |
boolean |
AnyAtomCondition.satisfies(HyperGraph hg,
HGHandle handle) |
boolean |
SubsumedCondition.satisfies(HyperGraph hg,
HGHandle specific) |
boolean |
PositionedIncidentCondition.satisfies(HyperGraph hg,
HGHandle handle) |
boolean |
AtomPartCondition.satisfies(HyperGraph hg,
HGHandle handle) |
boolean |
HGAtomPredicate.satisfies(HyperGraph graph,
HGHandle handle)
Check whether a given
Object satisfies this
query condition. |
boolean |
OrderedLinkCondition.satisfies(HyperGraph hg,
HGHandle handle) |
boolean |
AtomValueCondition.satisfies(HyperGraph hg,
HGHandle handle) |
boolean |
IncidentCondition.satisfies(HyperGraph hg,
HGHandle handle) |
boolean |
AtomTypeCondition.satisfies(HyperGraph hg,
HGHandle value) |
boolean |
MapCondition.satisfies(HyperGraph hg,
HGHandle handle) |
boolean |
SubgraphContainsCondition.satisfies(HyperGraph graph,
HGHandle subgHdl) |
boolean |
AtomPartRegExPredicate.satisfies(HyperGraph hg,
HGHandle handle) |
boolean |
TypePlusCondition.satisfies(HyperGraph graph,
HGHandle handle) |
boolean |
Not.satisfies(HyperGraph hg,
HGHandle value) |
boolean |
SubsumesCondition.satisfies(HyperGraph hg,
HGHandle general) |
boolean |
And.satisfies(HyperGraph hg,
HGHandle value) |
boolean |
IsCondition.satisfies(HyperGraph graph,
HGHandle handle) |
boolean |
DisconnectedPredicate.satisfies(HyperGraph graph,
HGHandle handle) |
boolean |
AtomProjectionCondition.satisfies(HyperGraph graph,
HGHandle handle) |
boolean |
TypedValueCondition.satisfies(HyperGraph hg,
HGHandle handle) |
boolean |
SubgraphMemberCondition.satisfies(HyperGraph graph,
HGHandle handle) |
boolean |
TargetCondition.satisfies(HyperGraph graph,
HGHandle handle) |
boolean |
ArityCondition.satisfies(HyperGraph hg,
HGHandle handle)
Return true if
handle to a HyperGraph link and
false if it refers to a HyperGraph node. |
boolean |
Or.satisfies(HyperGraph hg,
HGHandle value) |
void |
SubgraphContainsCondition.setAtom(HGHandle atom) |
void |
IsCondition.setAtomHandle(HGHandle atomHandle) |
void |
TypePlusCondition.setBaseType(HGHandle baseType) |
void |
SubsumedCondition.setGeneralHandle(HGHandle general) |
void |
TargetCondition.setLink(HGHandle link) |
void |
SubsumesCondition.setSpecificHandle(HGHandle specific) |
void |
TraversalCondition.setStartAtom(HGHandle startAtom) |
void |
SubgraphMemberCondition.setSubgraphHandle(HGHandle subgraphHandle) |
void |
IncidentCondition.setTarget(HGHandle target) |
void |
OrderedLinkCondition.setTarget(int pos,
HGHandle newTarget) |
void |
IndexedPartCondition.setType(HGHandle type) |
void |
AtomTypeCondition.setTypeHandle(HGHandle handle) |
void |
TypedValueCondition.setTypeHandle(HGHandle handle) |
Modifier and Type | Method and Description |
---|---|
void |
IsCondition.setAtomHandleReference(Ref<HGHandle> atomHandle) |
void |
SubsumedCondition.setGeneralHandleReference(Ref<HGHandle> general) |
void |
TargetCondition.setLinkReference(Ref<HGHandle> link) |
void |
SubsumesCondition.setSpecificHandleReference(Ref<HGHandle> specific) |
void |
TraversalCondition.setStartAtomReference(Ref<HGHandle> startAtom) |
void |
PositionedIncidentCondition.setTargetRef(Ref<HGHandle> targetRef) |
void |
LinkCondition.setTargetSet(Set<Ref<HGHandle>> targetSet) |
Constructor and Description |
---|
BFSCondition(Ref<HGHandle> startAtom) |
DFSCondition(Ref<HGHandle> startAtom) |
IncidentCondition(Ref<HGHandle> target) |
IsCondition(Ref<HGHandle> atomHandle) |
LinkCondition(Collection<HGHandle> targets) |
OrderedLinkCondition(List<HGHandle> targetSet) |
PositionedIncidentCondition(Ref<HGHandle> target,
Ref<Integer> position) |
PositionedIncidentCondition(Ref<HGHandle> target,
Ref<Integer> position,
Ref<Boolean> complement) |
PositionedIncidentCondition(Ref<HGHandle> target,
Ref<Integer> lowerBound,
Ref<Integer> upperBound,
Ref<Boolean> complement) |
TargetCondition(Ref<HGHandle> link) |
TraversalCondition(Ref<HGHandle> startAtom) |
Modifier and Type | Method and Description |
---|---|
static HGHandle |
QEManip.findMostSpecific(HyperGraph graph,
HGHandle left,
HGHandle right) |
Modifier and Type | Method and Description |
---|---|
HGQuery<HGHandle> |
IncidentToQuery.getQuery(HyperGraph graph,
HGQueryCondition c) |
Modifier and Type | Method and Description |
---|---|
static HGHandle |
QEManip.findMostSpecific(HyperGraph graph,
HGHandle left,
HGHandle right) |
Modifier and Type | Field and Description |
---|---|
protected HGHandle[] |
HandleArrayResultSet.A |
Modifier and Type | Method and Description |
---|---|
HGHandle |
HandleArrayResultSet.current() |
HGHandle |
LinkTargetsResultSet.current() |
HGHandle |
LinkProjectionMapping.eval(HGLink x) |
HGHandle |
HandleArrayResultSet.next() |
HGHandle |
LinkTargetsResultSet.next() |
HGHandle |
HandleArrayResultSet.prev() |
HGHandle |
LinkTargetsResultSet.prev() |
Modifier and Type | Method and Description |
---|---|
Pair<HGHandle,HGHandle> |
TraversalResult.current() |
Pair<HGHandle,HGHandle> |
TraversalResult.current() |
Pair<HGHandle,HGHandle> |
TraversalResult.next() |
Pair<HGHandle,HGHandle> |
TraversalResult.next() |
Pair<HGHandle,HGHandle> |
TraversalResult.prev() |
Pair<HGHandle,HGHandle> |
TraversalResult.prev() |
Modifier and Type | Method and Description |
---|---|
T |
DerefMapping.eval(HGHandle x) |
boolean |
RABasedPredicate.satisfies(HyperGraph hg,
HGHandle handle)
Return
true if handle is a member of
the HGRandomAccessResult set on which this predicate
is based. |
boolean |
DelayedSetLoadPredicate.satisfies(HyperGraph hg,
HGHandle handle) |
Constructor and Description |
---|
HandleArrayResultSet(HGHandle[] array) |
HandleArrayResultSet(HGHandle[] array,
int start) |
HandleArrayResultSet(HGHandle[] array,
int start,
int end) |
ProjectionAtomResultSet(HyperGraph graph,
HGSearchResult searchResult,
String[] dimensionPath,
HGHandle baseType)
The constructor assumes the underlying set is already positioned to the
first matching entity.
|
Constructor and Description |
---|
DelayedSetLoadPredicate(HGQuery<HGHandle> query) |
Modifier and Type | Method and Description |
---|---|
HGHandle |
StorageBasedIncidenceSet.first() |
HGHandle |
StorageBasedIncidenceSet.last() |
Modifier and Type | Method and Description |
---|---|
Comparator<? super HGHandle> |
StorageBasedIncidenceSet.comparator() |
HGRandomAccessResult<HGHandle> |
StorageBasedIncidenceSet.getSearchResult() |
SortedSet<HGHandle> |
StorageBasedIncidenceSet.headSet(HGHandle toElement) |
Iterator<HGHandle> |
StorageBasedIncidenceSet.iterator() |
SortedSet<HGHandle> |
StorageBasedIncidenceSet.subSet(HGHandle fromElement,
HGHandle toElement) |
SortedSet<HGHandle> |
StorageBasedIncidenceSet.tailSet(HGHandle fromElement) |
Modifier and Type | Method and Description |
---|---|
boolean |
StorageBasedIncidenceSet.add(HGHandle e) |
SortedSet<HGHandle> |
StorageBasedIncidenceSet.headSet(HGHandle toElement) |
SortedSet<HGHandle> |
StorageBasedIncidenceSet.subSet(HGHandle fromElement,
HGHandle toElement) |
SortedSet<HGHandle> |
StorageBasedIncidenceSet.tailSet(HGHandle fromElement) |
Modifier and Type | Method and Description |
---|---|
boolean |
StorageBasedIncidenceSet.addAll(Collection<? extends HGHandle> c) |
void |
RAMStorageGraph.translateHandles(Map<HGHandle,HGHandle> subst) |
void |
RAMStorageGraph.translateHandles(Map<HGHandle,HGHandle> subst) |
Constructor and Description |
---|
HGStoreSubgraph(HGHandle root,
HGStore store)
Construct a new
HGStore based StorageGraph |
StorageBasedIncidenceSet(HGHandle atom,
HyperGraph graph) |
Constructor and Description |
---|
HGStoreSubgraph(Set<HGHandle> roots,
HGStore store)
Construct a new
HGStore based StorageGraph
with multiple roots. |
Modifier and Type | Field and Description |
---|---|
protected HGHandle |
JavaObjectMapper.superSlot |
protected HGHandle |
RecordType.thisHandle |
protected HGHandle |
JavaAbstractBinding.typeHandle |
Modifier and Type | Field and Description |
---|---|
protected ArrayList<HGHandle> |
RecordType.slots |
Modifier and Type | Method and Description |
---|---|
HGHandle |
JavaTypeSchema.findType(Class<?> clazz) |
HGHandle |
HGTypeSchema.findType(URI typeId)
Return the
HGHandle of an existing HyperGraph type that corresponds
to the specified type identifier according to this schema. |
HGHandle |
JavaTypeSchema.findType(URI typeId) |
HGHandle |
RecordType.getAt(int i) |
static HGHandle |
JavaTypeFactory.getSlotHandle(HyperGraph graph,
String label,
HGHandle type) |
HGHandle |
JavaObjectMapper.getSuperSlot() |
HGHandle |
LinkRecord.getTargetAt(int i) |
HGHandle |
HGAbstractCompositeType.Projection.getType() |
HGHandle |
BeanPropertyBasedProjection.getType() |
HGHandle |
HGProjection.getType()
Return the handle of the type of the dimension that this projection represents.
|
HGHandle |
HGTypedValue.getType() |
HGHandle |
JavaAbstractBinding.getTypeHandle() |
HGHandle |
Record.getTypeHandle() |
HGHandle |
JavaInterfaceBinding.getTypeHandle() |
HGHandle |
Slot.getValueType() |
protected HGHandle |
HGHandleType.readBytes(byte[] data,
int offset) |
Modifier and Type | Method and Description |
---|---|
List<HGHandle> |
RecordType.getSlots() |
static List<HGHandle> |
TypeUtils.subsumesClosure(HyperGraph graph,
HGHandle baseType) |
Modifier and Type | Method and Description |
---|---|
void |
RecordType.addSlot(HGHandle slot) |
HGAtomType |
JavaObjectMapper.defineHGType(Class<?> javaClass,
HGHandle typeHandle) |
HGAtomType |
JavaTypeMapper.defineHGType(Class<?> javaClass,
HGHandle typeHandle)
Create a new HyperGraphDB type for the given Java class.
|
HGAtomType |
JavaTypeFactory.defineHGType(Class<?> javaClass,
HGHandle typeHandle) |
HGAtomType |
DefaultJavaTypeMapper.defineHGType(Class<?> javaClass,
HGHandle typeHandle) |
void |
HGTypeSchema.defineType(URI typeId,
HGHandle typeHandle)
Construct a new HyperGraphDB type from the specified type identifier
URI . |
void |
JavaTypeSchema.defineType(URI typeId,
HGHandle typeHandle) |
HGAtomType |
JavaTypeSchema.defineType(URI typeId,
HGHandle typeHandle,
Class<?> descriptor) |
static boolean |
TypeUtils.deleteInstances(HyperGraph graph,
HGHandle type) |
static boolean |
TypeUtils.deleteType(HyperGraph graph,
HGHandle type) |
static boolean |
TypeUtils.deleteType(HyperGraph graph,
HGHandle th,
boolean recursive) |
HGAtomType |
HGTypeSchema.fromRuntimeType(HGHandle typeHandle,
HGAtomType typeInstance)
If a given type is wrapped under a different runtime representation by
the
HGTypeSchema.toRuntimeType(HGHandle, HGAtomType) method, this method
retrieves the underlying default representation as constructed by the
type system. |
HGAtomType |
JavaTypeSchema.fromRuntimeType(HGHandle typeHandle,
HGAtomType typeInstance) |
HGAtomType |
JavaObjectMapper.getJavaBinding(HGHandle typeHandle,
HGAtomType hgType,
Class<?> javaClass) |
HGAtomType |
JavaTypeMapper.getJavaBinding(HGHandle typeHandle,
HGAtomType hgType,
Class<?> javaClass)
Create a type wrapper for a given raw HyperGraphDB type.
|
HGAtomType |
JavaTypeFactory.getJavaBinding(HGHandle typeHandle,
HGAtomType hgType,
Class<?> javaClass) |
HGAtomType |
DefaultJavaTypeMapper.getJavaBinding(HGHandle typeHandle,
HGAtomType hgType,
Class<?> javaClass) |
HGAtomRef.Mode |
RecordType.getReferenceMode(HGHandle slot) |
static HGHandle |
JavaTypeFactory.getSlotHandle(HyperGraph graph,
String label,
HGHandle type) |
T |
ObjectFactory.make(HGHandle[] targetSet)
Create a new run-time
HGLink instance of the type this factory is
responsible for. |
T |
GenericObjectFactory.make(HGHandle[] targetSet) |
void |
LinkRecord.notifyTargetHandleUpdate(int i,
HGHandle handle) |
static HGTypedValue |
TypeUtils.project(HyperGraph hg,
HGHandle type,
Object value,
String[] dimPath,
boolean throwExceptionOnNotFound) |
void |
RecordType.remove(HGHandle slot) |
void |
RecordType.setThisHandle(HGHandle thisHandle) |
void |
Slot.setValueType(HGHandle valueType) |
static List<HGHandle> |
TypeUtils.subsumesClosure(HyperGraph graph,
HGHandle baseType) |
HGAtomType |
HGTypeSchema.toRuntimeType(HGHandle typeHandle,
HGAtomType typeInstance)
The type schema may wrap a given HyperGraphDB type into a different
runtime instance.
|
HGAtomType |
JavaTypeSchema.toRuntimeType(HGHandle typeHandle,
HGAtomType typeInstance) |
protected byte[] |
HGHandleType.writeBytes(HGHandle value) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
JavaTypeSchema.ClassToTypeCache.removeEldestEntry(Map.Entry<Class<?>,HGHandle> eldest) |
Constructor and Description |
---|
HGAbstractCompositeType.Projection(String name,
HGHandle type) |
HGTypedValue(Object value,
HGHandle type) |
JavaAbstractBinding(HGHandle typeHandle,
HGCompositeType hgType,
Class<?> clazz) |
JavaBeanBinding(HGHandle typeHandle,
RecordType hgType,
Class<?> clazz) |
JavaInterfaceBinding(HGHandle typeHandle,
HGAtomType hgType,
Class<?> javaClass) |
JavaObjectBinding(HGHandle typeHandle,
RecordType hgType,
Class<?> clazz) |
LinkRecord(HGHandle type) |
LinkRecord(HGHandle type,
HGHandle[] targets) |
LinkRecord(HGHandle type,
HGHandle[] targets) |
Record(HGHandle type) |
Slot(String label,
HGHandle valueType) |
Modifier and Type | Method and Description |
---|---|
HGHandle |
TempLink.getTargetAt(int i) |
HGHandle |
TargetSetIterator.next() |
HGHandle |
TargetSetIterator.prev() |
static HGHandle[] |
HGUtils.toHandleArray(HGLink link) |
Modifier and Type | Method and Description |
---|---|
void |
TempLink.notifyTargetHandleUpdate(int i,
HGHandle handle) |
T |
HGAtomResolver.resolve(HGHandle key) |
void |
TempLink.setHandleArray(HGHandle[] array) |
void |
TempLink.setHandleArray(HGHandle[] array,
int start) |
void |
TempLink.setHandleArray(HGHandle[] array,
int start,
int end) |
Constructor and Description |
---|
TempLink(HGHandle[] array) |
TempLink(HGHandle[] array,
int start) |
TempLink(HGHandle[] array,
int start,
int end) |
Copyright © 2015. All rights reserved.