public class SegmentNodeState extends Object implements org.apache.jackrabbit.oak.spi.state.NodeState
EXISTS| Constructor and Description |
|---|
SegmentNodeState(RecordId id) |
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-2018 The Apache Software Foundation. All Rights Reserved.