com.bigdata.mdi
Class SegmentMetadata

java.lang.Object
  extended by com.bigdata.mdi.AbstractResourceMetadata
      extended by com.bigdata.mdi.SegmentMetadata
All Implemented Interfaces:
IResourceMetadata, Params, Externalizable, Serializable, Cloneable

public class SegmentMetadata
extends AbstractResourceMetadata

Metadata for a single IndexSegment.

Version:
$Id: SegmentMetadata.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.bigdata.mdi.AbstractResourceMetadata
log
 
Constructor Summary
SegmentMetadata()
          De-serialization constructor.
SegmentMetadata(File file, UUID uuid, long commitTime)
           
 
Method Summary
 boolean isIndexSegment()
          True iff this resource is an IndexSegment.
 boolean isJournal()
          True iff this resource is a Journal.
 
Methods inherited from class com.bigdata.mdi.AbstractResourceMetadata
equals, equals, getCreateTime, getFile, getParams, getUUID, hashCode, readExternal, toString, writeExternal
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SegmentMetadata

public SegmentMetadata()
De-serialization constructor.


SegmentMetadata

public SegmentMetadata(File file,
                       UUID uuid,
                       long commitTime)
Method Detail

isIndexSegment

public final boolean isIndexSegment()
Description copied from interface: IResourceMetadata
True iff this resource is an IndexSegment. Each IndexSegment contains historical read-only data for exactly one partition of a scale-out index.


isJournal

public final boolean isJournal()
Description copied from interface: IResourceMetadata
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.



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