Package io.trino.hive.formats.avro
Class AvroFileWriter
java.lang.Object
io.trino.hive.formats.avro.AvroFileWriter
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionAvroFileWriter(OutputStream rawOutput, org.apache.avro.Schema schema, AvroTypeManager avroTypeManager, AvroCompressionKind compressionKind, Map<String, String> fileMetadata, List<String> names, List<Type> types) -
Method Summary
-
Constructor Details
-
AvroFileWriter
public AvroFileWriter(OutputStream rawOutput, org.apache.avro.Schema schema, AvroTypeManager avroTypeManager, AvroCompressionKind compressionKind, Map<String, String> fileMetadata, List<String> names, List<Type> types) throws IOException, AvroTypeException- Throws:
IOExceptionAvroTypeException
-
-
Method Details
-
write
- Throws:
IOException
-
getRetainedSize
public long getRetainedSize() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-