Package com.linkedin.venice.schema.avro
Enum ReadAvroProtocolDefinition
- java.lang.Object
-
- java.lang.Enum<ReadAvroProtocolDefinition>
-
- com.linkedin.venice.schema.avro.ReadAvroProtocolDefinition
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ReadAvroProtocolDefinition>
public enum ReadAvroProtocolDefinition extends java.lang.Enum<ReadAvroProtocolDefinition>
TDOO: Consider merging with AvroProtocolDefinition
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPUTE_REQUEST_CLIENT_KEY_V1
Compute request client key v1.COMPUTE_REQUEST_V1
Compute request v1.COMPUTE_REQUEST_V2
Compute request v2.COMPUTE_REQUEST_V3
Compute request v3.COMPUTE_REQUEST_V4
Compute request v4.COMPUTE_RESPONSE_V1
Response record for compute v1COMPUTE_ROUTER_REQUEST_V1
Router request key for read compute v1.MULTI_GET_CLIENT_REQUEST_V1
Client request for multi-get v1.MULTI_GET_RESPONSE_V1
Response record for multi-get v1.MULTI_GET_ROUTER_REQUEST_V1
Router request key for multi-get v1.SINGLE_GET_CLIENT_REQUEST_V1
Client request for single-get v1.SINGLE_GET_ROUTER_REQUEST_V1
Router request for single-get v1.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getProtocolVersion()
org.apache.avro.Schema
getSchema()
static ReadAvroProtocolDefinition
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ReadAvroProtocolDefinition[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SINGLE_GET_CLIENT_REQUEST_V1
public static final ReadAvroProtocolDefinition SINGLE_GET_CLIENT_REQUEST_V1
Client request for single-get v1.
-
SINGLE_GET_ROUTER_REQUEST_V1
public static final ReadAvroProtocolDefinition SINGLE_GET_ROUTER_REQUEST_V1
Router request for single-get v1.
-
MULTI_GET_CLIENT_REQUEST_V1
public static final ReadAvroProtocolDefinition MULTI_GET_CLIENT_REQUEST_V1
Client request for multi-get v1.
-
MULTI_GET_ROUTER_REQUEST_V1
public static final ReadAvroProtocolDefinition MULTI_GET_ROUTER_REQUEST_V1
Router request key for multi-get v1.
-
MULTI_GET_RESPONSE_V1
public static final ReadAvroProtocolDefinition MULTI_GET_RESPONSE_V1
Response record for multi-get v1.
-
COMPUTE_REQUEST_CLIENT_KEY_V1
public static final ReadAvroProtocolDefinition COMPUTE_REQUEST_CLIENT_KEY_V1
Compute request client key v1.
-
COMPUTE_REQUEST_V1
public static final ReadAvroProtocolDefinition COMPUTE_REQUEST_V1
Compute request v1. Compute requests sent from client to router contain 2 parts; the first part contains information like an array of operations and the result schema, represented by the following schema; the second part contains raw bytes of all the keys that will be computed on, represented by COMPUTE_REQUEST_CLIENT_KEY_V1.
-
COMPUTE_REQUEST_V2
public static final ReadAvroProtocolDefinition COMPUTE_REQUEST_V2
Compute request v2. Version 2 includes support for Hadamard Product.
-
COMPUTE_REQUEST_V3
public static final ReadAvroProtocolDefinition COMPUTE_REQUEST_V3
Compute request v3. Its includes support for count operator.
-
COMPUTE_REQUEST_V4
public static final ReadAvroProtocolDefinition COMPUTE_REQUEST_V4
Compute request v4. It includes support for Execute with Filter
-
COMPUTE_RESPONSE_V1
public static final ReadAvroProtocolDefinition COMPUTE_RESPONSE_V1
Response record for compute v1
-
COMPUTE_ROUTER_REQUEST_V1
public static final ReadAvroProtocolDefinition COMPUTE_ROUTER_REQUEST_V1
Router request key for read compute v1.
-
-
Method Detail
-
values
public static ReadAvroProtocolDefinition[] 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 (ReadAvroProtocolDefinition c : ReadAvroProtocolDefinition.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ReadAvroProtocolDefinition 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
-
getProtocolVersion
public int getProtocolVersion()
-
getSchema
public org.apache.avro.Schema getSchema()
-
-