public enum BatchedWriteMode extends Enum<BatchedWriteMode>
Enum Constant and Description |
---|
REORDERED
Indicates that the writes can be reordered to optimize the write
performance.
|
SERIALIZE_AND_CONTINUE
Indicates that the writes should be submitted to the server in the order
they were added to the
BatchedWrite but that all writes should be
tried on the server even after a failure. |
SERIALIZE_AND_STOP
Indicates that the writes should be submitted to the server in the order
they were added to the
BatchedWrite and that the writes should
stop on the first write failure. |
Modifier and Type | Method and Description |
---|---|
static BatchedWriteMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BatchedWriteMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BatchedWriteMode REORDERED
WriteOperationType
(e.g., move one insert before another to
better pack messages to the server) and across types (e.g., move an
insert before an update to group all like operations).
This mode should provide close to optimal performance.
public static final BatchedWriteMode SERIALIZE_AND_CONTINUE
BatchedWrite
but that all writes should be
tried on the server even after a failure.
This mode will perform better than the SERIALIZE_AND_STOP
mode
since the driver can submit multiple writes to the server at once.
public static final BatchedWriteMode SERIALIZE_AND_STOP
BatchedWrite
and that the writes should
stop on the first write failure.
This mode will perform slower than all of the other modes since the driver must wait for the results of one write before submitting the next.
public static BatchedWriteMode[] values()
for (BatchedWriteMode c : BatchedWriteMode.values()) System.out.println(c);
public static BatchedWriteMode 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 nullCopyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.