Package org.apache.druid.segment.data
Class ImmutableRTreeObjectStrategy
java.lang.Object
org.apache.druid.segment.data.ImmutableRTreeObjectStrategy
- All Implemented Interfaces:
Comparator<ImmutableRTree>,ObjectStrategy<ImmutableRTree>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(ImmutableRTree o1, ImmutableRTree o2) fromByteBuffer(ByteBuffer buffer, int numBytes) Convert values from their underlying byte representation.getClazz()byte[]toBytes(ImmutableRTree val) voidwriteTo(ImmutableRTree val, WriteOutBytes out) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongMethods inherited from interface org.apache.druid.segment.data.ObjectStrategy
canCompare, fromByteBufferSafe, fromByteBufferWithSize, readRetainsBufferReference
-
Constructor Details
-
ImmutableRTreeObjectStrategy
-
-
Method Details
-
getClazz
- Specified by:
getClazzin interfaceObjectStrategy<ImmutableRTree>
-
fromByteBuffer
Description copied from interface:ObjectStrategyConvert values from their underlying byte representation. Implementations of this method may change the given buffer's mark, or limit, and position. Implementations of this method may not store the given buffer in a field of the "deserialized" object, need to useByteBuffer.slice(),ByteBuffer.asReadOnlyBuffer()orByteBuffer.duplicate()in this case.- Specified by:
fromByteBufferin interfaceObjectStrategy<ImmutableRTree>- Parameters:
buffer- buffer to read value fromnumBytes- number of bytes used to store the value, starting at buffer.position()- Returns:
- an object created from the given byte buffer representation
-
toBytes
- Specified by:
toBytesin interfaceObjectStrategy<ImmutableRTree>
-
writeTo
- Specified by:
writeToin interfaceObjectStrategy<ImmutableRTree>- Throws:
IOException
-
compare
- Specified by:
comparein interfaceComparator<ImmutableRTree>
-