public enum EsCommandType extends Enum<EsCommandType>
| 枚举常量和说明 |
|---|
BULK
_bulk批量操作,默认请求/_bulk
|
DEFAULT
默认操作
|
DELETE
delete操作,删除单条数据要指定_id
|
DELETE_BY_QUERY
_delete_by_query 根据条件删除,需要在endpoint中指定_index和_type
|
INSERT
insert 操作,插入时要指定_id
|
UPDATE
_update 操作,指定_id
|
UPDATE_BY_QUERY
_update_by_query 根据条件更新,需要在endpoint中指定_index和_type
|
| 限定符和类型 | 方法和说明 |
|---|---|
Integer |
getType() |
static EsCommandType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static EsCommandType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final EsCommandType DEFAULT
public static final EsCommandType INSERT
public static final EsCommandType UPDATE
public static final EsCommandType DELETE
public static final EsCommandType BULK
public static final EsCommandType UPDATE_BY_QUERY
public static final EsCommandType DELETE_BY_QUERY
public static EsCommandType[] values()
for (EsCommandType c : EsCommandType.values()) System.out.println(c);
public static EsCommandType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public Integer getType()
Copyright © 2022. All rights reserved.