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).
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.
|
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() |
@Nonnull public String getName()
getName
in interface org.apache.jackrabbit.oak.api.PropertyState
@Nonnull public org.apache.jackrabbit.oak.api.Type<?> getType()
getType
in interface org.apache.jackrabbit.oak.api.PropertyState
public boolean isArray()
isArray
in interface org.apache.jackrabbit.oak.api.PropertyState
public 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.PropertyState
public 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.PropertyState
public long size(int index)
size
in interface org.apache.jackrabbit.oak.api.PropertyState
public boolean equals(Object object)
public int hashCode()
public String toString()
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.