| Package | Description |
|---|---|
| com.github.davidmoten.rtree | |
| com.github.davidmoten.rtree.fbs | |
| com.github.davidmoten.rtree.geometry | |
| com.github.davidmoten.rtree.internal | |
| com.github.davidmoten.rtree.kryo |
| Modifier and Type | Class and Description |
|---|---|
class |
Context<T,S extends Geometry>
Configures an RTree prior to instantiation of an
RTree. |
interface |
Entry<T,S extends Geometry> |
interface |
EntryFactory<T,S extends Geometry> |
interface |
Factory<T,S extends Geometry> |
interface |
Leaf<T,S extends Geometry> |
interface |
LeafFactory<T,S extends Geometry> |
interface |
Node<T,S extends Geometry> |
interface |
NonLeaf<T,S extends Geometry> |
interface |
NonLeafFactory<T,S extends Geometry> |
class |
RTree<T,S extends Geometry>
Immutable in-memory 2D R-Tree with configurable splitter heuristic.
|
interface |
Serializer<T,S extends Geometry> |
| Modifier and Type | Method and Description |
|---|---|
<S extends Geometry> |
Serializers.SerializerBuilder.bytes() |
<S extends Geometry> |
Serializers.SerializerTypedBuilder.create() |
static <T,S extends Geometry> |
RTree.create()
Returns a new Builder instance for
RTree. |
<T,S extends Geometry> |
RTree.Builder.create()
Builds the
RTree. |
static <T,S extends Geometry> |
SerializerHelper.create(com.github.davidmoten.guavamini.Optional<Node<T,S>> root,
int size,
Context<T,S> context) |
static <T,S extends Geometry> |
Factories.defaultFactory() |
static <T,S extends Geometry> |
Entries.entry(T object,
S geometry) |
static <T,S extends Geometry> |
Serializers.flatBuffers() |
<T extends Serializable,S extends Geometry> |
Serializers.SerializerBuilder.javaIo() |
<R extends Geometry> |
RTree.search(R g,
double maxDistance,
rx.functions.Func2<? super S,? super R,Double> distance)
Returns all entries strictly less than
maxDistance from the
given geometry. |
<R extends Geometry> |
RTree.search(R g,
rx.functions.Func2<? super S,? super R,Boolean> intersects)
Returns the intersections with the the given (arbitrary) geometry using
an intersection function to filter the search results returned from a
search of the mbr of
g. |
<T,S extends Geometry> |
SelectorMinimalOverlapArea.select(Geometry g,
List<? extends Node<T,S>> nodes) |
<T,S extends Geometry> |
Selector.select(Geometry g,
List<? extends Node<T,S>> nodes)
Returns the node from a list of nodes that an object with the given
geometry would be added to.
|
<T,S extends Geometry> |
SelectorRStar.select(Geometry g,
List<? extends Node<T,S>> nodes) |
<T,S extends Geometry> |
SelectorMinimalAreaIncrease.select(Geometry g,
List<? extends Node<T,S>> nodes) |
<S extends Geometry> |
Serializers.SerializerBuilder.string(Charset charset) |
<S extends Geometry> |
Serializers.SerializerBuilder.utf8() |
| Modifier and Type | Method and Description |
|---|---|
static rx.functions.Func1<Geometry,Boolean> |
RTree.intersects(Rectangle r)
Returns a predicate function that indicates if
Geometry
intersects with a given rectangle. |
| Modifier and Type | Method and Description |
|---|---|
<T,S extends Geometry> |
SelectorMinimalOverlapArea.select(Geometry g,
List<? extends Node<T,S>> nodes) |
<T,S extends Geometry> |
Selector.select(Geometry g,
List<? extends Node<T,S>> nodes)
Returns the node from a list of nodes that an object with the given
geometry would be added to.
|
<T,S extends Geometry> |
SelectorRStar.select(Geometry g,
List<? extends Node<T,S>> nodes) |
<T,S extends Geometry> |
SelectorMinimalAreaIncrease.select(Geometry g,
List<? extends Node<T,S>> nodes) |
| Modifier and Type | Method and Description |
|---|---|
RTree.Builder |
RTree.Builder.factory(Factory<?,? extends Geometry> factory) |
void |
Node.searchWithoutBackpressure(rx.functions.Func1<? super Geometry,Boolean> criterion,
rx.Subscriber<? super Entry<T,S>> subscriber)
Run when a search requests Long.MAX_VALUE results.
|
| Modifier and Type | Class and Description |
|---|---|
class |
FactoryFlatBuffers<T,S extends Geometry>
Conserves memory in comparison to
FactoryDefault especially for
larger maxChildren by saving Leaf objects to byte arrays and using
FlatBuffers to access the byte array. |
class |
SerializerFlatBuffers<T,S extends Geometry> |
| Modifier and Type | Method and Description |
|---|---|
static <T,S extends Geometry> |
SerializerFlatBuffers.create(rx.functions.Func1<? super T,byte[]> serializer,
rx.functions.Func1<byte[],? extends T> deserializer) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Rectangle |
| Modifier and Type | Class and Description |
|---|---|
class |
Circle |
class |
Line
A line segment.
|
class |
Point |
| Modifier and Type | Field and Description |
|---|---|
static rx.functions.Func2<Circle,Geometry,Boolean> |
Intersects.circleIntersectsGeometry |
static rx.functions.Func2<Geometry,Circle,Boolean> |
Intersects.geometryIntersectsCircle |
static rx.functions.Func2<Geometry,Line,Boolean> |
Intersects.geometryIntersectsLine |
static rx.functions.Func2<Geometry,Point,Boolean> |
Intersects.geometryIntersectsPoint |
static rx.functions.Func2<Geometry,Rectangle,Boolean> |
Intersects.geometryIntersectsRectangle |
static rx.functions.Func2<Point,Geometry,Boolean> |
Intersects.pointIntersectsGeometry |
static rx.functions.Func2<Rectangle,Geometry,Boolean> |
Intersects.rectangleIntersectsGeometry |
| Modifier and Type | Method and Description |
|---|---|
Geometry |
Point.geometry() |
Geometry |
HasGeometry.geometry() |
Geometry |
Group.geometry() |
| Modifier and Type | Class and Description |
|---|---|
class |
EntryDefault<T,S extends Geometry>
An entry in the R-tree which has a spatial representation.
|
class |
FactoryDefault<T,S extends Geometry> |
class |
LeafDefault<T,S extends Geometry> |
class |
NodeAndEntries<T,S extends Geometry>
Used for tracking deletions through recursive calls.
|
class |
NonLeafDefault<T,S extends Geometry> |
| Modifier and Type | Method and Description |
|---|---|
static <T,S extends Geometry> |
LeafHelper.add(Entry<? extends T,? extends S> entry,
Leaf<T,S> leaf) |
static <T,S extends Geometry> |
NonLeafHelper.add(Entry<? extends T,? extends S> entry,
NonLeaf<T,S> node) |
static <T,S extends Geometry> |
Comparators.ascendingDistance(Rectangle r)
Returns a comparator that can be used to sort entries returned by search
methods.
|
static <T,S extends Geometry> |
LeafHelper.delete(Entry<? extends T,? extends S> entry,
boolean all,
Leaf<T,S> leaf) |
static <T,S extends Geometry> |
NonLeafHelper.delete(Entry<? extends T,? extends S> entry,
boolean all,
NonLeaf<T,S> node) |
static <T,S extends Geometry> |
EntryDefault.entry(T value,
S geometry)
Factory method.
|
static <T,S extends Geometry> |
FactoryDefault.instance() |
static <T,S extends Geometry> |
LeafHelper.search(rx.functions.Func1<? super Geometry,Boolean> condition,
rx.Subscriber<? super Entry<T,S>> subscriber,
Leaf<T,S> leaf) |
static <T,S extends Geometry> |
NonLeafHelper.search(rx.functions.Func1<? super Geometry,Boolean> criterion,
rx.Subscriber<? super Entry<T,S>> subscriber,
NonLeaf<T,S> node) |
| Modifier and Type | Method and Description |
|---|---|
Geometry |
LeafDefault.geometry() |
Geometry |
NonLeafDefault.geometry() |
| Modifier and Type | Method and Description |
|---|---|
static <T,S extends Geometry> |
LeafHelper.search(rx.functions.Func1<? super Geometry,Boolean> condition,
rx.Subscriber<? super Entry<T,S>> subscriber,
Leaf<T,S> leaf) |
static <T,S extends Geometry> |
NonLeafHelper.search(rx.functions.Func1<? super Geometry,Boolean> criterion,
rx.Subscriber<? super Entry<T,S>> subscriber,
NonLeaf<T,S> node) |
void |
LeafDefault.searchWithoutBackpressure(rx.functions.Func1<? super Geometry,Boolean> condition,
rx.Subscriber<? super Entry<T,S>> subscriber) |
void |
NonLeafDefault.searchWithoutBackpressure(rx.functions.Func1<? super Geometry,Boolean> criterion,
rx.Subscriber<? super Entry<T,S>> subscriber) |
| Modifier and Type | Class and Description |
|---|---|
class |
SerializerKryo<T,S extends Geometry> |
| Modifier and Type | Method and Description |
|---|---|
static <T,S extends Geometry> |
SerializerKryo.create(rx.functions.Func1<? super T,byte[]> serializer,
rx.functions.Func1<byte[],? extends T> deserializer,
rx.functions.Func0<com.esotericsoftware.kryo.Kryo> kryoFactory) |
Copyright © 2013–2016. All rights reserved.