Enum ElasticsearchOperation
- java.lang.Object
-
- java.lang.Enum<ElasticsearchOperation>
-
- org.apache.camel.component.elasticsearch.ElasticsearchOperation
-
- All Implemented Interfaces:
Serializable
,Comparable<ElasticsearchOperation>
public enum ElasticsearchOperation extends Enum<ElasticsearchOperation>
The ElasticSearch server operations list which are implementedIndex - 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 BulkIndex - Executes a bulk of index / delete operations GetById - 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 Search - Search across one or more indices and one or more types with a query Exists - Checks the index exists or not (using search with size=0 and terminate_after=1 parameters)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
static ElasticsearchOperation
valueOf(String name)
Returns the enum constant of this type with the specified name.static ElasticsearchOperation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Index
public static final ElasticsearchOperation Index
-
Update
public static final ElasticsearchOperation Update
-
Bulk
public static final ElasticsearchOperation Bulk
-
BulkIndex
public static final ElasticsearchOperation BulkIndex
-
GetById
public static final ElasticsearchOperation GetById
-
MultiGet
public static final ElasticsearchOperation MultiGet
-
MultiSearch
public static final ElasticsearchOperation MultiSearch
-
Delete
public static final ElasticsearchOperation Delete
-
DeleteIndex
public static final ElasticsearchOperation DeleteIndex
-
Search
public static final ElasticsearchOperation Search
-
Exists
public static final ElasticsearchOperation Exists
-
Ping
public static final ElasticsearchOperation Ping
-
-
Method Detail
-
values
public static ElasticsearchOperation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ElasticsearchOperation c : ElasticsearchOperation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ElasticsearchOperation valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
public String toString()
- Overrides:
toString
in classEnum<ElasticsearchOperation>
-
-