org.apache.accumulo.core.file.rfile
Class MultiLevelIndex.BufferedWriter

java.lang.Object
  extended by 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
MultiLevelIndex.BufferedWriter(MultiLevelIndex.Writer writer)
           
 
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
 

Constructor Detail

MultiLevelIndex.BufferedWriter

public MultiLevelIndex.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


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.