Class FDBIndexedRecord<M extends Message>

    • Method Detail

      • getIndex

        @Nonnull
        public Index getIndex()
        Get the index for this record.
        Returns:
        the index that contained the entry pointing to this record
      • getIndexEntry

        @Nonnull
        public IndexEntry getIndexEntry()
        Get the index entry for this record.
        Returns:
        the index entry that pointed to this record
      • hasStoredRecord

        public boolean hasStoredRecord()
        When scanning for orphaned index entries, this method must be used to determine whether or not a record exists before calling getStoredRecord().
        Returns:
        true if this record has an FDBStoredRecord
      • getRecord

        @Nonnull
        public M getRecord()
        Description copied from interface: FDBRecord
        Get the Protobuf message form of this record.
        Specified by:
        getRecord in interface FDBRecord<M extends Message>
        Returns:
        the Protobuf message for this record
      • hasVersion

        public boolean hasVersion()
        Description copied from interface: FDBRecord
        Get whether a FDBRecordVersion has been set for this StoredRecord.
        Specified by:
        hasVersion in interface FDBRecord<M extends Message>
        Returns:
        true if this record has a version
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getKeyCount

        public int getKeyCount()
        Description copied from interface: FDBStoredSizes
        Get the number of keys used to store this record.
        Specified by:
        getKeyCount in interface FDBStoredSizes
        Returns:
        number of keys
      • getKeySize

        public int getKeySize()
        Description copied from interface: FDBStoredSizes
        Get the size in bytes of all keys used to store this record.
        Specified by:
        getKeySize in interface FDBStoredSizes
        Returns:
        size in bytes
      • getValueSize

        public int getValueSize()
        Description copied from interface: FDBStoredSizes
        Get the size in bytes of all values used to store this record.
        Specified by:
        getValueSize in interface FDBStoredSizes
        Returns:
        size in bytes
      • isSplit

        public boolean isSplit()
        Description copied from interface: FDBStoredSizes
        Get whether this record is split between two or more key-value pairs.
        Specified by:
        isSplit in interface FDBStoredSizes
        Returns:
        true if split
      • isVersionedInline

        public boolean isVersionedInline()
        Description copied from interface: FDBStoredSizes
        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.
        Specified by:
        isVersionedInline in interface FDBStoredSizes
        Returns:
        true if this record is stored with a version in-line