Class CosineSimilarityOperator

    • Constructor Detail

      • CosineSimilarityOperator

        public CosineSimilarityOperator()
    • 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 interface ReadComputeOperator
      • 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 interface ReadComputeOperator
        Returns:
        True if the extracted value is nullable and vice versa
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object