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);
}
Aggregations