Package org.elasticsearch.hadoop.rest.RestService

Examples of org.elasticsearch.hadoop.rest.RestService.PartitionDefinition


            this.esSplit = esSplit;

            // initialize mapping/ scroll reader
            InitializationUtils.setValueReaderIfNotSet(settings, WritableValueReader.class, log);

            PartitionDefinition part = new PartitionDefinition(esSplit.nodeIp, esSplit.httpPort, esSplit.nodeName, esSplit.nodeId, esSplit.shardId, settings.save(), esSplit.mapping);
            PartitionReader partitionReader = RestService.createReader(settings, part, log);

            this.scrollReader = partitionReader.scrollReader;
            this.client = partitionReader.client;
            this.queryBuilder = partitionReader.queryBuilder;
View Full Code Here


        info.put("shard", 6);

        Shard sh6 = new Shard(info);
        Node node6 = new Node("6", info);

        pd1 = new PartitionDefinition(sh1, node1, null, null);
        pd2 = new PartitionDefinition(sh2, node2, null, null);
        pd3 = new PartitionDefinition(sh3, node3, null, null);
        pd4 = new PartitionDefinition(sh4, node4, null, null);
        pd5 = new PartitionDefinition(sh5, node5, null, null);
        pd6 = new PartitionDefinition(sh6, node6, null, null);

        pds = Arrays.asList(pd1, pd2, pd3, pd4, pd5, pd6);
    }
View Full Code Here

TOP

Related Classes of org.elasticsearch.hadoop.rest.RestService.PartitionDefinition

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.