All Downloads are FREE. Search and download functionalities are using the official Maven repository.

co.decodable.sdk.pipeline.DecodableStreamSink Maven / Gradle / Ivy

Go to download

A software development kit for implementing Apache Flink jobs and running them on Decodable

There is a newer version: 1.0.0.Beta7
Show newest version
/*
 * 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.internal.DecodableStreamSinkBuilderImpl;
import co.decodable.sdk.pipeline.util.Incubating;
import java.io.IOException;
import org.apache.flink.api.connector.sink2.StatefulSink;
import org.apache.flink.api.connector.sink2.TwoPhaseCommittingSink;

/**
 * A {@link StatefulSink} which allows to write to a Decodable stream from within a Flink job.
 *
 * @param  The data type of this stream
 */
@Incubating
public interface DecodableStreamSink
    extends StatefulSink, TwoPhaseCommittingSink {

  /** Returns a builder for creating a new {@link DecodableStreamSink}. */
  public static  DecodableStreamSinkBuilder builder() {
    return new DecodableStreamSinkBuilderImpl();
  }

  /** {@inheritDoc} */
  @Override
  DecodableWriter createWriter(InitContext context) throws IOException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy