Class PslDataSource
Stay organized with collections
Save and categorize content based on your preferences.
public final class PslDataSource implements DataSourceV2, ContinuousReadSupport, MicroBatchReadSupport, StreamWriteSupport, DataSourceRegister
Inheritance
java.lang.Object >
PslDataSource
Implements
org.apache.spark.sql.sources.v2.DataSourceV2,
org.apache.spark.sql.sources.v2.ContinuousReadSupport,
org.apache.spark.sql.sources.v2.MicroBatchReadSupport,
org.apache.spark.sql.sources.v2.StreamWriteSupport,
org.apache.spark.sql.sources.DataSourceRegister
Constructors
PslDataSource()
Methods
createContinuousReader(Optional<StructType> schema, String checkpointLocation, DataSourceOptions options)
public ContinuousReader createContinuousReader(Optional<StructType> schema, String checkpointLocation, DataSourceOptions options)
Parameters
Name | Description |
schema | Optional<org.apache.spark.sql.types.StructType>
|
checkpointLocation | String
|
options | org.apache.spark.sql.sources.v2.DataSourceOptions
|
Returns
Type | Description |
org.apache.spark.sql.sources.v2.reader.streaming.ContinuousReader | |
createMicroBatchReader(Optional<StructType> schema, String checkpointLocation, DataSourceOptions options)
public MicroBatchReader createMicroBatchReader(Optional<StructType> schema, String checkpointLocation, DataSourceOptions options)
Parameters
Name | Description |
schema | Optional<org.apache.spark.sql.types.StructType>
|
checkpointLocation | String
|
options | org.apache.spark.sql.sources.v2.DataSourceOptions
|
Returns
Type | Description |
org.apache.spark.sql.sources.v2.reader.streaming.MicroBatchReader | |
createStreamWriter(String queryId, StructType schema, OutputMode mode, DataSourceOptions options)
public StreamWriter createStreamWriter(String queryId, StructType schema, OutputMode mode, DataSourceOptions options)
Parameters
Name | Description |
queryId | String
|
schema | org.apache.spark.sql.types.StructType
|
mode | org.apache.spark.sql.streaming.OutputMode
|
options | org.apache.spark.sql.sources.v2.DataSourceOptions
|
Returns
Type | Description |
org.apache.spark.sql.sources.v2.writer.streaming.StreamWriter | |
shortName()
public String shortName()
Returns
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-03-22 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]