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

co.decodable.sdk.pipeline.testing.DecodableStream 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.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