Package io.trino.plugin.kafka
Class KafkaPageSink
- java.lang.Object
-
- io.trino.plugin.kafka.KafkaPageSink
-
- All Implemented Interfaces:
ConnectorPageSink
public class KafkaPageSink extends Object implements ConnectorPageSink
-
-
Field Summary
-
Fields inherited from interface io.trino.spi.connector.ConnectorPageSink
NOT_BLOCKED
-
-
Constructor Summary
Constructors Constructor Description KafkaPageSink(String topicName, List<KafkaColumnHandle> columns, RowEncoder keyEncoder, RowEncoder messageEncoder, KafkaProducerFactory producerFactory, ConnectorSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabort()CompletableFuture<?>appendPage(Page page)CompletableFuture<Collection<io.airlift.slice.Slice>>finish()longgetCompletedBytes()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.trino.spi.connector.ConnectorPageSink
getMemoryUsage, getValidationCpuNanos
-
-
-
-
Constructor Detail
-
KafkaPageSink
public KafkaPageSink(String topicName, List<KafkaColumnHandle> columns, RowEncoder keyEncoder, RowEncoder messageEncoder, KafkaProducerFactory producerFactory, ConnectorSession session)
-
-
Method Detail
-
getCompletedBytes
public long getCompletedBytes()
- Specified by:
getCompletedBytesin interfaceConnectorPageSink
-
appendPage
public CompletableFuture<?> appendPage(Page page)
- Specified by:
appendPagein interfaceConnectorPageSink
-
finish
public CompletableFuture<Collection<io.airlift.slice.Slice>> finish()
- Specified by:
finishin interfaceConnectorPageSink
-
abort
public void abort()
- Specified by:
abortin interfaceConnectorPageSink
-
-