public static enum Table.TableOption extends java.lang.Enum<Table.TableOption>
EXCLUDEID
: If this option is set to true then rowkey
(field "_id") won't be returned in the result of a find or findById operation.
The default value of this option is false.BUFFERWRITE
: If this option is set to false then any insert,
update, delete operation on the table would be synchronously sent in RPC
to server. If the option is true, then buffering of these operations on
the client are allowed and buffered updates are sent in batches to the server.
The buffering operation is optimized for performance as it reduces the number
of RPCs to the server.Enum Constant and Description |
---|
BUFFERWRITE |
EXCLUDEID |
Modifier and Type | Method and Description |
---|---|
static Table.TableOption |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Table.TableOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Table.TableOption EXCLUDEID
public static final Table.TableOption BUFFERWRITE
public static Table.TableOption[] values()
for (Table.TableOption c : Table.TableOption.values()) System.out.println(c);
public static Table.TableOption valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null