Package elephantdb.persistence

Examples of elephantdb.persistence.Persistence


            this.progressable = progressable;
            localManager = new LocalElephantManager(fileSystem, args.spec, LocalElephantManager.getTmpDirs(conf));
        }

        private Persistence retrieveShard(int shardIdx) throws IOException {
            Persistence lp = null;

            if (lps.containsKey(shardIdx)) {
                lp = lps.get(shardIdx);
            } else {
                String localShard = localManager.downloadRemoteShard("" + shardIdx, null);
View Full Code Here


            }
            return lp;
        }

        public void write(IntWritable shard, ElephantRecordWritable carrier) throws IOException {
            Persistence lp = retrieveShard(shard.get());

            KeyValDocument doc = new KeyValDocument(carrier.key, carrier.value);

            lp.index(doc);

            bumpProgress();
        }
View Full Code Here

TOP

Related Classes of elephantdb.persistence.Persistence

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.