Interface FDBStoredSizes

    • Method Detail

      • getKeyCount

        int getKeyCount()
        Get the number of keys used to store this record.
        Returns:
        number of keys
      • getKeySize

        int getKeySize()
        Get the size in bytes of all keys used to store this record.
        Returns:
        size in bytes
      • getValueSize

        int getValueSize()
        Get the size in bytes of all values used to store this record.
        Returns:
        size in bytes
      • isSplit

        boolean isSplit()
        Get whether this record is split between two or more key-value pairs.
        Returns:
        true if split
      • isVersionedInline

        boolean isVersionedInline()
        Get whether this record was stored with an associated version. In particular, this states whether there was a version stored directly with the record in the database, which should only be true if the format version of the database is greater than or equal to FDBRecordStore.SAVE_VERSION_WITH_RECORD_FORMAT_VERSION.
        Returns:
        true if this record is stored with a version in-line
      • addSizeLogInfo

        @API(EXPERIMENTAL)
        default void addSizeLogInfo​(@Nonnull
                                    KeyValueLogMessage msg)
        Add logging information about size information to a log message.
        Parameters:
        msg - the log message to add information to