public class SegmentNodeState extends Object implements org.apache.jackrabbit.oak.spi.state.NodeState
EXISTS
Constructor and Description |
---|
SegmentNodeState(@NotNull SegmentReader reader,
@NotNull SegmentWriter writer,
@Nullable org.apache.jackrabbit.oak.spi.blob.BlobStore blobStore,
@NotNull RecordId id) |
SegmentNodeState(@NotNull SegmentReader reader,
@NotNull SegmentWriter writer,
@Nullable org.apache.jackrabbit.oak.spi.blob.BlobStore blobStore,
@NotNull RecordId id,
org.apache.jackrabbit.oak.stats.MeterStats readStats) |
public SegmentNodeState(@NotNull @NotNull SegmentReader reader, @NotNull @NotNull SegmentWriter writer, @Nullable @Nullable org.apache.jackrabbit.oak.spi.blob.BlobStore blobStore, @NotNull @NotNull RecordId id)
public SegmentNodeState(@NotNull @NotNull SegmentReader reader, @NotNull @NotNull SegmentWriter writer, @Nullable @Nullable org.apache.jackrabbit.oak.spi.blob.BlobStore blobStore, @NotNull @NotNull RecordId id, org.apache.jackrabbit.oak.stats.MeterStats readStats)
public String getStableId()
public org.apache.jackrabbit.oak.commons.Buffer getStableIdBytes()
public boolean exists()
exists
in interface org.apache.jackrabbit.oak.spi.state.NodeState
public long getPropertyCount()
getPropertyCount
in interface org.apache.jackrabbit.oak.spi.state.NodeState
public boolean hasProperty(@NotNull @NotNull String name)
hasProperty
in interface org.apache.jackrabbit.oak.spi.state.NodeState
@Nullable public @Nullable org.apache.jackrabbit.oak.api.PropertyState getProperty(@NotNull @NotNull String name)
getProperty
in interface org.apache.jackrabbit.oak.spi.state.NodeState
@NotNull public @NotNull Iterable<org.apache.jackrabbit.oak.api.PropertyState> getProperties()
getProperties
in interface org.apache.jackrabbit.oak.spi.state.NodeState
public boolean getBoolean(@NotNull @NotNull String name)
getBoolean
in interface org.apache.jackrabbit.oak.spi.state.NodeState
public long getLong(String name)
getLong
in interface org.apache.jackrabbit.oak.spi.state.NodeState
@Nullable public @Nullable String getString(String name)
getString
in interface org.apache.jackrabbit.oak.spi.state.NodeState
@NotNull public @NotNull Iterable<String> getStrings(@NotNull @NotNull String name)
getStrings
in interface org.apache.jackrabbit.oak.spi.state.NodeState
@Nullable public @Nullable String getName(@NotNull @NotNull String name)
getName
in interface org.apache.jackrabbit.oak.spi.state.NodeState
@NotNull public @NotNull Iterable<String> getNames(@NotNull @NotNull String name)
getNames
in interface org.apache.jackrabbit.oak.spi.state.NodeState
public long getChildNodeCount(long max)
getChildNodeCount
in interface org.apache.jackrabbit.oak.spi.state.NodeState
public boolean hasChildNode(@NotNull @NotNull String name)
hasChildNode
in interface org.apache.jackrabbit.oak.spi.state.NodeState
@NotNull public @NotNull org.apache.jackrabbit.oak.spi.state.NodeState getChildNode(@NotNull @NotNull String name)
getChildNode
in interface org.apache.jackrabbit.oak.spi.state.NodeState
@NotNull public @NotNull Iterable<String> getChildNodeNames()
getChildNodeNames
in interface org.apache.jackrabbit.oak.spi.state.NodeState
@NotNull public @NotNull Iterable<? extends org.apache.jackrabbit.oak.spi.state.ChildNodeEntry> getChildNodeEntries()
getChildNodeEntries
in interface org.apache.jackrabbit.oak.spi.state.NodeState
@NotNull public @NotNull SegmentNodeBuilder builder()
builder
in interface org.apache.jackrabbit.oak.spi.state.NodeState
public 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.NodeState
public static boolean fastEquals(org.apache.jackrabbit.oak.spi.state.NodeState a, org.apache.jackrabbit.oak.spi.state.NodeState b)
NodeState
instances are equal to each
other. A return value of true
clearly means that the instances
are equal, while a return value of false
doesn't necessarily mean
the instances are not equal. These "false negatives" are an
implementation detail and callers cannot rely on them being stable.public int hashCode()
public boolean equals(Object object)
public String toString()
protected Segment getSegment()
protected int getRecordNumber()
public RecordId getRecordId()
@NotNull public @NotNull GCGeneration getGcGeneration()
Copyright © 2012–2020 The Apache Software Foundation. All rights reserved.