public interface HGPrimitiveType<JavaType> extends HGAtomType, ByteArrayConverter<JavaType>
A HGPrimitiveType
is a HGAtomType
that
store its values directly as raw byte data.
A primitive type must expose those operations to HyperGraph in order
to facilitate indexing and other storage management, and optimization
activities. The exposed conversion of a primitive type to/from a byte
buffer are defined in the parent ByteArrayConverter
interface.
Modifier and Type | Method and Description |
---|---|
Comparator<byte[]> |
getComparator()
Return a
java.util.Comparator instance that provides
an order relation of the values of the primitive type. |
make, release, store, subsumes
setHyperGraph
fromByteArray, toByteArray
Comparator<byte[]> getComparator()
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.Copyright © 2015. All rights reserved.