public class RewriteFileIndexSource extends Object implements org.apache.flink.api.connector.source.Source<ManifestEntry,RewriteFileIndexSource.Split,RewriteFileIndexSource.CheckpointState>
FlinkSource
for reading records. It does not monitor new snapshots.Modifier and Type | Class and Description |
---|---|
static class |
RewriteFileIndexSource.CheckpointState
State for splits.
|
static class |
RewriteFileIndexSource.Split
Split to wrap ManifestEntry.
|
Constructor and Description |
---|
RewriteFileIndexSource(FileStoreTable table,
Predicate partitionPredicate) |
Modifier and Type | Method and Description |
---|---|
org.apache.flink.api.connector.source.SplitEnumerator<RewriteFileIndexSource.Split,RewriteFileIndexSource.CheckpointState> |
createEnumerator(org.apache.flink.api.connector.source.SplitEnumeratorContext<RewriteFileIndexSource.Split> splitEnumeratorContext) |
org.apache.flink.api.connector.source.SourceReader<ManifestEntry,RewriteFileIndexSource.Split> |
createReader(org.apache.flink.api.connector.source.SourceReaderContext sourceReaderContext) |
org.apache.flink.api.connector.source.Boundedness |
getBoundedness() |
org.apache.flink.core.io.SimpleVersionedSerializer<RewriteFileIndexSource.CheckpointState> |
getEnumeratorCheckpointSerializer() |
org.apache.flink.core.io.SimpleVersionedSerializer<RewriteFileIndexSource.Split> |
getSplitSerializer() |
org.apache.flink.api.connector.source.SplitEnumerator<RewriteFileIndexSource.Split,RewriteFileIndexSource.CheckpointState> |
restoreEnumerator(org.apache.flink.api.connector.source.SplitEnumeratorContext<RewriteFileIndexSource.Split> splitEnumeratorContext,
RewriteFileIndexSource.CheckpointState checkpointState) |
public RewriteFileIndexSource(FileStoreTable table, @Nullable Predicate partitionPredicate)
public org.apache.flink.api.connector.source.Boundedness getBoundedness()
getBoundedness
in interface org.apache.flink.api.connector.source.Source<ManifestEntry,RewriteFileIndexSource.Split,RewriteFileIndexSource.CheckpointState>
public org.apache.flink.api.connector.source.SplitEnumerator<RewriteFileIndexSource.Split,RewriteFileIndexSource.CheckpointState> createEnumerator(org.apache.flink.api.connector.source.SplitEnumeratorContext<RewriteFileIndexSource.Split> splitEnumeratorContext) throws Exception
createEnumerator
in interface org.apache.flink.api.connector.source.Source<ManifestEntry,RewriteFileIndexSource.Split,RewriteFileIndexSource.CheckpointState>
Exception
public org.apache.flink.api.connector.source.SplitEnumerator<RewriteFileIndexSource.Split,RewriteFileIndexSource.CheckpointState> restoreEnumerator(org.apache.flink.api.connector.source.SplitEnumeratorContext<RewriteFileIndexSource.Split> splitEnumeratorContext, RewriteFileIndexSource.CheckpointState checkpointState) throws Exception
restoreEnumerator
in interface org.apache.flink.api.connector.source.Source<ManifestEntry,RewriteFileIndexSource.Split,RewriteFileIndexSource.CheckpointState>
Exception
public org.apache.flink.core.io.SimpleVersionedSerializer<RewriteFileIndexSource.Split> getSplitSerializer()
getSplitSerializer
in interface org.apache.flink.api.connector.source.Source<ManifestEntry,RewriteFileIndexSource.Split,RewriteFileIndexSource.CheckpointState>
public org.apache.flink.core.io.SimpleVersionedSerializer<RewriteFileIndexSource.CheckpointState> getEnumeratorCheckpointSerializer()
getEnumeratorCheckpointSerializer
in interface org.apache.flink.api.connector.source.Source<ManifestEntry,RewriteFileIndexSource.Split,RewriteFileIndexSource.CheckpointState>
public org.apache.flink.api.connector.source.SourceReader<ManifestEntry,RewriteFileIndexSource.Split> createReader(org.apache.flink.api.connector.source.SourceReaderContext sourceReaderContext) throws Exception
createReader
in interface org.apache.flink.api.connector.source.SourceReaderFactory<ManifestEntry,RewriteFileIndexSource.Split>
Exception
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.