public enum PutFlags extends java.lang.Enum<PutFlags> implements MaskedFlag
Enum Constant and Description |
---|
MDB_APPEND
Data is being appended, don't split full pages.
|
MDB_APPENDDUP
Duplicate data is being appended, don't split full pages.
|
MDB_CURRENT
For mdb_cursor_put: overwrite the current key/data pair.
|
MDB_MULTIPLE
Store multiple data items in one call.
|
MDB_NODUPDATA
Only for #MDB_DUPSORT
For put: don't write if the key and data pair already exist. For mdb_cursor_del: remove all duplicate data items. |
MDB_NOOVERWRITE
For put: Don't write if the key already exists.
|
MDB_RESERVE
For put: Just reserve space for data, don't copy it.
|
Modifier and Type | Method and Description |
---|---|
int |
getMask()
Obtains the integer value for this enum which can be included in a mask.
|
static PutFlags |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PutFlags[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
isSet, mask
public static final PutFlags MDB_NOOVERWRITE
public static final PutFlags MDB_NODUPDATA
public static final PutFlags MDB_CURRENT
public static final PutFlags MDB_RESERVE
public static final PutFlags MDB_APPEND
public static final PutFlags MDB_APPENDDUP
public static final PutFlags MDB_MULTIPLE
public static PutFlags[] values()
for (PutFlags c : PutFlags.values()) System.out.println(c);
public static PutFlags 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 nullpublic int getMask()
MaskedFlag
getMask
in interface MaskedFlag
Copyright © 2016–2018 The LmdbJava Open Source Project. All rights reserved.