Package com.linkedin.venice.compute
Class HadamardProductOperator
- java.lang.Object
-
- com.linkedin.venice.compute.HadamardProductOperator
-
- All Implemented Interfaces:
ReadComputeOperator
public class HadamardProductOperator extends java.lang.Object implements ReadComputeOperator
-
-
Constructor Summary
Constructors Constructor Description HadamardProductOperator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
allowFieldValueToBeNull()
Whether the extracted value of the field in the read value record is allowed to be null.void
compute(ComputeOperation op, org.apache.avro.Schema.Field operatorInputField, org.apache.avro.Schema.Field resultField, org.apache.avro.generic.GenericRecord inputValueRecord, org.apache.avro.generic.GenericRecord resultRecord, java.util.Map<java.lang.String,java.lang.String> computationErrorMap, java.util.Map<java.lang.String,java.lang.Object> context)
java.lang.String
getOperatorFieldName(ComputeOperation op)
java.lang.String
getResultFieldName(ComputeOperation op)
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.linkedin.venice.compute.ReadComputeOperator
putDefaultResult, putResult
-
-
-
-
Method Detail
-
compute
public void compute(ComputeOperation op, org.apache.avro.Schema.Field operatorInputField, org.apache.avro.Schema.Field resultField, org.apache.avro.generic.GenericRecord inputValueRecord, org.apache.avro.generic.GenericRecord resultRecord, java.util.Map<java.lang.String,java.lang.String> computationErrorMap, java.util.Map<java.lang.String,java.lang.Object> context)
- Specified by:
compute
in interfaceReadComputeOperator
-
allowFieldValueToBeNull
public boolean allowFieldValueToBeNull()
Description copied from interface:ReadComputeOperator
Whether the extracted value of the field in the read value record is allowed to be null.- Specified by:
allowFieldValueToBeNull
in interfaceReadComputeOperator
- Returns:
- True if the extracted value is nullable and vice versa
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getOperatorFieldName
public java.lang.String getOperatorFieldName(ComputeOperation op)
- Specified by:
getOperatorFieldName
in interfaceReadComputeOperator
-
getResultFieldName
public java.lang.String getResultFieldName(ComputeOperation op)
- Specified by:
getResultFieldName
in interfaceReadComputeOperator
-
-