co.decodable.sdk.pipeline.DecodableStreamSinkBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of decodable-pipeline-sdk Show documentation
Show all versions of decodable-pipeline-sdk Show documentation
A software development kit for implementing Apache Flink jobs and running them on Decodable
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright Decodable, Inc.
*
* Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package co.decodable.sdk.pipeline;
import co.decodable.sdk.pipeline.util.Incubating;
import org.apache.flink.api.common.serialization.SerializationSchema;
/** Builder for creating {@literal DecodableStreamSink} instances. */
@Incubating
public interface DecodableStreamSinkBuilder {
/**
* Specifies the name of the stream to write to. Either this or {@link #withStreamId(String)} may
* be used, but not both.
*/
DecodableStreamSinkBuilder withStreamName(String streamName);
/**
* Specifies the id of the stream to write to. Either this or {@link #withStreamName(String)} may
* be used, but not both.
*/
DecodableStreamSinkBuilder withStreamId(String streamId);
/** Specifies the serialization schema to be used. */
DecodableStreamSinkBuilder withSerializationSchema(SerializationSchema serializationSchema);
/** Returns a new {@link DecodableStreamSink} for the given configuration. */
DecodableStreamSink build();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy