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 anRTreefor spatial indexing.
-
-
Constructor Summary
Constructors Constructor Description ImmutableRTree(ByteBuffer data, BitmapFactory bitmapFactory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ImmutableRTree other)static ImmutableRTreeempty()booleanequals(Object obj)inthashCode()static ImmutableRTreenewImmutableFromMutable(RTree rTree)Iterable<ImmutableBitmap>search(Bound bound)Iterable<ImmutableBitmap>search(SearchStrategy strategy, Bound bound)intsize()byte[]toBytes()voidwriteTo(WriteOutBytes out)
-
-
-
Constructor Detail
-
ImmutableRTree
public ImmutableRTree(ByteBuffer data, BitmapFactory bitmapFactory)
-
-
Method Detail
-
empty
public static ImmutableRTree empty()
-
newImmutableFromMutable
public static ImmutableRTree newImmutableFromMutable(RTree rTree)
-
size
public int size()
-
search
public Iterable<ImmutableBitmap> search(Bound bound)
- Specified by:
searchin interfaceBaseImmutableRTee
-
search
public Iterable<ImmutableBitmap> search(SearchStrategy strategy, Bound bound)
-
toBytes
public byte[] toBytes()
-
writeTo
public void writeTo(WriteOutBytes out) throws IOException
- Throws:
IOException
-
compareTo
public int compareTo(ImmutableRTree other)
- Specified by:
compareToin interfaceComparable<ImmutableRTree>
-
-