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

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

public enum PropertyType
extends Enum<PropertyType>

Defines valid property types.


Enum Constant Summary
ARRAY
           
BOOL
           
BYTE
           
CHAR
           
DOUBLE
           
FLOAT
           
INT
           
LONG
           
SHORT
           
SHORT_ARRAY
           
SHORT_STRING
           
STRING
           
 
Method Summary
 byte byteValue()
          Returns a byte value representing the type.
 int calculateNumberOfBlocksUsed(long firstBlock)
           
static int getPayloadSize()
           
static int getPayloadSizeLongs()
           
static PropertyType getPropertyType(long propBlock, boolean nullOnIllegal)
           
abstract  Object getValue(PropertyBlock block, PropertyStore store)
           
 int intValue()
          Returns an int value representing the type.
abstract  PropertyData newPropertyData(PropertyBlock block, long propertyId, Object extractedValue)
           
static void setPayloadSize(int newPayloadSize)
           
static PropertyType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PropertyType[] 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

BOOL

public static final PropertyType BOOL

BYTE

public static final PropertyType BYTE

SHORT

public static final PropertyType SHORT

CHAR

public static final PropertyType CHAR

INT

public static final PropertyType INT

LONG

public static final PropertyType LONG

FLOAT

public static final PropertyType FLOAT

DOUBLE

public static final PropertyType DOUBLE

STRING

public static final PropertyType STRING

ARRAY

public static final PropertyType ARRAY

SHORT_STRING

public static final PropertyType SHORT_STRING

SHORT_ARRAY

public static final PropertyType SHORT_ARRAY
Method Detail

values

public static PropertyType[] 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 (PropertyType c : PropertyType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PropertyType 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()
Returns an int value representing the type.

Returns:
The int value for this property type

byteValue

public byte byteValue()
Returns a byte value representing the type. As long as there are < 128 PropertyTypes, this should be equal to intValue(). When this statement no longer holds, this method should be removed.

Returns:
The byte value for this property type

getValue

public abstract Object getValue(PropertyBlock block,
                                PropertyStore store)

newPropertyData

public abstract PropertyData newPropertyData(PropertyBlock block,
                                             long propertyId,
                                             Object extractedValue)

getPropertyType

public static PropertyType getPropertyType(long propBlock,
                                           boolean nullOnIllegal)

getPayloadSize

public static int getPayloadSize()

getPayloadSizeLongs

public static int getPayloadSizeLongs()

setPayloadSize

public static void setPayloadSize(int newPayloadSize)

calculateNumberOfBlocksUsed

public int calculateNumberOfBlocksUsed(long firstBlock)


Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.