Examples of LabelFilterPipe


Examples of com.tinkerpop.pipes.filter.LabelFilterPipe

     */
    public GremlinPipeline<S, ? extends Element> has(final String key, final Predicate predicate, final Object value) {
        if (key.equals(Tokens.ID)) {
            return this.add(new IdFilterPipe(predicate, value));
        } else if (key.equals(Tokens.LABEL)) {
            return this.add(new LabelFilterPipe(predicate, value));
        } else {
            final Pipe pipe = new PropertyFilterPipe(key, predicate, value);
            return this.doQueryOptimization ? GremlinFluentUtility.optimizePipelineForQuery(this, pipe) : this.add(pipe);
        }
    }
View Full Code Here

Examples of com.tinkerpop.pipes.filter.LabelFilterPipe

    private Iterable<Edge> getOutEdges(String... labels) {
        if (labels.length == 0) {
            return this.outEdges;
        } else {
            Pipe pipe = new LabelFilterPipe(Compare.EQUAL, labels);
            pipe.setStarts(this.outEdges);
            return pipe;
        }
    }
View Full Code Here

Examples of com.tinkerpop.pipes.filter.LabelFilterPipe

    private Iterable<Edge> getInEdges(String... labels) {
        if (labels.length == 0) {
            return this.inEdges;
        } else {
            Pipe pipe = new LabelFilterPipe(Compare.EQUAL, labels);
            pipe.setStarts(this.inEdges);
            return pipe;
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.