Package org.projectnessie.server.store
Class TableCommitMetaStoreWorker
- java.lang.Object
-
- org.projectnessie.server.store.TableCommitMetaStoreWorker
-
- All Implemented Interfaces:
StoreWorker<Contents,CommitMeta,Contents.Type>
public class TableCommitMetaStoreWorker extends Object implements StoreWorker<Contents,CommitMeta,Contents.Type>
-
-
Constructor Summary
Constructors Constructor Description TableCommitMetaStoreWorker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetId(Contents contents)Serializer<CommitMeta>getMetadataSerializer()BytegetPayload(Contents contents)Contents.TypegetType(Byte payload)booleanrequiresGlobalState(Contents contents)com.google.protobuf.ByteStringtoStoreGlobalState(Contents contents)com.google.protobuf.ByteStringtoStoreOnReferenceState(Contents contents)ContentsvalueFromStore(com.google.protobuf.ByteString onReferenceValue, Optional<com.google.protobuf.ByteString> globalState)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.projectnessie.versioned.StoreWorker
getType
-
-
-
-
Method Detail
-
toStoreOnReferenceState
public com.google.protobuf.ByteString toStoreOnReferenceState(Contents contents)
- Specified by:
toStoreOnReferenceStatein interfaceStoreWorker<Contents,CommitMeta,Contents.Type>
-
toStoreGlobalState
public com.google.protobuf.ByteString toStoreGlobalState(Contents contents)
- Specified by:
toStoreGlobalStatein interfaceStoreWorker<Contents,CommitMeta,Contents.Type>
-
valueFromStore
public Contents valueFromStore(com.google.protobuf.ByteString onReferenceValue, Optional<com.google.protobuf.ByteString> globalState)
- Specified by:
valueFromStorein interfaceStoreWorker<Contents,CommitMeta,Contents.Type>
-
getId
public String getId(Contents contents)
- Specified by:
getIdin interfaceStoreWorker<Contents,CommitMeta,Contents.Type>
-
getPayload
public Byte getPayload(Contents contents)
- Specified by:
getPayloadin interfaceStoreWorker<Contents,CommitMeta,Contents.Type>
-
getType
public Contents.Type getType(Byte payload)
- Specified by:
getTypein interfaceStoreWorker<Contents,CommitMeta,Contents.Type>
-
requiresGlobalState
public boolean requiresGlobalState(Contents contents)
- Specified by:
requiresGlobalStatein interfaceStoreWorker<Contents,CommitMeta,Contents.Type>
-
getMetadataSerializer
public Serializer<CommitMeta> getMetadataSerializer()
- Specified by:
getMetadataSerializerin interfaceStoreWorker<Contents,CommitMeta,Contents.Type>
-
-