Search in sources :

Example 1 with ElasticsearchIndex

use of com.google.cloud.teleport.v2.elasticsearch.utils.ElasticsearchIndex in project DataflowTemplates by GoogleCloudPlatform.

the class PubSubToElasticsearch method main.

/**
 * Main entry point for executing the pipeline.
 *
 * @param args The command-line arguments to the pipeline.
 */
public static void main(String[] args) {
    // Parse the user options passed from the command-line.
    PubSubToElasticsearchOptions pubSubToElasticsearchOptions = PipelineOptionsFactory.fromArgs(args).withValidation().as(PubSubToElasticsearchOptions.class);
    pubSubToElasticsearchOptions.setIndex(new ElasticsearchIndex(pubSubToElasticsearchOptions.getDataset(), pubSubToElasticsearchOptions.getNamespace()).getIndex());
    run(pubSubToElasticsearchOptions);
}
Also used : ElasticsearchIndex(com.google.cloud.teleport.v2.elasticsearch.utils.ElasticsearchIndex) PubSubToElasticsearchOptions(com.google.cloud.teleport.v2.elasticsearch.options.PubSubToElasticsearchOptions)

Aggregations

PubSubToElasticsearchOptions (com.google.cloud.teleport.v2.elasticsearch.options.PubSubToElasticsearchOptions)1 ElasticsearchIndex (com.google.cloud.teleport.v2.elasticsearch.utils.ElasticsearchIndex)1