Class ImmutableRTree
- java.lang.Object
-
- org.apache.druid.collections.spatial.ImmutableRTree
-
- All Implemented Interfaces:
Comparable<ImmutableRTree>
public final class ImmutableRTree extends Object implements Comparable<ImmutableRTree>
An immutable representation of anRTree
for 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 int
compareTo(ImmutableRTree other)
static ImmutableRTree
empty()
boolean
equals(Object obj)
int
hashCode()
static ImmutableRTree
newImmutableFromMutable(RTree rTree)
Iterable<ImmutableBitmap>
search(Bound bound)
Iterable<ImmutableBitmap>
search(SearchStrategy strategy, Bound bound)
int
size()
byte[]
toBytes()
void
writeTo(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)
-
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:
compareTo
in interfaceComparable<ImmutableRTree>
-
-