Class SegmentBlob
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object object)
@Nullable java.lang.String
getBlobId()
static java.lang.Iterable<SegmentId>
getBulkSegmentIds(org.apache.jackrabbit.oak.api.Blob blob)
java.lang.String
getContentIdentity()
@NotNull GCGeneration
getGcGeneration()
Get the underlying segment's gc generation.@NotNull java.io.InputStream
getNewStream()
RecordId
getRecordId()
Returns the identifier of this record.protected int
getRecordNumber()
@Nullable java.lang.String
getReference()
protected Segment
getSegment()
Returns the segment that contains this record.int
hashCode()
boolean
isExternal()
boolean
isInlined()
long
length()
static @Nullable java.lang.String
readBlobId(@NotNull Segment segment, int recordNumber)
java.lang.String
toString()
-
-
-
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 interfaceorg.apache.jackrabbit.oak.api.Blob
-
length
public long length()
- Specified by:
length
in interfaceorg.apache.jackrabbit.oak.api.Blob
-
getReference
@Nullable public @Nullable java.lang.String getReference()
- Specified by:
getReference
in interfaceorg.apache.jackrabbit.oak.api.Blob
-
getContentIdentity
public java.lang.String getContentIdentity()
- Specified by:
getContentIdentity
in interfaceorg.apache.jackrabbit.oak.api.Blob
-
isInlined
public boolean isInlined()
- Specified by:
isInlined
in interfaceorg.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 classjava.lang.Object
-
-