public static enum FsTranslogFile.Type extends Enum<FsTranslogFile.Type>
Modifier and Type | Method and Description |
---|---|
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.
|
public static final FsTranslogFile.Type SIMPLE
public static final FsTranslogFile.Type BUFFERED
public static FsTranslogFile.Type[] values()
for (FsTranslogFile.Type c : FsTranslogFile.Type.values()) System.out.println(c);
public static FsTranslogFile.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract FsTranslogFile create(ShardId shardId, long id, RafReference raf, int bufferSize) throws IOException
IOException
public static FsTranslogFile.Type fromString(String type) throws ElasticsearchIllegalArgumentException
Copyright © 2009–2015. All rights reserved.