public final class IntType extends NumericTypeBase<java.lang.Integer>
The implementation of the primitive Integer
type.
A java.lang.Integer
object is translated to a byte [] as
follows:
Modifier and Type | Class and Description |
---|---|
static class |
IntType.IntComparator |
NumericTypeBase.NumericComparator
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
INDEX_NAME |
COMPARATOR
dataOffset, graph, valueIndex
Constructor and Description |
---|
IntType() |
Modifier and Type | Method and Description |
---|---|
protected static java.lang.Integer |
bytesToInt(byte[] bytes,
int offset) |
java.util.Comparator<byte[]> |
getComparator()
Return a
java.util.Comparator instance that provides
an order relation of the values of the primitive type. |
protected java.lang.String |
getIndexName()
Return the name of the DB index to create for the primitive values.
|
protected java.lang.Integer |
readBytes(byte[] bytes,
int offset) |
protected byte[] |
writeBytes(java.lang.Integer value) |
compare, find, findGT, findGTE, findLT, findLTE, fromByteArray, getIndex, getRefCount, getRefCountFor, make, putRefCount, release, setHyperGraph, store, storeImpl, subsumes, toByteArray
public static final java.lang.String INDEX_NAME
public java.util.Comparator<byte[]> getComparator()
HGPrimitiveType
java.util.Comparator
instance that provides
an order relation of the values of the primitive type. An implementation
is allowed to return null
in which case it is assumed
that the type does not offer an ordering relation. However, if a
non-null value is returned, it is must be of a publicly available
and default constructible class.getComparator
in interface HGPrimitiveType<java.lang.Integer>
getComparator
in class NumericTypeBase<java.lang.Integer>
protected java.lang.String getIndexName()
PrimitiveTypeBase
Return the name of the DB index to create for the primitive values.
getIndexName
in class PrimitiveTypeBase<java.lang.Integer>
protected byte[] writeBytes(java.lang.Integer value)
writeBytes
in class PrimitiveTypeBase<java.lang.Integer>
protected java.lang.Integer readBytes(byte[] bytes, int offset)
readBytes
in class PrimitiveTypeBase<java.lang.Integer>
protected static java.lang.Integer bytesToInt(byte[] bytes, int offset)