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