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:
java.io.Closeable, java.io.DataOutput, java.io.Flushable, ABlockWriter
Enclosing class:
CachableBlockFile

public static class CachableBlockFile.BlockWrite
extends java.io.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()
           
 java.io.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 java.io.IOException
Specified by:
getCompressedSize in interface ABlockWriter
Throws:
java.io.IOException

getRawSize

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

close

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

getStream

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


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