org.apache.accumulo.core.file.blockfile.impl
Class CachableBlockFile.BlockWrite

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by java.io.DataOutputStream
              extended by org.apache.accumulo.core.file.blockfile.impl.CachableBlockFile.BlockWrite
All Implemented Interfaces:
Closeable, DataOutput, Flushable, ABlockWriter
Enclosing class:
CachableBlockFile

public static class CachableBlockFile.BlockWrite
extends DataOutputStream
implements ABlockWriter


Field Summary
 
Fields inherited from class java.io.DataOutputStream
written
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
CachableBlockFile.BlockWrite(BCFile.Writer.BlockAppender ba)
           
 
Method Summary
 void close()
           
 long getCompressedSize()
           
 long getRawSize()
           
 long getStartPos()
           
 DataOutputStream getStream()
           
 
Methods inherited from class java.io.DataOutputStream
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
 
Methods inherited from class java.io.FilterOutputStream
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.io.DataOutput
write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
 

Constructor Detail

CachableBlockFile.BlockWrite

public CachableBlockFile.BlockWrite(BCFile.Writer.BlockAppender ba)
Method Detail

getCompressedSize

public long getCompressedSize()
                       throws IOException
Specified by:
getCompressedSize in interface ABlockWriter
Throws:
IOException

getRawSize

public long getRawSize()
                throws IOException
Specified by:
getRawSize in interface ABlockWriter
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Specified by:
close in interface ABlockWriter
Overrides:
close in class FilterOutputStream
Throws:
IOException

getStream

public DataOutputStream getStream()
                           throws IOException
Specified by:
getStream in interface ABlockWriter
Throws:
IOException

getStartPos

public long getStartPos()
                 throws IOException
Specified by:
getStartPos in interface ABlockWriter
Throws:
IOException


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