public class SegmentNodeState extends Object implements org.apache.jackrabbit.oak.spi.state.NodeState
| Constructor and Description |
|---|
SegmentNodeState(RecordId id) |
| Modifier and Type | Method and Description |
|---|---|
SegmentNodeBuilder |
builder() |
boolean |
compareAgainstBaseState(org.apache.jackrabbit.oak.spi.state.NodeState base,
org.apache.jackrabbit.oak.spi.state.NodeStateDiff diff) |
boolean |
equals(Object object) |
boolean |
exists() |
boolean |
getBoolean(String name) |
org.apache.jackrabbit.oak.spi.state.NodeState |
getChildNode(String name) |
long |
getChildNodeCount(long max) |
Iterable<? extends org.apache.jackrabbit.oak.spi.state.ChildNodeEntry> |
getChildNodeEntries() |
Iterable<String> |
getChildNodeNames() |
long |
getLong(String name) |
String |
getName(String name) |
Iterable<String> |
getNames(String name) |
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.
|
Iterable<org.apache.jackrabbit.oak.api.PropertyState> |
getProperties() |
org.apache.jackrabbit.oak.api.PropertyState |
getProperty(String name) |
long |
getPropertyCount() |
RecordId |
getRecordId()
Returns the identifier of this record.
|
protected Segment |
getSegment()
Returns the segment that contains this record.
|
String |
getString(String name) |
Iterable<String> |
getStrings(String name) |
protected SegmentTracker |
getTracker()
Returns the tracker of the segment that contains this record.
|
boolean |
hasChildNode(String name) |
int |
hashCode() |
boolean |
hasProperty(String name) |
String |
toString() |
protected boolean |
wasCompactedTo(org.apache.jackrabbit.oak.plugins.segment.Record after) |
public SegmentNodeState(RecordId id)
public boolean exists()
exists in interface org.apache.jackrabbit.oak.spi.state.NodeStatepublic long getPropertyCount()
getPropertyCount in interface org.apache.jackrabbit.oak.spi.state.NodeStatepublic boolean hasProperty(@Nonnull String name)
hasProperty in interface org.apache.jackrabbit.oak.spi.state.NodeState@CheckForNull public org.apache.jackrabbit.oak.api.PropertyState getProperty(@Nonnull String name)
getProperty in interface org.apache.jackrabbit.oak.spi.state.NodeState@Nonnull public Iterable<org.apache.jackrabbit.oak.api.PropertyState> getProperties()
getProperties in interface org.apache.jackrabbit.oak.spi.state.NodeStatepublic boolean getBoolean(@Nonnull String name)
getBoolean in interface org.apache.jackrabbit.oak.spi.state.NodeStatepublic long getLong(String name)
getLong in interface org.apache.jackrabbit.oak.spi.state.NodeState@CheckForNull public String getString(String name)
getString in interface org.apache.jackrabbit.oak.spi.state.NodeState@Nonnull public Iterable<String> getStrings(@Nonnull String name)
getStrings in interface org.apache.jackrabbit.oak.spi.state.NodeState@CheckForNull public String getName(@Nonnull String name)
getName in interface org.apache.jackrabbit.oak.spi.state.NodeState@Nonnull public Iterable<String> getNames(@Nonnull String name)
getNames in interface org.apache.jackrabbit.oak.spi.state.NodeStatepublic long getChildNodeCount(long max)
getChildNodeCount in interface org.apache.jackrabbit.oak.spi.state.NodeStatepublic boolean hasChildNode(@Nonnull String name)
hasChildNode in interface org.apache.jackrabbit.oak.spi.state.NodeState@Nonnull public org.apache.jackrabbit.oak.spi.state.NodeState getChildNode(@Nonnull String name)
getChildNode in interface org.apache.jackrabbit.oak.spi.state.NodeState@Nonnull public Iterable<String> getChildNodeNames()
getChildNodeNames in interface org.apache.jackrabbit.oak.spi.state.NodeState@Nonnull public Iterable<? extends org.apache.jackrabbit.oak.spi.state.ChildNodeEntry> getChildNodeEntries()
getChildNodeEntries in interface org.apache.jackrabbit.oak.spi.state.NodeState@Nonnull public SegmentNodeBuilder builder()
builder in interface org.apache.jackrabbit.oak.spi.state.NodeStatepublic boolean compareAgainstBaseState(org.apache.jackrabbit.oak.spi.state.NodeState base,
org.apache.jackrabbit.oak.spi.state.NodeStateDiff diff)
compareAgainstBaseState in interface org.apache.jackrabbit.oak.spi.state.NodeStatepublic boolean equals(Object object)
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.