T - filter typepublic class MapRegionInspector<T,V extends Content<V>> extends Object implements RegionInspector<T,V>
assess(com.google.uzaygezen.core.Pow2LengthBitSetRange, java.util.List<com.google.uzaygezen.core.Pow2LengthBitSetRange>) calls are
skipped. It is designed to improve region inspection in a couple of ways:
disguiseCacheHits is set, if the current region is found in
the map, and it is evaluated as covered, with no potential over selectivity
by the delegate, it produces a disjoint assessment and it remembers in an
internal cache the skipped values. Caveat: when using this option, since the
internal cache doesn't remember the filter produced by the delegate
inspector, the delegate inspector must never return a meaningful filter for
covered regions with no potential over-selectivity.| Modifier and Type | Method and Description |
|---|---|
Assessment<T,V> |
assess(Pow2LengthBitSetRange indexRange,
List<Pow2LengthBitSetRange> orthotope)
Assesses the spatial relationship of an orthotope with respect to the query
region.
|
static <T,V extends Content<V>> |
create(Map<Pow2LengthBitSetRange,NodeValue<V>> rolledupMap,
RegionInspector<T,V> delegate,
boolean disguiseCacheHits,
V zero,
V one) |
Map<BitVector,V> |
getDisguisedCacheHits() |
int |
getNumberOfDimensions() |
String |
toString() |
public static <T,V extends Content<V>> MapRegionInspector<T,V> create(Map<Pow2LengthBitSetRange,NodeValue<V>> rolledupMap, RegionInspector<T,V> delegate, boolean disguiseCacheHits, V zero, V one)
public int getNumberOfDimensions()
getNumberOfDimensions in interface RegionInspector<T,V extends Content<V>>public Assessment<T,V> assess(Pow2LengthBitSetRange indexRange, List<Pow2LengthBitSetRange> orthotope)
RegionInspectorWhen the framework calls this method it is guaranteed that the size of the index range is equal to the content of the orthotope.
assess in interface RegionInspector<T,V extends Content<V>>indexRange - space filling curve index rangeorthotope - orthotope specification. The caller might reuse this
parameter so no reference should be kept to it by any concrete region
inspector.Copyright © 2014. All Rights Reserved.