Package org.locationtech.geogig.api.plumbing.LsTreeOp

Examples of org.locationtech.geogig.api.plumbing.LsTreeOp.Strategy


        if (refList.isEmpty()) {
            ref = null;
        } else {
            ref = refList.get(0);
        }
        Strategy lsStrategy = Strategy.CHILDREN;
        if (recursive) {
            if (includeTrees) {
                lsStrategy = Strategy.DEPTHFIRST;
            } else if (onlyTrees) {
                lsStrategy = Strategy.DEPTHFIRST_ONLY_TREES;
View Full Code Here


        if (refList.isEmpty()) {
            ref = null;
        } else {
            ref = refList.get(0);
        }
        Strategy lsStrategy = Strategy.CHILDREN;
        if (recursive) {
            if (includeTrees) {
                lsStrategy = Strategy.DEPTHFIRST;
            } else if (onlyTrees) {
                lsStrategy = Strategy.DEPTHFIRST_ONLY_TREES;
View Full Code Here

        return refsByPath;
    }

    private ImmutableMap<String, NodeRef> getRefsByPath(ObjectId repoRoot, boolean includeFeatures) {

        Strategy strategy = includeFeatures ? Strategy.DEPTHFIRST : Strategy.DEPTHFIRST_ONLY_TREES;
        Iterator<NodeRef> iterator = geogig.command(LsTreeOp.class)
                .setReference(repoRoot.toString()).setStrategy(strategy).call();
        Function<NodeRef, String> keyFunction = new Function<NodeRef, String>() {
            @Override
            public String apply(NodeRef input) {
View Full Code Here

TOP

Related Classes of org.locationtech.geogig.api.plumbing.LsTreeOp.Strategy

Copyright © 2018 www.massapicom. 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.