public class SegmentPropertyState extends Object implements org.apache.jackrabbit.oak.api.PropertyState
Depending on the property type, this is a record of type "VALUE" or a record of type "LIST" (for arrays).
| Constructor and Description |
|---|
SegmentPropertyState(RecordId id,
org.apache.jackrabbit.oak.plugins.segment.PropertyTemplate template) |
| Modifier and Type | Method and Description |
|---|---|
int |
count() |
boolean |
equals(Object object) |
String |
getName() |
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.
|
protected Segment |
getSegment()
Returns the segment that contains this record.
|
protected SegmentTracker |
getTracker()
Returns the tracker of the segment that contains this record.
|
org.apache.jackrabbit.oak.api.Type<?> |
getType() |
<T> T |
getValue(org.apache.jackrabbit.oak.api.Type<T> type) |
<T> T |
getValue(org.apache.jackrabbit.oak.api.Type<T> type,
int index) |
int |
hashCode() |
boolean |
isArray() |
long |
size() |
long |
size(int index) |
String |
toString() |
protected boolean |
wasCompactedTo(org.apache.jackrabbit.oak.plugins.segment.Record after) |
public SegmentPropertyState(RecordId id, org.apache.jackrabbit.oak.plugins.segment.PropertyTemplate template)
@Nonnull public String getName()
getName in interface org.apache.jackrabbit.oak.api.PropertyStatepublic org.apache.jackrabbit.oak.api.Type<?> getType()
getType in interface org.apache.jackrabbit.oak.api.PropertyStatepublic boolean isArray()
isArray in interface org.apache.jackrabbit.oak.api.PropertyStatepublic int count()
count in interface org.apache.jackrabbit.oak.api.PropertyState@Nonnull public <T> T getValue(org.apache.jackrabbit.oak.api.Type<T> type)
getValue in interface org.apache.jackrabbit.oak.api.PropertyStatepublic long size()
size in interface org.apache.jackrabbit.oak.api.PropertyState@Nonnull public <T> T getValue(org.apache.jackrabbit.oak.api.Type<T> type, int index)
getValue in interface org.apache.jackrabbit.oak.api.PropertyStatepublic long size(int index)
size in interface org.apache.jackrabbit.oak.api.PropertyStatepublic boolean equals(Object object)
public int hashCode()
public String toString()
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.