org.apache.accumulo.core.file.rfile
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.
Method Summary |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiLevelIndex.BufferedWriter
public MultiLevelIndex.BufferedWriter(MultiLevelIndex.Writer writer)
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
Copyright © 2015 Apache Accumulo Project. All rights reserved.