org.neo4j.kernel.impl.nioneo.store
Enum ShortArray

java.lang.Object
  extended by java.lang.Enum<ShortArray>
      extended by org.neo4j.kernel.impl.nioneo.store.ShortArray
All Implemented Interfaces:
Serializable, Comparable<ShortArray>

public enum ShortArray
extends Enum<ShortArray>


Enum Constant Summary
BOOLEAN
           
BYTE
           
CHAR
           
DOUBLE
           
FLOAT
           
INT
           
LONG
           
SHORT
           
 
Method Summary
static int calculateNumberOfBlocksUsed(int arrayLength, int requiredBits)
           
static int calculateNumberOfBlocksUsed(long firstBlock)
           
 int calculateRequiredBitsForArray(Object array)
           
static Object decode(PropertyBlock block)
           
static boolean encode(int keyId, Object array, PropertyBlock target, int payloadSizeInBytes)
           
 int intValue()
           
static ShortArray typeOf(byte typeId)
           
static ShortArray typeOf(Object array)
           
static ShortArray valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ShortArray[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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.