public class LongType extends NumericTypeBase<Long>
| Modifier and Type | Class and Description |
|---|---|
static class |
LongType.LongComparator |
NumericTypeBase.NumericComparator| Modifier and Type | Field and Description |
|---|---|
static String |
INDEX_NAME |
COMPARATORdataOffset, graph, valueIndex| Constructor and Description |
|---|
LongType() |
| Modifier and Type | Method and Description |
|---|---|
static Long |
bytesToLong(byte[] bytes,
int offset) |
Comparator<byte[]> |
getComparator()
Return a
java.util.Comparator instance that provides
an order relation of the values of the primitive type. |
protected String |
getIndexName()
Return the name of the DB index to create for the primitive values.
|
protected Long |
readBytes(byte[] bytes,
int offset) |
protected byte[] |
writeBytes(Long value) |
compare, find, findGT, findGTE, findLT, findLTE, fromByteArray, getIndex, getRefCount, getRefCountFor, make, putRefCount, release, setHyperGraph, store, storeImpl, subsumes, toByteArraypublic static final String INDEX_NAME
public Comparator<byte[]> getComparator()
HGPrimitiveTypejava.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<Long>getComparator in class NumericTypeBase<Long>protected String getIndexName()
PrimitiveTypeBaseReturn the name of the DB index to create for the primitive values.
getIndexName in class PrimitiveTypeBase<Long>protected byte[] writeBytes(Long value)
writeBytes in class PrimitiveTypeBase<Long>protected Long readBytes(byte[] bytes, int offset)
readBytes in class PrimitiveTypeBase<Long>public static Long bytesToLong(byte[] bytes, int offset)
Copyright © 2015. All rights reserved.