Page tree
Skip to end of metadata
Go to start of metadata

Constant values can be added to FieldExpressions using Constant . Simply provide a value and an optional alias string.  Accepts BOOLEAN, DATE, DOUBLE, FLOAT, INTEGER, LONG, POINT, and STRING types..

 

    DATATYPE(VALUE)

    • DATATYPE - The data type for the constant value (one of STRING, DATE, POINT, INTEGER, LONG, FLOAT, DOUBLE, BOOLEAN)
    • VALUE - The value. NOTE: date values must be in yyyy-MM-dd'T'HH:mm:ss format.
    INTEGER(55) AS "Speed Limit"
    
    import com.attivio.sdk.search.fields.Constant;
     
    Constant field = new Constant(55, "Speed Limit");
    • No labels