public class RABasedPredicate extends Object implements HGAtomPredicate, CloseMe
Make a random access result set as a predicate. Random access result sets don't always have a constant time (like "true" random access structures), but are always assumed to have at least sublinear time. In other words, their goTo method should have complexity smaller than O(N). In practice, RA sets are usually B-Tree or "B-Forests" accessed in O(logN).
RABasedPredicate is initialized with a
instead of a result set, the query will be executed the first time
close method will only close the result set if this
was created by calling the
HGQuery based constructor.
|Constructor and Description|
|Modifier and Type||Method and Description|
public RABasedPredicate(HGRandomAccessResult ras)
public RABasedPredicate(HGQuery query)
public boolean satisfies(HyperGraph hg, HGHandle handle)
handle is a member of
HGRandomAccessResult set on which this predicate
is based. Return
Copyright © 2015. All rights reserved.