public class SegmentBlob extends Object implements org.apache.jackrabbit.oak.api.Blob
| Modifier and Type | Method and Description |
|---|---|
SegmentBlob |
clone(SegmentWriter writer,
boolean cloneLargeBinaries) |
boolean |
equals(Object object) |
String |
getBlobId() |
static Iterable<SegmentId> |
getBulkSegmentIds(org.apache.jackrabbit.oak.api.Blob blob) |
String |
getContentIdentity() |
InputStream |
getNewStream() |
protected int |
getOffset()
Returns the segment offset of this record.
|
protected int |
getOffset(int position)
Returns the segment offset of the given byte position in this record.
|
protected int |
getOffset(int bytes,
int ids)
Returns the segment offset of a byte position in this record.
|
RecordId |
getRecordId()
Returns the identifier of this record.
|
String |
getReference() |
protected Segment |
getSegment()
Returns the segment that contains this record.
|
protected SegmentTracker |
getTracker()
Returns the tracker of the segment that contains this record.
|
int |
hashCode() |
boolean |
isExternal() |
long |
length() |
String |
toString() |
protected boolean |
wasCompactedTo(org.apache.jackrabbit.oak.plugins.segment.Record after) |
public static Iterable<SegmentId> getBulkSegmentIds(org.apache.jackrabbit.oak.api.Blob blob)
@Nonnull public InputStream getNewStream()
getNewStream in interface org.apache.jackrabbit.oak.api.Blobpublic long length()
length in interface org.apache.jackrabbit.oak.api.Blob@CheckForNull public String getReference()
getReference in interface org.apache.jackrabbit.oak.api.Blobpublic String getContentIdentity()
getContentIdentity in interface org.apache.jackrabbit.oak.api.Blobpublic boolean isExternal()
public String getBlobId()
public SegmentBlob clone(SegmentWriter writer, boolean cloneLargeBinaries) throws IOException
IOExceptionpublic boolean equals(Object object)
public int hashCode()
protected boolean wasCompactedTo(org.apache.jackrabbit.oak.plugins.segment.Record after)
protected SegmentTracker getTracker()
protected Segment getSegment()
public RecordId getRecordId()
protected final int getOffset()
protected final int getOffset(int position)
position - byte position within this recordprotected final int getOffset(int bytes,
int ids)
bytes - number of raw bytes before the positionids - number of record identifiers before the positionCopyright © 2012-2016 The Apache Software Foundation. All Rights Reserved.