Class SegmentBlob

  • All Implemented Interfaces:
    org.apache.jackrabbit.oak.api.Blob

    public class SegmentBlob
    extends Object
    implements org.apache.jackrabbit.oak.api.Blob
    A BLOB (stream of bytes). This is a record of type "VALUE".
    • Method Detail

      • getBulkSegmentIds

        public static Iterable<SegmentId> getBulkSegmentIds​(org.apache.jackrabbit.oak.api.Blob blob)
      • getNewStream

        @NotNull
        public @NotNull InputStream getNewStream()
        Specified by:
        getNewStream in interface org.apache.jackrabbit.oak.api.Blob
      • length

        public long length()
        Specified by:
        length in interface org.apache.jackrabbit.oak.api.Blob
      • getReference

        @Nullable
        public @Nullable String getReference()
        Specified by:
        getReference in interface org.apache.jackrabbit.oak.api.Blob
      • getContentIdentity

        public String getContentIdentity()
        Specified by:
        getContentIdentity in interface org.apache.jackrabbit.oak.api.Blob
      • isInlined

        public boolean isInlined()
        Specified by:
        isInlined in interface org.apache.jackrabbit.oak.api.Blob
      • isExternal

        public boolean isExternal()
      • getBlobId

        @Nullable
        public @Nullable String getBlobId()
      • readBlobId

        @Nullable
        public static @Nullable String readBlobId​(@NotNull
                                                  @NotNull Segment segment,
                                                  int recordNumber)
      • equals

        public boolean equals​(Object object)
      • hashCode

        public int hashCode()
      • getSegment

        protected Segment getSegment()
        Returns the segment that contains this record.
        Returns:
        segment that contains this record
      • getRecordNumber

        protected int getRecordNumber()
      • getRecordId

        public RecordId getRecordId()
        Returns the identifier of this record.
        Returns:
        record identifier
      • getGcGeneration

        @NotNull
        public @NotNull GCGeneration getGcGeneration()
        Get the underlying segment's gc generation. Might cause the segment to get loaded if the generation info is missing
        Returns:
        the segment's gc generation