Class MultiLevelIndex.BufferedWriter
- java.lang.Object
-
- org.apache.accumulo.core.file.rfile.MultiLevelIndex.BufferedWriter
-
- Enclosing class:
- MultiLevelIndex
public static class MultiLevelIndex.BufferedWriter extends Object
this class buffers writes to the index so that chunks of index blocks are contiguous in the file instead of having index blocks sprinkled throughout the file making scans of the entire index slow.
-
-
Constructor Summary
Constructors Constructor Description BufferedWriter(MultiLevelIndex.Writer writer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Key key, int data, long offset, long compressedSize, long rawSize)
void
addLast(Key key, int data, long offset, long compressedSize, long rawSize)
void
close(DataOutput out)
-
-
-
Constructor Detail
-
BufferedWriter
public BufferedWriter(MultiLevelIndex.Writer writer)
-
-
Method Detail
-
add
public void add(Key key, int data, long offset, long compressedSize, long rawSize) throws IOException
- Throws:
IOException
-
addLast
public void addLast(Key key, int data, long offset, long compressedSize, long rawSize) throws IOException
- Throws:
IOException
-
close
public void close(DataOutput out) throws IOException
- Throws:
IOException
-
-