Type Parameters:
T - Type of atomic operation metadata.
All Superinterfaces:
Serializable
All Known Implementing Classes:
ORecordOperationMetadata

public interface OAtomicOperationMetadata<T> extends Serializable
Basic interface for any kind of metadata which may be stored as part of atomic operation.

All metadata are associated with key, if metadata with the same key is put inside of atomic operation previous instance of metadata will be overwritten.

To add metadata inside of atomic operation use OAtomicOperation.addMetadata(com.orientechnologies.orient.core.storage.impl.local.paginated.atomicoperations.OAtomicOperationMetadata).

To read metadata from atomic operation use OAtomicOperation.getMetadata(java.lang.String)

If you wish to read metadata stored inside of atomic operation you may read them from OAtomicUnitEndRecord.getAtomicOperationMetadata()

If you add new metadata implementation, you have to add custom serialization method in OAtomicUnitEndRecord class.

  • Method Summary

    Modifier and Type
    Method
    Description
     
     
  • Method Details

    • getKey

      String getKey()
      Returns:
      Key associated with given metadata
    • getValue

      T getValue()
      Returns:
      Metadata value.