public abstract class InlineKeyDescriptor<T> extends java.lang.Object implements KeyDescriptor<T>
CANONICAL, IDENTITY
Constructor and Description |
---|
InlineKeyDescriptor() |
Modifier and Type | Method and Description |
---|---|
abstract T |
fromInt(int n) |
int |
getHashCode(T value) |
protected boolean |
isCompactFormat() |
boolean |
isEqual(T val1,
T val2) |
T |
read(java.io.DataInput in) |
void |
save(java.io.DataOutput out,
T value) |
abstract int |
toInt(T t) |
protected boolean isCompactFormat()
public final int getHashCode(T value)
getHashCode
in interface EqualityPolicy<T>
public final boolean isEqual(T val1, T val2)
isEqual
in interface EqualityPolicy<T>
public final void save(java.io.DataOutput out, T value) throws java.io.IOException
save
in interface DataExternalizer<T>
java.io.IOException
public final T read(java.io.DataInput in) throws java.io.IOException
read
in interface DataExternalizer<T>
java.io.IOException
public abstract T fromInt(int n)
public abstract int toInt(T t)