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

com.tinkerpop.pipes.util.AbstractMetaPipe Maven / Gradle / Ivy

Go to download

Pipes is a dataflow framework written in Java that enables the splitting, merging, filtering, and transformation of data from input to output. Computations are expressed using a combinator model and are evaluated in a memory-efficient, lazy fashion.

There is a newer version: 2.6.0
Show newest version
package com.tinkerpop.pipes.util;

import com.tinkerpop.pipes.AbstractPipe;
import com.tinkerpop.pipes.Pipe;

/**
 * @author Marko A. Rodriguez (http://markorodriguez.com)
 */
public abstract class AbstractMetaPipe extends AbstractPipe implements MetaPipe {

    public void enablePath(final boolean enable) {
        for (final Pipe pipe : this.getPipes()) {
            pipe.enablePath(enable);
        }
        super.enablePath(enable);

    }

    public void reset() {
        for (final Pipe pipe : this.getPipes()) {
            pipe.reset();
        }
        super.reset();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy