Class ImmutableRTree
java.lang.Object
org.apache.druid.collections.spatial.ImmutableRTree
- All Implemented Interfaces:
Comparable<ImmutableRTree>,BaseImmutableRTee
public final class ImmutableRTree
extends Object
implements Comparable<ImmutableRTree>, BaseImmutableRTee
An immutable representation of an
RTree for spatial indexing.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(ImmutableRTree other) static ImmutableRTreeempty()booleaninthashCode()static ImmutableRTreenewImmutableFromMutable(RTree rTree) search(SearchStrategy strategy, Bound bound) intsize()byte[]toBytes()voidwriteTo(WriteOutBytes out)
-
Constructor Details
-
ImmutableRTree
-
-
Method Details
-
empty
-
newImmutableFromMutable
-
size
public int size() -
search
- Specified by:
searchin interfaceBaseImmutableRTee
-
search
-
toBytes
public byte[] toBytes() -
writeTo
- Throws:
IOException
-
compareTo
- Specified by:
compareToin interfaceComparable<ImmutableRTree>
-
equals
-
hashCode
public int hashCode()
-