com.tangosol.util.stream.RemotePipeline Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of coherence Show documentation
Show all versions of coherence Show documentation
Oracle Coherence Community Edition
/*
* 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 extends InvocableMap.Entry extends K, ? extends V>> stream);
}