public enum ValueType extends Enum<ValueType>
Enum Constant and Description |
---|
AutoIncInteger
A 32-bit auto-incremental counter.
|
AutoIncLong
A 64-bit auto-incremental counter.
|
ByteArray
An uninterpreted byte array.
|
Date
A date is serialized as a long integer.
|
Double
A double precision floating point value.
|
Float
A single precision floating point value.
|
Integer
A 32-bit integer.
|
Long
A 64-bit integer.
|
Serializable
A Java object that will be serialized using its
Serializable or
Externalizable interface. |
Unicode
A Unicode string.
|
Modifier and Type | Method and Description |
---|---|
static Object |
decode(byte[] v) |
static byte[] |
encode(Object v)
Encode an object that is an instance of a supported class.
|
static DataOutputBuffer |
getBuffer()
Return a
ThreadLocal buffer that is used to serialize values. |
int |
intValue()
An integer that identifies the type safe enumeration value.
|
static ValueType |
valueOf(int code) |
static ValueType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ValueType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ValueType Integer
public static final ValueType Long
public static final ValueType Float
public static final ValueType Double
public static final ValueType Unicode
public static final ValueType Date
public static final ValueType ByteArray
public static final ValueType AutoIncInteger
AutoIncIntegerCounter
public static final ValueType AutoIncLong
AutoIncLongCounter
public static final ValueType Serializable
Serializable
or
Externalizable
interface.public static ValueType[] values()
for (ValueType c : ValueType.values()) System.out.println(c);
public static ValueType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int intValue()
public static ValueType valueOf(int code)
public static DataOutputBuffer getBuffer()
ThreadLocal
buffer that is used to serialize values.public static byte[] encode(Object v)
v
- The value.UnsupportedOperationException
- if the value is not an instance of a supported class.public static Object decode(byte[] v)
v
- Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.