public class SketchObjectStrategy extends Object implements ObjectStrategy
Constructor and Description |
---|
SketchObjectStrategy() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Object s1,
Object s2) |
Object |
fromByteBuffer(ByteBuffer buffer,
int numBytes)
Convert values from their underlying byte representation.
|
Class<?> |
getClazz() |
byte[] |
toBytes(Object obj) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public int compare(Object s1, Object s2)
compare
in interface Comparator
public Class<?> getClazz()
getClazz
in interface ObjectStrategy
public Object fromByteBuffer(ByteBuffer buffer, int numBytes)
ObjectStrategy
fromByteBuffer
in interface ObjectStrategy
buffer
- buffer to read value fromnumBytes
- number of bytes used to store the value, starting at buffer.position()public byte[] toBytes(Object obj)
toBytes
in interface ObjectStrategy
Copyright © 2011–2017. All rights reserved.