voldemort.store.readonly
Enum ReadOnlyStorageFormat

java.lang.Object
  extended by java.lang.Enum<ReadOnlyStorageFormat>
      extended by voldemort.store.readonly.ReadOnlyStorageFormat
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ReadOnlyStorageFormat>

public enum ReadOnlyStorageFormat
extends java.lang.Enum<ReadOnlyStorageFormat>

An enumeration of read-only stores formats


Enum Constant Summary
READONLY_V0
           
READONLY_V1
           
READONLY_V2
           
 
Method Summary
static ReadOnlyStorageFormat fromCode(java.lang.String code)
           
 java.lang.String getCode()
           
 java.lang.String getDisplayName()
           
 java.lang.String toString()
           
static ReadOnlyStorageFormat valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ReadOnlyStorageFormat[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

READONLY_V0

public static final ReadOnlyStorageFormat READONLY_V0

READONLY_V1

public static final ReadOnlyStorageFormat READONLY_V1

READONLY_V2

public static final ReadOnlyStorageFormat READONLY_V2
Method Detail

values

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

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

valueOf

public static ReadOnlyStorageFormat valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getCode

public java.lang.String getCode()

getDisplayName

public java.lang.String getDisplayName()

fromCode

public static ReadOnlyStorageFormat fromCode(java.lang.String code)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<ReadOnlyStorageFormat>


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu