|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terrier.structures.collections.FSOrderedMapFile.MultiFSOMapWriter
public static class FSOrderedMapFile.MultiFSOMapWriter
Writes out a FSOMapFile, but assumes that input data need not be sorted by key.
| Field Summary | |
|---|---|
protected FixedSizeWriteableFactory |
keyFactory
|
protected FixedSizeWriteableFactory |
valueFactory
|
| Constructor Summary | |
|---|---|
FSOrderedMapFile.MultiFSOMapWriter(String filename,
int numberOfValuesInMemory,
FixedSizeWriteableFactory _keyFactory,
FixedSizeWriteableFactory _valueFactory)
Constructs an instance of the MultiFSOMapWriter. |
|
FSOrderedMapFile.MultiFSOMapWriter(String filename,
int numberOfValuesInMemory,
FixedSizeWriteableFactory _keyFactory,
FixedSizeWriteableFactory _valueFactory,
boolean dupsAllows)
Constructs an instance of the MultiFSOMapWriter. |
|
| Method Summary | |
|---|---|
void |
close()
|
void |
flush()
|
protected void |
flushCache()
|
protected void |
mergeTwo(int id1,
int id2,
String filename)
|
void |
write(org.apache.hadoop.io.WritableComparable key,
org.apache.hadoop.io.Writable value)
Add this (key, value) tuple to the MapFile |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected FixedSizeWriteableFactory keyFactory
protected FixedSizeWriteableFactory valueFactory
| Constructor Detail |
|---|
public FSOrderedMapFile.MultiFSOMapWriter(String filename,
int numberOfValuesInMemory,
FixedSizeWriteableFactory _keyFactory,
FixedSizeWriteableFactory _valueFactory)
filename - numberOfValuesInMemory - _keyFactory - _valueFactory -
public FSOrderedMapFile.MultiFSOMapWriter(String filename,
int numberOfValuesInMemory,
FixedSizeWriteableFactory _keyFactory,
FixedSizeWriteableFactory _valueFactory,
boolean dupsAllows)
filename - numberOfValuesInMemory - _keyFactory - _valueFactory - dupsAllows - are duplicates allowed| Method Detail |
|---|
public void write(org.apache.hadoop.io.WritableComparable key,
org.apache.hadoop.io.Writable value)
throws IOException
write in interface FSOrderedMapFile.MapFileWriterIOException
public void flush()
throws IOException
flush in interface FlushableIOException
protected void flushCache()
throws IOException
IOException
public void close()
throws IOException
close in interface CloseableIOException
protected void mergeTwo(int id1,
int id2,
String filename)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||