public enum DbiFlags extends java.lang.Enum<DbiFlags> implements MaskedFlag
Dbi
.Enum Constant and Description |
---|
MDB_CREATE
Create the named database if it doesn't exist.
|
MDB_DUPFIXED
With
MDB_DUPSORT , sorted dup items have fixed size. |
MDB_DUPSORT
Use sorted duplicates.
|
MDB_INTEGERDUP
With
MDB_DUPSORT , dups are MDB_INTEGERKEY -style integers. |
MDB_INTEGERKEY
Numeric keys in native byte order: either unsigned int or size_t.
|
MDB_REVERSEDUP
With
MDB_DUPSORT , use reverse string dups. |
MDB_REVERSEKEY
Use reverse string keys.
|
Modifier and Type | Method and Description |
---|---|
int |
getMask()
Obtains the integer value for this enum which can be included in a mask.
|
static DbiFlags |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DbiFlags[] |
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 DbiFlags MDB_REVERSEKEY
Keys are strings to be compared in reverse order, from the end of the strings to the beginning. By default, keys are treated as strings and compared from beginning to end.
public static final DbiFlags MDB_DUPSORT
Duplicate keys may be used in the database. Or, from another perspective, keys may have multiple data items, stored in sorted order. By default keys must be unique and may have only a single data item.
public static final DbiFlags MDB_INTEGERKEY
public static final DbiFlags MDB_DUPFIXED
MDB_DUPSORT
, sorted dup items have fixed size.
This flag may only be used in combination with MDB_DUPSORT
. This
option tells the library that the data items for this database are all the
same size, which allows further optimizations in storage and retrieval.
When all data items are the same size, the SeekOp.MDB_GET_MULTIPLE
and SeekOp.MDB_NEXT_MULTIPLE
cursor operations may be used to
retrieve multiple items at once.
public static final DbiFlags MDB_INTEGERDUP
MDB_DUPSORT
, dups are MDB_INTEGERKEY
-style integers.
This option specifies that duplicate data items are binary integers,
similar to MDB_INTEGERKEY
keys.
public static final DbiFlags MDB_REVERSEDUP
MDB_DUPSORT
, use reverse string dups.
This option specifies that duplicate data items should be compared as strings in reverse order.
public static final DbiFlags MDB_CREATE
This option is not allowed in a read-only transaction or a read-only environment.
public static DbiFlags[] values()
for (DbiFlags c : DbiFlags.values()) System.out.println(c);
public static DbiFlags 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.