org.elasticsearch.index.translog.fs
Enum FsTranslogFile.Type
java.lang.Object
java.lang.Enum<FsTranslogFile.Type>
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>
SIMPLE
public static final FsTranslogFile.Type SIMPLE
BUFFERED
public static final FsTranslogFile.Type BUFFERED
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.