public class AvroFileDeltaInputWriter extends Object implements DeltaInputWriter<org.apache.avro.generic.GenericRecord>
DeltaInputWriter that writes avro records to the result file.| 限定符和类型 | 字段和说明 |
|---|---|
static String |
AVRO_EXTENSION |
| 构造器和说明 |
|---|
AvroFileDeltaInputWriter(org.apache.hadoop.conf.Configuration configuration,
String basePath,
String schemaStr,
Long maxFileSize) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
canWrite()
Check whether more data can/should be written.
|
void |
close() |
DeltaWriteStats |
getDeltaWriteStats()
Return the statistics of data written.
|
org.apache.hadoop.fs.FileSystem |
getFs() |
DeltaInputWriter |
getNewWriter()
Return a new instance of this writer.
|
org.apache.hadoop.fs.Path |
getPath() |
void |
writeData(org.apache.avro.generic.GenericRecord iData)
Generate any type of data.
|
public AvroFileDeltaInputWriter(org.apache.hadoop.conf.Configuration configuration,
String basePath,
String schemaStr,
Long maxFileSize)
throws IOException
IOExceptionpublic void writeData(org.apache.avro.generic.GenericRecord iData)
throws IOException
DeltaInputWriterwriteData 在接口中 DeltaInputWriter<org.apache.avro.generic.GenericRecord>IOExceptionpublic boolean canWrite()
DeltaInputWritercanWrite 在接口中 DeltaInputWriter<org.apache.avro.generic.GenericRecord>public void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionpublic DeltaInputWriter getNewWriter() throws IOException
DeltaInputWritergetNewWriter 在接口中 DeltaInputWriter<org.apache.avro.generic.GenericRecord>IOExceptionpublic org.apache.hadoop.fs.FileSystem getFs()
public org.apache.hadoop.fs.Path getPath()
public DeltaWriteStats getDeltaWriteStats()
DeltaInputWritergetDeltaWriteStats 在接口中 DeltaInputWriter<org.apache.avro.generic.GenericRecord>Copyright © 2021 The Apache Software Foundation. All rights reserved.