org.neo4j.kernel.impl.nioneo.store
Enum ShortArray
java.lang.Object
java.lang.Enum<ShortArray>
org.neo4j.kernel.impl.nioneo.store.ShortArray
- All Implemented Interfaces:
- Serializable, Comparable<ShortArray>
public enum ShortArray
- extends Enum<ShortArray>
BOOLEAN
public static final ShortArray BOOLEAN
BYTE
public static final ShortArray BYTE
SHORT
public static final ShortArray SHORT
CHAR
public static final ShortArray CHAR
INT
public static final ShortArray INT
LONG
public static final ShortArray LONG
FLOAT
public static final ShortArray FLOAT
DOUBLE
public static final ShortArray DOUBLE
values
public static ShortArray[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (ShortArray c : ShortArray.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ShortArray valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
intValue
public int intValue()
encode
public static boolean encode(int keyId,
Object array,
PropertyBlock target,
int payloadSizeInBytes)
decode
public static Object decode(PropertyBlock block)
calculateRequiredBitsForArray
public int calculateRequiredBitsForArray(Object array)
typeOf
public static ShortArray typeOf(byte typeId)
typeOf
public static ShortArray typeOf(Object array)
calculateNumberOfBlocksUsed
public static int calculateNumberOfBlocksUsed(long firstBlock)
calculateNumberOfBlocksUsed
public static int calculateNumberOfBlocksUsed(int arrayLength,
int requiredBits)
Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.