public static enum TranslogWriter.Type extends Enum<TranslogWriter.Type>
Modifier and Type | Method and Description |
---|---|
abstract TranslogWriter |
create(ShardId shardId,
long generation,
org.elasticsearch.index.translog.ChannelReference raf,
int bufferSize) |
static TranslogWriter.Type |
fromString(String type) |
static TranslogWriter.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TranslogWriter.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TranslogWriter.Type SIMPLE
public static final TranslogWriter.Type BUFFERED
public static TranslogWriter.Type[] values()
for (TranslogWriter.Type c : TranslogWriter.Type.values()) System.out.println(c);
public static TranslogWriter.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 TranslogWriter create(ShardId shardId, long generation, org.elasticsearch.index.translog.ChannelReference raf, int bufferSize) throws IOException
IOException
public static TranslogWriter.Type fromString(String type)
Copyright © 2009–2017. All rights reserved.