Package com.linkedin.venice.compute
Class ComputeRequestWrapper
java.lang.Object
com.linkedin.venice.compute.ComputeRequestWrapper
This class is used by the client to encapsulate the information it needs about a compute request.
N.B.: This class used to contain multiple versions of the
ComputeRequestV3
but it was not necessary
since all the versions were anyway compatible with one another. We are now keeping only the latest version
used on the wire, which is 3 (version 4 was never used as a wire protocol). We can always revisit this if
the need to evolve read compute comes into play.-
Field Summary
-
Constructor Summary
ConstructorDescriptionComputeRequestWrapper
(int valueSchemaId, org.apache.avro.Schema valueSchema, org.apache.avro.Schema resultSchema, String resultSchemaString, List<ComputeOperation> operations, boolean originallyStreaming) -
Method Summary
Modifier and TypeMethodDescriptionList<org.apache.avro.Schema.Field>
org.apache.avro.Schema
int
boolean
byte[]
-
Field Details
-
LATEST_SCHEMA_VERSION_FOR_COMPUTE_REQUEST
public static final int LATEST_SCHEMA_VERSION_FOR_COMPUTE_REQUEST- See Also:
-
-
Constructor Details
-
ComputeRequestWrapper
public ComputeRequestWrapper(int valueSchemaId, org.apache.avro.Schema valueSchema, org.apache.avro.Schema resultSchema, String resultSchemaString, List<ComputeOperation> operations, boolean originallyStreaming)
-
-
Method Details
-
serialize
public byte[] serialize() -
getResultSchemaStr
-
getValueSchemaID
public int getValueSchemaID() -
getValueSchema
public org.apache.avro.Schema getValueSchema() -
getOperations
-
getOperationResultFields
-
isRequestOriginallyStreaming
public boolean isRequestOriginallyStreaming()
-