Class AbstractHyperBoxQuery<P extends HyperPoint,DS extends BoundedShape<NS>,NS extends HyperBox<P,NS>,Q extends AbstractHyperBoxQuery<P,DS,NS,Q>>
java.lang.Object
ghidra.util.database.spatial.hyper.AbstractHyperBoxQuery<P,DS,NS,Q>
- All Implemented Interfaces:
Query<DS,NS>
- Direct Known Subclasses:
TraceObjectValueQuery
public abstract class AbstractHyperBoxQuery<P extends HyperPoint,DS extends BoundedShape<NS>,NS extends HyperBox<P,NS>,Q extends AbstractHyperBoxQuery<P,DS,NS,Q>>
extends Object
implements Query<DS,NS>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAbstractHyperBoxQuery.QueryFactory<NS extends HyperBox<?,NS>, Q extends AbstractHyperBoxQuery<?, ?, NS, Q>> Nested classes/interfaces inherited from interface ghidra.util.database.spatial.Query
Query.QueryInclusion -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Comparator<NS> protected final HyperDirectionprotected final NSprotected final EuclideanHyperSpace<P, NS> protected final NS -
Constructor Summary
ConstructorsConstructorDescriptionAbstractHyperBoxQuery(NS ls, NS us, EuclideanHyperSpace<P, NS> space, HyperDirection direction) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Qcreate(NS ir1, NS ir2, HyperDirection newDirection) protected <T> Comparator<NS> createBoundsComparator(Dimension<T, P, NS> dim) protected static <P extends HyperPoint,NS extends HyperBox<P, NS>, Q extends AbstractHyperBoxQuery<P, ?, NS, Q>>
Qenclosed(NS shape, HyperDirection direction, AbstractHyperBoxQuery.QueryFactory<NS, Q> factory) protected static <P extends HyperPoint,NS extends HyperBox<P, NS>, Q extends AbstractHyperBoxQuery<P, ?, NS, Q>>
Qenclosing(NS shape, HyperDirection direction, AbstractHyperBoxQuery.QueryFactory<NS, Q> factory) protected static <P extends HyperPoint,NS extends HyperBox<P, NS>, Q extends AbstractHyperBoxQuery<P, ?, NS, Q>>
QequalTo(NS shape, HyperDirection direction, AbstractHyperBoxQuery.QueryFactory<NS, Q> factory) If the query orders elements, get the (or an equivalent) comparator.protected static <P extends HyperPoint,NS extends HyperBox<P, NS>, Q extends AbstractHyperBoxQuery<P, ?, NS, Q>>
Qintersecting(NS shape, HyperDirection direction, AbstractHyperBoxQuery.QueryFactory<NS, Q> factory) starting(HyperDirection newDirection) booleanterminateEarlyData(DS shape) Test if internal data entry iteration can terminate earlybooleanterminateEarlyNode(NS shape) Test if internal node entry iteration can terminate earlyTest if the given node shape has data entries included in the query
-
Field Details
-
ls
-
us
-
space
-
direction
-
comparator
-
-
Constructor Details
-
AbstractHyperBoxQuery
public AbstractHyperBoxQuery(NS ls, NS us, EuclideanHyperSpace<P, NS> space, HyperDirection direction)
-
-
Method Details
-
intersecting
protected static <P extends HyperPoint,NS extends HyperBox<P, Q intersectingNS>, Q extends AbstractHyperBoxQuery<P, ?, NS, Q>> (NS shape, HyperDirection direction, AbstractHyperBoxQuery.QueryFactory<NS, Q> factory) -
enclosing
protected static <P extends HyperPoint,NS extends HyperBox<P, Q enclosingNS>, Q extends AbstractHyperBoxQuery<P, ?, NS, Q>> (NS shape, HyperDirection direction, AbstractHyperBoxQuery.QueryFactory<NS, Q> factory) -
enclosed
protected static <P extends HyperPoint,NS extends HyperBox<P, Q enclosedNS>, Q extends AbstractHyperBoxQuery<P, ?, NS, Q>> (NS shape, HyperDirection direction, AbstractHyperBoxQuery.QueryFactory<NS, Q> factory) -
equalTo
protected static <P extends HyperPoint,NS extends HyperBox<P, Q equalToNS>, Q extends AbstractHyperBoxQuery<P, ?, NS, Q>> (NS shape, HyperDirection direction, AbstractHyperBoxQuery.QueryFactory<NS, Q> factory) -
terminateEarlyData
Description copied from interface:QueryTest if internal data entry iteration can terminate early- Specified by:
terminateEarlyDatain interfaceQuery<P extends HyperPoint,DS extends BoundedShape<NS>> - Parameters:
shape- the shape of the current data entry- Returns:
- true if no entry to follow could possibly be included in the query
-
terminateEarlyNode
Description copied from interface:QueryTest if internal node entry iteration can terminate early- Specified by:
terminateEarlyNodein interfaceQuery<P extends HyperPoint,DS extends BoundedShape<NS>> - Parameters:
shape- the shape of the current node entry- Returns:
- true if no entry to follow could possibly contain data entries included in the query
-
getBoundsComparator
Description copied from interface:QueryIf the query orders elements, get the (or an equivalent) comparator.- Specified by:
getBoundsComparatorin interfaceQuery<P extends HyperPoint,DS extends BoundedShape<NS>> - Returns:
- an comparator
-
createBoundsComparator
-
testNode
Description copied from interface:QueryTest if the given node shape has data entries included in the query- Specified by:
testNodein interfaceQuery<P extends HyperPoint,DS extends BoundedShape<NS>> - Parameters:
shape- the shape (bounds) of the node entry- Returns:
- a result as described in
Query.QueryInclusion
-
create
-
and
-
getDirection
-
starting
-