org.apache.hadoop.contrib.index.lucene
Class RAMDirectoryUtil
java.lang.Object
org.apache.hadoop.contrib.index.lucene.RAMDirectoryUtil
public class RAMDirectoryUtil
- extends java.lang.Object
A utility class which writes an index in a ram dir into a DataOutput and
read from a DataInput an index into a ram dir.
Method Summary |
static void |
readRAMFiles(java.io.DataInput in,
org.apache.lucene.store.RAMDirectory dir)
Read a number of files from a data input to a ram directory. |
static void |
writeRAMFiles(java.io.DataOutput out,
org.apache.lucene.store.RAMDirectory dir,
java.lang.String[] names)
Write a number of files from a ram directory to a data output. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RAMDirectoryUtil
public RAMDirectoryUtil()
writeRAMFiles
public static void writeRAMFiles(java.io.DataOutput out,
org.apache.lucene.store.RAMDirectory dir,
java.lang.String[] names)
throws java.io.IOException
- Write a number of files from a ram directory to a data output.
- Parameters:
out
- the data outputdir
- the ram directorynames
- the names of the files to write
- Throws:
java.io.IOException
readRAMFiles
public static void readRAMFiles(java.io.DataInput in,
org.apache.lucene.store.RAMDirectory dir)
throws java.io.IOException
- Read a number of files from a data input to a ram directory.
- Parameters:
in
- the data inputdir
- the ram directory
- Throws:
java.io.IOException
Copyright © 2009 The Apache Software Foundation