com.bigdata.mdi
Class JournalMetadata

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

public class JournalMetadata
extends AbstractResourceMetadata

Metadata required to locate a Journal resource.

Version:
$Id: JournalMetadata.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
JournalMetadata()
          De-serialization constructor.
JournalMetadata(AbstractJournal journal)
          The JournalMetadata state will not change as writes are made on the journal since it does not reflect anything exception the UUID, the filename, and the create time.
JournalMetadata(File file, UUID uuid, long createTime)
           
 
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

JournalMetadata

public JournalMetadata()
De-serialization constructor.


JournalMetadata

public JournalMetadata(AbstractJournal journal)
The JournalMetadata state will not change as writes are made on the journal since it does not reflect anything exception the UUID, the filename, and the create time.

Parameters:
journal - The journal.

JournalMetadata

public JournalMetadata(File file,
                       UUID uuid,
                       long createTime)
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.