uk.org.ogsadai.activity.indexedfiles
Class OMIMIndexWriter

java.lang.Object
  |
  +--uk.org.ogsadai.activity.indexedfiles.FlatFileIndexWriter
        |
        +--uk.org.ogsadai.activity.indexedfiles.OMIMIndexWriter

public class OMIMIndexWriter
extends FlatFileIndexWriter

Author:
The OGSA-DAI Team. Indexes OMIM data files.

Field Summary
 
Fields inherited from class uk.org.ogsadai.activity.indexedfiles.FlatFileIndexWriter
DATA_FILE_NAME, DATA_LENGTH, DATA_OFFSET, mIndexWriter
 
Constructor Summary
OMIMIndexWriter(org.apache.lucene.index.IndexWriter indexwriter)
           
 
Method Summary
 java.lang.String[] getFields()
          Gets the indexed fields.
 void indexFiles(java.io.File[] files, java.lang.String[] dirs)
          Indexes an array of flat files.
 void setFields(java.lang.String[] fields)
          Sets the fields for indexing
 
Methods inherited from class uk.org.ogsadai.activity.indexedfiles.FlatFileIndexWriter
getIndexWriter, setIndexWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OMIMIndexWriter

public OMIMIndexWriter(org.apache.lucene.index.IndexWriter indexwriter)
Parameters:
indexwriter - a org.apache.lucene.index.IndexWriter which is open and ready for writing
Method Detail

indexFiles

public void indexFiles(java.io.File[] files,
                       java.lang.String[] dirs)
                throws java.lang.Exception
Description copied from class: FlatFileIndexWriter
Indexes an array of flat files.

Specified by:
indexFiles in class FlatFileIndexWriter
Parameters:
files - an array of flat files to be indexed
dirs - directories containing the files such that files[i] is located in relativeDirectories[i]
Throws:
java.lang.Exception - if a problem occurs

getFields

public java.lang.String[] getFields()
Description copied from class: FlatFileIndexWriter
Gets the indexed fields.

Specified by:
getFields in class FlatFileIndexWriter
Returns:
names of the fields for indexing

setFields

public void setFields(java.lang.String[] fields)
Description copied from class: FlatFileIndexWriter
Sets the fields for indexing

Specified by:
setFields in class FlatFileIndexWriter
Parameters:
fields - The fields that are being indexed.