com.bigdata.mdi
Interface IResourceMetadata

All Superinterfaces:
Cloneable, Serializable
All Known Implementing Classes:
AbstractResourceMetadata, JournalMetadata, SegmentMetadata

public interface IResourceMetadata
extends Serializable, Cloneable

Interface for metadata about a Journal or IndexSegment.

Version:
$Id: IResourceMetadata.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson

Method Summary
 boolean equals(IResourceMetadata o)
          Compares two resource metadata objects for consistent state.
 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.
 int hashCode()
          The hash code of the resource UUID.
 boolean isIndexSegment()
          True iff this resource is an IndexSegment.
 boolean isJournal()
          True iff this resource is a Journal.
 

Method Detail

isIndexSegment

boolean isIndexSegment()
True iff this resource is an IndexSegment. Each IndexSegment contains historical read-only data for exactly one partition of a scale-out index.


isJournal

boolean isJournal()
True iff this resource is a 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.


getFile

String getFile()
The name of the file containing the resource (this is always relative to some local data directory).

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.


getUUID

UUID getUUID()
The unique identifier for the resource.

See Also:
IRootBlockView#getUUID(), the UUID for an {@link AbstractJournal}., IndexSegmentCheckpoint#segmentUUID, the UUID for an {@link IndexSegment}.

getCreateTime

long getCreateTime()
The commit time associated with the creation of this resource. When the index is an 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.


hashCode

int hashCode()
The hash code of the resource UUID.

Overrides:
hashCode in class Object

equals

boolean equals(IResourceMetadata o)
Compares two resource metadata objects for consistent state.

Parameters:
o -
Returns:


Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.