Class LedgerMetadataUtils


  • public class LedgerMetadataUtils
    extends java.lang.Object
    Utilities for working with ledger metadata.
    • Field Detail

      • LOG

        static final org.slf4j.Logger LOG
    • Constructor Detail

      • LedgerMetadataUtils

        public LedgerMetadataUtils()
    • Method Detail

      • getNextEnsembleChange

        static long getNextEnsembleChange​(LedgerMetadata metadata,
                                          long entryId)
        the entry id greater than the given entry-id at which the next ensemble change takes place.
        Parameters:
        entryId -
        Returns:
        the entry id of the next ensemble change (-1 if no further ensemble changes)
      • getLastEnsembleKey

        static java.lang.Long getLastEnsembleKey​(LedgerMetadata metadata)
      • shouldStoreCtime

        public static boolean shouldStoreCtime​(LedgerMetadata metadata)