Enum CommitLogEntry.KeyListVariant
- java.lang.Object
-
- java.lang.Enum<CommitLogEntry.KeyListVariant>
-
- org.projectnessie.versioned.persist.adapter.CommitLogEntry.KeyListVariant
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CommitLogEntry.KeyListVariant>
- Enclosing interface:
- CommitLogEntry
public static enum CommitLogEntry.KeyListVariant extends java.lang.Enum<CommitLogEntry.KeyListVariant>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EMBEDDED_AND_EXTERNAL_MRUThe variant in which Nessie versions 0.10.0..0.30.0 writeembedded key-listandkey-list entities.OPEN_ADDRESSINGThe variant in which Nessie versions since 0.31.0 maintainsembedded key-listandkey-list entities.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CommitLogEntry.KeyListVariantvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CommitLogEntry.KeyListVariant[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EMBEDDED_AND_EXTERNAL_MRU
public static final CommitLogEntry.KeyListVariant EMBEDDED_AND_EXTERNAL_MRU
The variant in which Nessie versions 0.10.0..0.30.0 writeembedded key-listandkey-list entities.Most recently updated
KeyListEntrys appear first.The
embedded key-listis filled first up toDatabaseAdapterConfig.getMaxKeyListSize(), moreKeyListEntrys are written to "external"key-list entitieswith their IDs inCommitLogEntry.getKeyListsIds().
-
OPEN_ADDRESSING
public static final CommitLogEntry.KeyListVariant OPEN_ADDRESSING
The variant in which Nessie versions since 0.31.0 maintainsembedded key-listandkey-list entities.KeyListEntrys are maintained as an open-addressing hash map withContentKeyas the map key.That open-addressing hash map is split into multiple segments, if necessary.
The first segment is represented by the
embedded key-listwith a serialized size goal up toDatabaseAdapterConfig.getMaxKeyListSize(). All following segments have a serialized size up toDatabaseAdapterConfig.getMaxKeyListEntitySize()as the goal.Maximum size constraints are fulfilled using a best-effort approach.
-
-
Method Detail
-
values
public static CommitLogEntry.KeyListVariant[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CommitLogEntry.KeyListVariant c : CommitLogEntry.KeyListVariant.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommitLogEntry.KeyListVariant valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-