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

com.tangosol.util.stream.RemotePipeline Maven / Gradle / Ivy

There is a newer version: 24.09
Show newest version
/*
 * Copyright (c) 2000, 2020, Oracle and/or its affiliates.
 *
 * Licensed under the Universal Permissive License v 1.0 as shown at
 * http://oss.oracle.com/licenses/upl.
 */
package com.tangosol.util.stream;

import com.tangosol.util.InvocableMap;

import java.io.Serializable;

/**
 * A serializable pipeline of intermediate stream operations.
 *
 * @author as  2014.10.01
 * @since 12.2.1
 */
public interface RemotePipeline extends Serializable
    {
    /**
     * Return whether this pipeline should be executed in parallel.
     *
     * @return true if this pipeline should be executed in parallel,
     *         false otherwise
     */
    public boolean isParallel();

    /**
     * Evaluate this pipeline against the specified stream of InvocableMap.Entry
     * objects.
     *
     * @param stream  the stream to evaluate pipeline against
     * @param      key type
     * @param      value type
     *
     * @return transformed stream
     */
    public  S_OUT evaluate(java.util.stream.Stream> stream);
    }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy