Class FlinkPravegaDynamicTableSource
- java.lang.Object
-
- io.pravega.connectors.flink.dynamic.table.FlinkPravegaDynamicTableSource
-
- All Implemented Interfaces:
org.apache.flink.table.connector.source.abilities.SupportsReadingMetadata
,org.apache.flink.table.connector.source.DynamicTableSource
,org.apache.flink.table.connector.source.ScanTableSource
public class FlinkPravegaDynamicTableSource extends java.lang.Object implements org.apache.flink.table.connector.source.ScanTableSource, org.apache.flink.table.connector.source.abilities.SupportsReadingMetadata
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.flink.table.types.DataType
producedDataType
-
Constructor Summary
Constructors Constructor Description FlinkPravegaDynamicTableSource(org.apache.flink.table.types.DataType physicalDataType, org.apache.flink.table.connector.format.DecodingFormat<org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>> decodingFormat, java.lang.String readerGroupName, PravegaConfig pravegaConfig, java.util.List<StreamWithBoundaries> streams, long readerGroupRefreshTimeMillis, long checkpointInitiateTimeoutMillis, long eventReadTimeoutMillis, int maxOutstandingCheckpointRequest, java.lang.String uid, boolean isStreamingReader, boolean isBounded)
Creates a PravegaDynamicTableSource
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyReadableMetadata(java.util.List<java.lang.String> metadataKeys, org.apache.flink.table.types.DataType producedDataType)
java.lang.String
asSummaryString()
org.apache.flink.table.connector.source.DynamicTableSource
copy()
boolean
equals(java.lang.Object o)
org.apache.flink.table.connector.ChangelogMode
getChangelogMode()
org.apache.flink.table.connector.source.ScanTableSource.ScanRuntimeProvider
getScanRuntimeProvider(org.apache.flink.table.connector.source.ScanTableSource.ScanContext runtimeProviderContext)
int
hashCode()
java.util.Map<java.lang.String,org.apache.flink.table.types.DataType>
listReadableMetadata()
boolean
supportsMetadataProjection()
-
-
-
Constructor Detail
-
FlinkPravegaDynamicTableSource
public FlinkPravegaDynamicTableSource(org.apache.flink.table.types.DataType physicalDataType, org.apache.flink.table.connector.format.DecodingFormat<org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>> decodingFormat, java.lang.String readerGroupName, PravegaConfig pravegaConfig, java.util.List<StreamWithBoundaries> streams, long readerGroupRefreshTimeMillis, long checkpointInitiateTimeoutMillis, long eventReadTimeoutMillis, int maxOutstandingCheckpointRequest, java.lang.String uid, boolean isStreamingReader, boolean isBounded)
Creates a PravegaDynamicTableSource
.- Parameters:
physicalDataType
- source produced data typedecodingFormat
- scan format for decoding records from PravegareaderGroupName
- the reader group namepravegaConfig
- Pravega connection configurationstreams
- list of Pravega source streams with start and end streamcutsuid
- uid of the table sourcereaderGroupRefreshTimeMillis
- refresh interval for reader groupcheckpointInitiateTimeoutMillis
- timeout for call that initiates the Pravega checkpointeventReadTimeoutMillis
- timeout for event read callmaxOutstandingCheckpointRequest
- maximum outstanding Pravega checkpoint requestsisStreamingReader
- flag to determine streaming or batch readisBounded
- flag to determine if the source stream is bounded
-
-
Method Detail
-
getChangelogMode
public org.apache.flink.table.connector.ChangelogMode getChangelogMode()
- Specified by:
getChangelogMode
in interfaceorg.apache.flink.table.connector.source.ScanTableSource
-
getScanRuntimeProvider
public org.apache.flink.table.connector.source.ScanTableSource.ScanRuntimeProvider getScanRuntimeProvider(org.apache.flink.table.connector.source.ScanTableSource.ScanContext runtimeProviderContext)
- Specified by:
getScanRuntimeProvider
in interfaceorg.apache.flink.table.connector.source.ScanTableSource
-
copy
public org.apache.flink.table.connector.source.DynamicTableSource copy()
- Specified by:
copy
in interfaceorg.apache.flink.table.connector.source.DynamicTableSource
-
asSummaryString
public java.lang.String asSummaryString()
- Specified by:
asSummaryString
in interfaceorg.apache.flink.table.connector.source.DynamicTableSource
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
listReadableMetadata
public java.util.Map<java.lang.String,org.apache.flink.table.types.DataType> listReadableMetadata()
- Specified by:
listReadableMetadata
in interfaceorg.apache.flink.table.connector.source.abilities.SupportsReadingMetadata
-
applyReadableMetadata
public void applyReadableMetadata(java.util.List<java.lang.String> metadataKeys, org.apache.flink.table.types.DataType producedDataType)
- Specified by:
applyReadableMetadata
in interfaceorg.apache.flink.table.connector.source.abilities.SupportsReadingMetadata
-
supportsMetadataProjection
public boolean supportsMetadataProjection()
- Specified by:
supportsMetadataProjection
in interfaceorg.apache.flink.table.connector.source.abilities.SupportsReadingMetadata
-
-