public class SegmentBlob extends Object implements org.apache.jackrabbit.oak.api.Blob
Modifier and Type | Method and Description |
---|---|
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.
|
int |
hashCode() |
boolean |
isExternal() |
long |
length() |
String |
toString() |
public static Iterable<SegmentId> getBulkSegmentIds(org.apache.jackrabbit.oak.api.Blob blob)
@Nonnull public InputStream getNewStream()
getNewStream
in interface org.apache.jackrabbit.oak.api.Blob
public long length()
length
in interface org.apache.jackrabbit.oak.api.Blob
@CheckForNull public String getReference()
getReference
in interface org.apache.jackrabbit.oak.api.Blob
public String getContentIdentity()
getContentIdentity
in interface org.apache.jackrabbit.oak.api.Blob
public boolean isExternal()
@CheckForNull public String getBlobId()
public boolean equals(Object object)
public int hashCode()
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.