Interface CommitLogEntry
-
- All Superinterfaces:
org.projectnessie.versioned.Hashable
@Immutable public interface CommitLogEntry extends org.projectnessie.versioned.HashableRepresents a commit-log-entry stored in the database.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classCommitLogEntry.KeyListVariant
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.List<org.projectnessie.versioned.Hash>getAdditionalParents()longgetCommitSeq()Monotonically increasing counter representing the number of commits since the "beginning of time.longgetCreatedTime()Creation timestamp in microseconds since epoch.java.util.List<org.projectnessie.model.ContentKey>getDeletes()List of "unchanged" keys, fromDeletecommit operations.org.projectnessie.versioned.HashgetHash()KeyListgetKeyList()The list of all "reachable" or "known"ContentKeys up to this commit-log-entry's parent commit consists of all entries in thisKeyListplus theKeyListEntitys viagetKeyListsIds().java.lang.IntegergetKeyListBucketCount()The cumulative total of buckets across all segments.intgetKeyListDistance()Number of commits since the last complete key-list.java.util.List<java.lang.Integer>getKeyListEntityOffsets()The indices of the first occupied bucket in each non-embedded segment of the key list.java.lang.FloatgetKeyListLoadFactor()Load factor for key lists hashed using open-addressing.java.util.List<org.projectnessie.versioned.Hash>getKeyListsIds()IDs of for the linkedKeyListEntitythat, together withgetKeyList()make the completeContentKeyfor this commit.default CommitLogEntry.KeyListVariantgetKeyListVariant()org.projectnessie.nessie.relocated.protobuf.ByteStringgetMetadata()Serialized commit-metadata.java.util.List<org.projectnessie.versioned.Hash>getParents()Zero, one or more parent-entry hashes of this commit, nearest parent first.java.util.List<KeyWithBytes>getPuts()List of allPutoperations, with their keys, content-types and serializedContent.default booleanhasKeySummary()static CommitLogEntryof(long createdTime, org.projectnessie.versioned.Hash hash, long commitSeq, java.lang.Iterable<org.projectnessie.versioned.Hash> parents, org.projectnessie.nessie.relocated.protobuf.ByteString metadata, java.lang.Iterable<KeyWithBytes> puts, java.lang.Iterable<org.projectnessie.model.ContentKey> deletes, int keyListDistance, KeyList keyList, java.lang.Iterable<org.projectnessie.versioned.Hash> keyListIds, java.lang.Iterable<java.lang.Integer> keyListEntityOffsets, java.lang.Iterable<org.projectnessie.versioned.Hash> additionalParents)
-
-
-
Method Detail
-
getCreatedTime
long getCreatedTime()
Creation timestamp in microseconds since epoch.
-
getHash
org.projectnessie.versioned.Hash getHash()
- Specified by:
getHashin interfaceorg.projectnessie.versioned.Hashable
-
getCommitSeq
long getCommitSeq()
Monotonically increasing counter representing the number of commits since the "beginning of time.
-
getParents
java.util.List<org.projectnessie.versioned.Hash> getParents()
Zero, one or more parent-entry hashes of this commit, nearest parent first.
-
getMetadata
org.projectnessie.nessie.relocated.protobuf.ByteString getMetadata()
Serialized commit-metadata.
-
getPuts
java.util.List<KeyWithBytes> getPuts()
List of allPutoperations, with their keys, content-types and serializedContent.
-
getDeletes
java.util.List<org.projectnessie.model.ContentKey> getDeletes()
List of "unchanged" keys, fromDeletecommit operations.
-
getKeyList
@Nullable @Nullable KeyList getKeyList()
The list of all "reachable" or "known"ContentKeys up to this commit-log-entry's parent commit consists of all entries in thisKeyListplus theKeyListEntitys viagetKeyListsIds().This key-list checkpoint, if present, does not contain the key-changes in this entry in
getPuts()andgetDeletes().
-
getKeyListsIds
java.util.List<org.projectnessie.versioned.Hash> getKeyListsIds()
IDs of for the linkedKeyListEntitythat, together withgetKeyList()make the completeContentKeyfor this commit.
-
getKeyListEntityOffsets
@Nullable @Nullable java.util.List<java.lang.Integer> getKeyListEntityOffsets()
The indices of the first occupied bucket in each non-embedded segment of the key list.
-
getKeyListLoadFactor
@Nullable @Nullable java.lang.Float getKeyListLoadFactor()
Load factor for key lists hashed using open-addressing.This is a user-configured value, typically on
(0, 1). In practice, key lists may be hashed at a lower effective load factor than configured here (e.g. for alignment), but generally not a higher one.
-
getKeyListBucketCount
@Nullable @Nullable java.lang.Integer getKeyListBucketCount()
The cumulative total of buckets across all segments.This is generally much greater than the segment count. Addressable buckets have indices on the interval
[0, this value).
-
getKeyListDistance
int getKeyListDistance()
Number of commits since the last complete key-list.
-
getAdditionalParents
java.util.List<org.projectnessie.versioned.Hash> getAdditionalParents()
-
getKeyListVariant
@Default default CommitLogEntry.KeyListVariant getKeyListVariant()
-
hasKeySummary
default boolean hasKeySummary()
-
of
static CommitLogEntry of(long createdTime, org.projectnessie.versioned.Hash hash, long commitSeq, java.lang.Iterable<org.projectnessie.versioned.Hash> parents, org.projectnessie.nessie.relocated.protobuf.ByteString metadata, java.lang.Iterable<KeyWithBytes> puts, java.lang.Iterable<org.projectnessie.model.ContentKey> deletes, int keyListDistance, KeyList keyList, java.lang.Iterable<org.projectnessie.versioned.Hash> keyListIds, java.lang.Iterable<java.lang.Integer> keyListEntityOffsets, java.lang.Iterable<org.projectnessie.versioned.Hash> additionalParents)
-
-