org.galagosearch.core.index
Class DocumentNameReader

java.lang.Object
  extended by org.galagosearch.core.index.DocumentNameReader

public class DocumentNameReader
extends java.lang.Object

Reads a binary file of document names produced by DocumentNameWriter. The names are loaded into RAM for quick access.

Author:
trevor

Constructor Summary
DocumentNameReader(java.lang.String filename)
          Creates a new instance of DocumentNameReader
 
Method Summary
 java.lang.String get(int index)
           
 void read(java.io.DataInputStream input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentNameReader

public DocumentNameReader(java.lang.String filename)
                   throws java.io.IOException
Creates a new instance of DocumentNameReader

Throws:
java.io.IOException
Method Detail

get

public java.lang.String get(int index)

read

public void read(java.io.DataInputStream input)
          throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2009. All Rights Reserved.