Package org.locationtech.geogig.storage

Examples of org.locationtech.geogig.storage.ObjectSerializingFactory


                connection = (HttpURLConnection) resourceURL.openConnection();
                connection.setDoOutput(true);
                connection.setDoInput(true);
                out = connection.getOutputStream();
                // pack the commit object
                final ObjectSerializingFactory factory = DataStreamSerializationFactoryV1.INSTANCE;
                final ObjectWriter<RevCommit> commitWriter = factory
                        .createObjectWriter(TYPE.COMMIT);
                commitWriter.write(commit, out);

                // write the new parents
                out.write(newParents.size());
View Full Code Here


                ImmutableList<ObjectId> have = ImmutableList.copyOf(roots);
                final boolean traverseCommits = false;

                Stopwatch sw = Stopwatch.createStarted();
                ObjectSerializingFactory serializer = DataStreamSerializationFactoryV1.INSTANCE;
                SendObjectsConnectionFactory outFactory;
                ObjectFunnel objectFunnel;

                outFactory = new SendObjectsConnectionFactory(repositoryURL);
                int pushBytesLimit = parsePushLimit();
View Full Code Here

        String path = paths.get(0);

        Optional<RevObject> obj = geogig.command(RevObjectParse.class).setRefSpec(path).call();
        checkParameter(obj.isPresent(), "refspec did not resolve to any object.");
        if (binary) {
            ObjectSerializingFactory factory = DataStreamSerializationFactoryV1.INSTANCE;
            ObjectWriter<RevObject> writer = factory.createObjectWriter(obj.get().getType());
            writer.write(obj.get(), System.out);
        } else {
            CharSequence s = geogig.command(CatObject.class)
                    .setObject(Suppliers.ofInstance(obj.get())).call();
            console.println(s);
View Full Code Here

                final GeoGIG ggit = getGeogig(getRequest()).get();

                final Repository repository = ggit.getRepository();

                // read in commit object
                final ObjectSerializingFactory factory = DataStreamSerializationFactoryV1.INSTANCE;
                ObjectReader<RevCommit> reader = factory.createCommitReader();
                RevCommit commit = reader.read(ObjectId.NULL, input); // I don't need to know the
                                                                      // original ObjectId

                // read in parents
                List<ObjectId> newParents = new LinkedList<ObjectId>();
View Full Code Here

TOP

Related Classes of org.locationtech.geogig.storage.ObjectSerializingFactory

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.