Package org.openstreetmap.osmosis.plugin.elasticsearch.dao

Examples of org.openstreetmap.osmosis.plugin.elasticsearch.dao.EntityDao


    // Build ElasticSearch client
    Client client = buildElasticsearchClient(params);
    // Build indexAdminService
    IndexAdminService indexAdminService = new IndexAdminService(client);
    // Build EntityDao
    EntityDao entityDao = buildEntityDao(client, params);
    // Create bundle
    Endpoint endpoint = new Endpoint(client, indexAdminService, entityDao);

    // Create Index
    createIndex(indexAdminService, params);
View Full Code Here


    }
  }

  protected EntityDao buildEntityDao(Client client, Parameters params) {
    String indexName = params.getProperty(Parameters.INDEX_NAME);
    return new EntityDao(indexName, client);
  }
View Full Code Here

TOP

Related Classes of org.openstreetmap.osmosis.plugin.elasticsearch.dao.EntityDao

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.