Package com.linkedin.venice.compute
Class CountOperator
java.lang.Object
com.linkedin.venice.compute.CountOperator
- All Implemented Interfaces:
ReadComputeOperator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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, Map<String, String> computationErrorMap, Map<String, Object> context) void
putDefaultResult
(org.apache.avro.generic.GenericRecord record, org.apache.avro.Schema.Field field) 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
putResult
-
Constructor Details
-
CountOperator
public CountOperator()
-
-
Method Details
-
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, Map<String, String> computationErrorMap, Map<String, Object> context) - Specified by:
compute
in interfaceReadComputeOperator
-
getOperatorFieldName
- Specified by:
getOperatorFieldName
in interfaceReadComputeOperator
-
getResultFieldName
- Specified by:
getResultFieldName
in interfaceReadComputeOperator
-
putDefaultResult
public void putDefaultResult(org.apache.avro.generic.GenericRecord record, org.apache.avro.Schema.Field field) - Specified by:
putDefaultResult
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
-