co.decodable.sdk.pipeline.testing.DecodableStream 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.testing;
import co.decodable.sdk.pipeline.util.Incubating;
import java.util.List;
import java.util.concurrent.Future;
/**
* Represents a data stream on the Decodable platform.
*
* @param The element type of this stream
*/
@Incubating
public interface DecodableStream {
/** Adds the given stream record to this stream. */
void add(StreamRecord streamRecord);
/** Retrieves one element from this stream. */
Future> takeOne();
/** Retrieves {@code n} elements from this stream. */
Future>> take(int n);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy