package streaming
Type Members
-
case class
StreamingRelationV2(source: Option[TableProvider], sourceName: String, table: Table, extraOptions: CaseInsensitiveStringMap, output: Seq[Attribute], catalog: Option[CatalogPlugin], identifier: Option[Identifier], v1Relation: Option[LogicalPlan]) extends LogicalPlan with LeafNode with MultiInstanceRelation with Product with Serializable
Used to link a Table into a streaming LogicalPlan.
-
case class
WriteToStream(name: String, resolvedCheckpointLocation: String, sink: Table, outputMode: OutputMode, deleteCheckpointOnStop: Boolean, inputQuery: LogicalPlan, catalogAndIdent: Option[(TableCatalog, Identifier)] = None) extends LogicalPlan with UnaryNode with Product with Serializable
Used to create a StreamExecution.
-
case class
WriteToStreamStatement(userSpecifiedName: Option[String], userSpecifiedCheckpointLocation: Option[String], useTempCheckpointLocation: Boolean, recoverFromCheckpointLocation: Boolean, sink: Table, outputMode: OutputMode, hadoopConf: Configuration, isContinuousTrigger: Boolean, inputQuery: LogicalPlan, catalogAndIdent: Option[(TableCatalog, Identifier)] = None) extends LogicalPlan with UnaryNode with Product with Serializable
A statement for Stream writing.
A statement for Stream writing. It contains all neccessary param and will be resolved in the rule ResolveStreamWrite.
- userSpecifiedName
Query name optionally specified by the user.
- userSpecifiedCheckpointLocation
Checkpoint location optionally specified by the user.
- useTempCheckpointLocation
Whether to use a temporary checkpoint location when the user has not specified one. If false, then error will be thrown.
- recoverFromCheckpointLocation
Whether to recover query from the checkpoint location. If false and the checkpoint location exists, then error will be thrown.
- sink
Sink to write the streaming outputs.
- outputMode
Output mode for the sink.
- hadoopConf
The Hadoop Configuration to get a FileSystem instance
- isContinuousTrigger
Whether the statement is triggered by a continuous query or not.
- inputQuery
The analyzed query plan from the streaming DataFrame.
- catalogAndIdent
Catalog and identifier for the sink, set when it is a V2 catalog table