public final class TransientResourceMetadata extends Object implements IResourceMetadata
Serializable
.Constructor and Description |
---|
TransientResourceMetadata(UUID uuid) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(IResourceMetadata o)
Compares two resource metadata objects for consistent state.
|
long |
getCommitTime()
The commit time of the view from which the caller should read.
|
long |
getCreateTime()
The commit time associated with the creation of this resource.
|
String |
getFile()
The name of the file containing the resource (this is always relative to
some local data directory).
|
UUID |
getUUID()
The unique identifier for the resource.
|
boolean |
isIndexSegment()
True iff this resource is an
IndexSegment . |
boolean |
isJournal()
True iff this resource is a
Journal . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hashCode
public TransientResourceMetadata(UUID uuid)
public boolean isJournal()
IResourceMetadata
Journal
. When the resource is a
Journal
, there will be a named mutable btree on the journal that
is absorbing writes for one or more index partition of a scale-out index.isJournal
in interface IResourceMetadata
public boolean isIndexSegment()
IResourceMetadata
IndexSegment
. Each
IndexSegment
contains historical read-only data for exactly one
partition of a scale-out index.isIndexSegment
in interface IResourceMetadata
public boolean equals(IResourceMetadata o)
IResourceMetadata
equals
in interface IResourceMetadata
public long getCreateTime()
IResourceMetadata
IndexSegment
this is the commit time of the view from
which that IndexSegment
was generated. When the resource is a
Journal
, the create time is the commit time associated with the
journal creation, which is generally an overflow operation. Regardless,
the create time MUST be assigned by the same time source that is used to
assign commit timestamps.getCreateTime
in interface IResourceMetadata
public long getCommitTime()
IResourceMetadata
IndexSegment
, this is always the same as IResourceMetadata.getCreateTime()
. For a Journal
, this may be a specific commit time for a source
in an ILocalBTreeView
. A value of 0L
indicates that
no specific commit time is indicated. For historical journals, this
implies a read from the lastCommitTime on the journal in order to
constitute the view. For the current journal, this implies a read at
whatever timestamp the caller desires.getCommitTime
in interface IResourceMetadata
IndexManager
public String getFile()
IResourceMetadata
Note: This property is primarily used for debugging. It is NOT used by
the ResourceManager
. Instead, the ResourceManager
builds
up the mapping from resource UUID
to local filename during
startup.
getFile
in interface IResourceMetadata
public UUID getUUID()
IResourceMetadata
getUUID
in interface IResourceMetadata
IRootBlockView#getUUID(), the UUID for an {@link AbstractJournal}.
,
IndexSegmentCheckpoint#segmentUUID, the UUID for an
{@link IndexSegment}.
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.