Class DataWritten
- java.lang.Object
-
- org.apache.iceberg.connect.events.DataWritten
-
- All Implemented Interfaces:
org.apache.avro.generic.GenericContainer
,org.apache.avro.generic.IndexedRecord
,Payload
public class DataWritten extends java.lang.Object implements Payload
A control event payload for events sent by a worker that contains the table data that has been written and is ready to commit.
-
-
Constructor Summary
Constructors Constructor Description DataWritten(org.apache.avro.Schema avroSchema)
DataWritten(Types.StructType partitionType, java.util.UUID commitId, TableReference tableReference, java.util.List<DataFile> dataFiles, java.util.List<DeleteFile> deleteFiles)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.UUID
commitId()
java.util.List<DataFile>
dataFiles()
java.util.List<DeleteFile>
deleteFiles()
java.lang.Object
get(int i)
org.apache.avro.Schema
getSchema()
void
put(int i, java.lang.Object v)
TableReference
tableReference()
PayloadType
type()
Types.StructType
writeSchema()
-
-
-
Constructor Detail
-
DataWritten
public DataWritten(org.apache.avro.Schema avroSchema)
-
DataWritten
public DataWritten(Types.StructType partitionType, java.util.UUID commitId, TableReference tableReference, java.util.List<DataFile> dataFiles, java.util.List<DeleteFile> deleteFiles)
-
-
Method Detail
-
type
public PayloadType type()
-
commitId
public java.util.UUID commitId()
-
tableReference
public TableReference tableReference()
-
dataFiles
public java.util.List<DataFile> dataFiles()
-
deleteFiles
public java.util.List<DeleteFile> deleteFiles()
-
writeSchema
public Types.StructType writeSchema()
- Specified by:
writeSchema
in interfacePayload
-
getSchema
public org.apache.avro.Schema getSchema()
- Specified by:
getSchema
in interfaceorg.apache.avro.generic.GenericContainer
-
put
public void put(int i, java.lang.Object v)
- Specified by:
put
in interfaceorg.apache.avro.generic.IndexedRecord
-
get
public java.lang.Object get(int i)
- Specified by:
get
in interfaceorg.apache.avro.generic.IndexedRecord
-
-