Package io.trino.plugin.kafka
Class KafkaSplit
- java.lang.Object
-
- io.trino.plugin.kafka.KafkaSplit
-
- All Implemented Interfaces:
ConnectorSplit
public class KafkaSplit extends Object implements ConnectorSplit
-
-
Constructor Summary
Constructors Constructor Description KafkaSplit(String topicName, String keyDataFormat, String messageDataFormat, Optional<String> keyDataSchemaContents, Optional<String> messageDataSchemaContents, int partitionId, Range messagesRange, HostAddress leader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<HostAddress>getAddresses()ObjectgetInfo()StringgetKeyDataFormat()Optional<String>getKeyDataSchemaContents()HostAddressgetLeader()StringgetMessageDataFormat()Optional<String>getMessageDataSchemaContents()RangegetMessagesRange()intgetPartitionId()longgetRetainedSizeInBytes()StringgetTopicName()booleanisRemotelyAccessible()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.trino.spi.connector.ConnectorSplit
getSplitWeight
-
-
-
-
Method Detail
-
getTopicName
public String getTopicName()
-
getKeyDataFormat
public String getKeyDataFormat()
-
getMessageDataFormat
public String getMessageDataFormat()
-
getPartitionId
public int getPartitionId()
-
getMessagesRange
public Range getMessagesRange()
-
getLeader
public HostAddress getLeader()
-
isRemotelyAccessible
public boolean isRemotelyAccessible()
- Specified by:
isRemotelyAccessiblein interfaceConnectorSplit
-
getAddresses
public List<HostAddress> getAddresses()
- Specified by:
getAddressesin interfaceConnectorSplit
-
getInfo
public Object getInfo()
- Specified by:
getInfoin interfaceConnectorSplit
-
getRetainedSizeInBytes
public long getRetainedSizeInBytes()
- Specified by:
getRetainedSizeInBytesin interfaceConnectorSplit
-
-