gov.nist.nlpir.irfapps.trec.cran
Class CranfieldDocumentBrafBroker

java.lang.Object
  |
  +--gov.nist.nlpir.irf.broker.PersistenceBroker
        |
        +--gov.nist.nlpir.irf.broker.FileBroker
              |
              +--gov.nist.nlpir.irf.broker.braf.BufferedRandomAccessFileBroker
                    |
                    +--gov.nist.nlpir.irf.broker.braf.DocumentBrafBroker
                          |
                          +--gov.nist.nlpir.irfapps.trec.cran.CranfieldDocumentBrafBroker

public class CranfieldDocumentBrafBroker
extends gov.nist.nlpir.irf.broker.braf.DocumentBrafBroker

This class is a flat file persistent storage broker for CranfieldDocument objects

Version:
$Revision: 1.1 $
Author:
This software was produced by NIST, an agency of the U.S. government, and by statute is not subject to copyright in the United States. Recipients of this software assume all responsibilities associated with its operation, modification and maintenance.

Field Summary
private static CranfieldDocumentBrafBroker broker
           
 
Fields inherited from class gov.nist.nlpir.irf.broker.braf.BufferedRandomAccessFileBroker
openFiles, sizeOfRecord
 
Constructor Summary
CranfieldDocumentBrafBroker()
           
 
Method Summary
 Handle currentObjectAsRecord(java.lang.Object arg)
          Dematerialize the object associated with the designated argument.
 java.lang.Object currentRecordAsObject(java.lang.Object arg)
          Materialize the object associated with the designated argument.
static CranfieldDocumentBrafBroker instance()
          Return the instance of the singleton class: doc file persistence broker, creating one first if one has not already been created.
 
Methods inherited from class gov.nist.nlpir.irf.broker.braf.BufferedRandomAccessFileBroker
, readObject, readRecordFromFile, shutdown, writeObject, writeRecordToFile
 
Methods inherited from class gov.nist.nlpir.irf.broker.FileBroker
addPath, currentObjectAsRecord, dematerialize, dematerialize, materializeWith
 
Methods inherited from class gov.nist.nlpir.irf.broker.PersistenceBroker
getCurrentLocationOfBrokeredStorage, handleOf, handleOf, inCache, objectWith
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

broker

private static CranfieldDocumentBrafBroker broker
Constructor Detail

CranfieldDocumentBrafBroker

public CranfieldDocumentBrafBroker()
Method Detail

instance

public static CranfieldDocumentBrafBroker instance()
Return the instance of the singleton class: doc file persistence broker, creating one first if one has not already been created.
Returns:
the doc file persistence broker

currentRecordAsObject

public java.lang.Object currentRecordAsObject(java.lang.Object arg)
Materialize the object associated with the designated argument. This concrete version will handle any part of the materialization which is specific to the object.
Parameters:
arg - Information needed to materialize the object
Returns:
Materialize the designated object
Overrides:
currentRecordAsObject in class FileBroker

currentObjectAsRecord

public Handle currentObjectAsRecord(java.lang.Object arg)
Dematerialize the object associated with the designated argument. This concrete version will handle any part of the materialization which is specific to the object.
Parameters:
arg - Object to be stored.
Returns:
handle Information needed to materialize the object
Overrides:
currentObjectAsRecord in class FileBroker