mattcasters commented on PR #5647:
URL: https://github.com/apache/hop/pull/5647#issuecomment-3657574985

   For `FormulaMetaFunction.valueType`:
   
   ```
   @HopMetadataProperty(
         key = "value_type",
         injectionKeyDescription = "FormulaMeta.Injection.ValueType",
         injectionConverter = StringToTypeConverter.class)
     private int valueType;
   ```
   
   The class something like:
   
   ```
   public class StringToTypeConverter extends InjectionTypeConverter {
     public int string2intPrimitive(String v) throws HopValueException {
       return ValueMetaFactory.getIdForValueMeta(v);
     }
   }
   ```
   
   HTH


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to