public enum IndexSerializer extends Enum<IndexSerializer> implements IntSerializer
| Enum Constant and Description |
|---|
INTEGER |
UNSIGNED_BYTE |
UNSIGNED_SHORT |
VARIABLE
Reads/write an unsigned integer using a variable-length format.
|
| Modifier and Type | Method and Description |
|---|---|
static IntSerializer |
select(int size)
Returns the most efficient externalizer for a given index size.
|
static IndexSerializer |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IndexSerializer[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfreadInt, size, writeIntpublic static final IndexSerializer UNSIGNED_BYTE
public static final IndexSerializer UNSIGNED_SHORT
public static final IndexSerializer INTEGER
public static final IndexSerializer VARIABLE
public static IndexSerializer[] values()
for (IndexSerializer c : IndexSerializer.values()) System.out.println(c);
public static IndexSerializer 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 static IntSerializer select(int size)
size - the size of the indexCopyright © 2021 JBoss by Red Hat. All rights reserved.