class DeltaSource[T] extends DeltaSourceInternal[T]
A unified data source that reads Delta table - both in batch and in streaming mode.
This source supports all (distributed) file systems and object stores that can be accessed
via the Flink's FileSystem class.
To create a new instance of DeltaSource for a Delta table that will produce
RowData records that contain all table columns:
StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
...
// Bounded mode.
DeltaSource<RowData> deltaSource = DeltaSource.forBoundedRowData(
new Path("s3://some/path"),
new Configuration()
)
.versionAsOf(10)
.build();
env.fromSource(deltaSource, WatermarkStrategy.noWatermarks(), "delta-source")
..........
// Continuous mode.
DeltaSource<RowData> deltaSource = DeltaSource.forContinuousRowData(
new Path("s3://some/path"),
new Configuration()
)
.updateCheckIntervalMillis(1000)
.startingVersion(10)
.build();
env.fromSource(deltaSource, WatermarkStrategy.noWatermarks(), "delta-source")
To create a new instance of DeltaSource for a Delta table that will produce
RowData records with user-selected columns:
StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
...
// Bounded mode.
DeltaSource<RowData> deltaSource = DeltaSource.forBoundedRowData(
new Path("s3://some/path"),
new Configuration()
)
.columnNames(Arrays.asList("col1", "col2"))
.versionAsOf(10)
.build();
env.fromSource(deltaSource, WatermarkStrategy.noWatermarks(), "delta-source")
..........
// Continuous mode.
DeltaSource<RowData> deltaSource = DeltaSource.forContinuousRowData(
new Path("s3://some/path"),
new Configuration()
)
.columnNames(Arrays.asList("col1", "col2"))
.updateCheckIntervalMillis(1000)
.startingVersion(10)
.build();
env.fromSource(deltaSource, WatermarkStrategy.noWatermarks(), "delta-source")
When using columnNames(...) method, the source will discover the data types for the
given columns from the Delta log.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- DeltaSource
- DeltaSourceInternal
- ResultTypeQueryable
- Source
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
createEnumerator(enumContext: SplitEnumeratorContext[DeltaSourceSplit]): SplitEnumerator[DeltaSourceSplit, DeltaEnumeratorStateCheckpoint[DeltaSourceSplit]]
- Definition Classes
- DeltaSourceInternal → Source
- Annotations
- @Override()
-
def
createReader(readerContext: SourceReaderContext): SourceReader[T, DeltaSourceSplit]
- Definition Classes
- DeltaSourceInternal → Source
- Annotations
- @Override()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
getBoundedness(): Boundedness
- Definition Classes
- DeltaSourceInternal → Source
- Annotations
- @Override()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getEnumeratorCheckpointSerializer(): SimpleVersionedSerializer[DeltaEnumeratorStateCheckpoint[DeltaSourceSplit]]
- Definition Classes
- DeltaSourceInternal → Source
- Annotations
- @Override()
-
def
getProducedType(): TypeInformation[T]
- Definition Classes
- DeltaSourceInternal → ResultTypeQueryable
- Annotations
- @Override()
-
def
getSourceConfiguration(): DeltaConnectorConfiguration
- Definition Classes
- DeltaSourceInternal
- Annotations
- @VisibleForTesting()
-
def
getSplitSerializer(): SimpleVersionedSerializer[DeltaSourceSplit]
- Definition Classes
- DeltaSourceInternal → Source
- Annotations
- @Override()
-
def
getTablePath(): Path
- Definition Classes
- DeltaSourceInternal
- Annotations
- @VisibleForTesting()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
restoreEnumerator(enumContext: SplitEnumeratorContext[DeltaSourceSplit], checkpoint: DeltaEnumeratorStateCheckpoint[DeltaSourceSplit]): SplitEnumerator[DeltaSourceSplit, DeltaEnumeratorStateCheckpoint[DeltaSourceSplit]]
- Definition Classes
- DeltaSourceInternal → Source
- Annotations
- @Override()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()