All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.camel.component.elasticsearch5.ElasticsearchOperation Maven / Gradle / Ivy

There is a newer version: 2.25.4
Show newest version
/**
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.apache.camel.component.elasticsearch5;

/**
 * The ElasticSearch server operations list which are implemented
 * 
 * INDEX        - Index a document associated with a given index and type
 * UPDATE       - Updates a document based on a script
 * BULK         - Executes a bulk of index / delete operations
 * BULK_INDEX   - Executes a bulk of index / delete operations
 * GET_BY_ID    - Gets the document that was indexed from an index with a type and id
 * MULTIGET     - Multiple get documents
 * DELETE       - Deletes a document from the index based on the index, type and id
 * DELETE_INDEX - Deletes an index based on the index name
 * SEARCH       - Search across one or more indices and one or more types with a query
 * MULTISEARCH  - Performs multiple search requests
 * EXISTS       - Checks the index exists or not (using search with size=0 and terminate_after=1 parameters)
 * 
 */
public enum ElasticsearchOperation {
    INDEX("INDEX"),
    UPDATE("UPDATE"),
    BULK("BULK"),
    BULK_INDEX("BULK_INDEX"),
    GET_BY_ID("GET_BY_ID"),
    MULTIGET("MULTIGET"),
    DELETE("DELETE"),
    DELETE_INDEX("DELETE_INDEX"),
    SEARCH("SEARCH"),
    MULTISEARCH("MULTISEARCH"),
    EXISTS("EXISTS");

    private final String text;

    ElasticsearchOperation(final String text) {
        this.text = text;
    }

    @Override
    public String toString() {
        return text;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy