Package ai.vespa.feed.client
Enum FeedClient.OperationType
- java.lang.Object
-
- java.lang.Enum<FeedClient.OperationType>
-
- ai.vespa.feed.client.FeedClient.OperationType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FeedClient.OperationType>
- Enclosing interface:
- FeedClient
public static enum FeedClient.OperationType extends java.lang.Enum<FeedClient.OperationType>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FeedClient.OperationType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FeedClient.OperationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PUT
public static final FeedClient.OperationType PUT
A document put operation. This is idempotent.
-
UPDATE
public static final FeedClient.OperationType UPDATE
A document update operation. This is idempotent if all its contained updates are.
-
REMOVE
public static final FeedClient.OperationType REMOVE
A document remove operation. This is idempotent.
-
-
Method Detail
-
values
public static FeedClient.OperationType[] 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 (FeedClient.OperationType c : FeedClient.OperationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FeedClient.OperationType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-