Class SegmentBlob

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

    public class SegmentBlob
    extends java.lang.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 java.lang.Iterable<SegmentId> getBulkSegmentIds​(org.apache.jackrabbit.oak.api.Blob blob)
      • getNewStream

        @NotNull
        public @NotNull java.io.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 java.lang.String getReference()
        Specified by:
        getReference in interface org.apache.jackrabbit.oak.api.Blob
      • getContentIdentity

        public java.lang.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 java.lang.String getBlobId()
      • readBlobId

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

        public boolean equals​(java.lang.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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object