org.apache.gora.hbase.util
Class HBaseByteInterface.BinaryEncoderWithStream

java.lang.Object
  extended by org.apache.avro.io.Encoder
      extended by org.apache.avro.io.BinaryEncoder
          extended by org.apache.gora.hbase.util.HBaseByteInterface.BinaryEncoderWithStream
All Implemented Interfaces:
Flushable
Enclosing class:
HBaseByteInterface

public static final class HBaseByteInterface.BinaryEncoderWithStream
extends org.apache.avro.io.BinaryEncoder

A BinaryEncoder that exposes the outputstream so that it can be reset every time. (This is a workaround to reuse BinaryEncoder and the buffers, normally provided be EncoderFactory, but this class does not exist yet in the current Avro version).


Field Summary
 
Fields inherited from class org.apache.avro.io.BinaryEncoder
out
 
Constructor Summary
HBaseByteInterface.BinaryEncoderWithStream(OutputStream out)
           
 
Method Summary
protected  OutputStream getOut()
           
 
Methods inherited from class org.apache.avro.io.BinaryEncoder
encodeDouble, encodeDouble, encodeFloat, encodeFloat, encodeLong, encodeLong, flush, init, setItemCount, startItem, writeArrayEnd, writeArrayStart, writeBoolean, writeBytes, writeBytes, writeDouble, writeEnum, writeFixed, writeFloat, writeIndex, writeInt, writeLong, writeMapEnd, writeMapStart, writeNull, writeString
 
Methods inherited from class org.apache.avro.io.Encoder
writeBytes, writeFixed, writeString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HBaseByteInterface.BinaryEncoderWithStream

public HBaseByteInterface.BinaryEncoderWithStream(OutputStream out)
Method Detail

getOut

protected OutputStream getOut()


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