org.elasticsearch.index.translog.fs
Enum FsTranslogFile.Type

java.lang.Object
  extended by java.lang.Enum<FsTranslogFile.Type>
      extended by org.elasticsearch.index.translog.fs.FsTranslogFile.Type
All Implemented Interfaces:
Serializable, Comparable<FsTranslogFile.Type>
Enclosing interface:
FsTranslogFile

public static enum FsTranslogFile.Type
extends Enum<FsTranslogFile.Type>


Enum Constant Summary
BUFFERED
           
SIMPLE
           
 
Method Summary
abstract  FsTranslogFile create(ShardId shardId, long id, RafReference raf, int bufferSize)
           
static FsTranslogFile.Type fromString(String type)
           
static FsTranslogFile.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FsTranslogFile.Type[] 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

SIMPLE

public static final FsTranslogFile.Type SIMPLE

BUFFERED

public static final FsTranslogFile.Type BUFFERED
Method Detail

values

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

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

valueOf

public static FsTranslogFile.Type 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

create

public abstract FsTranslogFile create(ShardId shardId,
                                      long id,
                                      RafReference raf,
                                      int bufferSize)
                               throws IOException
Throws:
IOException

fromString

public static FsTranslogFile.Type fromString(String type)
                                      throws ElasticSearchIllegalArgumentException
Throws:
ElasticSearchIllegalArgumentException


Copyright © 2009-2012. All Rights Reserved.