Package org.apache.avro
Class AvroArrayWriter<T>
- java.lang.Object
-
- org.apache.avro.AvroArrayWriter<T>
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable,Consumer<T>,org.spf4j.base.ArrayWriter<T>
@ThreadSafe public final class AvroArrayWriter<T> extends Object implements org.spf4j.base.ArrayWriter<T>
- Author:
- Zoltan Farkas
-
-
Constructor Summary
Constructors Constructor Description AvroArrayWriter(org.apache.avro.io.Encoder encoder, org.apache.avro.io.DatumWriter<T> elementWriter, int bufferSize)AvroArrayWriter(org.apache.avro.io.Encoder encoder, org.apache.avro.io.DatumWriter<T> elementWriter, Class<T> type, int bufferSize)Deprecated.use the other constructor.
-
-
-
Constructor Detail
-
AvroArrayWriter
@Deprecated public AvroArrayWriter(org.apache.avro.io.Encoder encoder, org.apache.avro.io.DatumWriter<T> elementWriter, Class<T> type, int bufferSize)
Deprecated.use the other constructor.
-
AvroArrayWriter
public AvroArrayWriter(org.apache.avro.io.Encoder encoder, org.apache.avro.io.DatumWriter<T> elementWriter, int bufferSize)
-
-
Method Detail
-
write
public void write(T t) throws IOException
- Specified by:
writein interfaceorg.spf4j.base.ArrayWriter<T>- Throws:
IOException
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceorg.spf4j.base.ArrayWriter<T>- Specified by:
flushin interfaceFlushable- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceorg.spf4j.base.ArrayWriter<T>- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-