Annotation Type Computed


  • @Target({FIELD,METHOD})
    @Retention(RUNTIME)
    public @interface Computed
    Annotates the field or getter of an Entity property, to indicate that when retrieving data that the property should be set to the result of computation on the Cassandra side, typically a function call.

    Example:

     @Computed("writetime(v)")
     private int writeTime;
     
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String value
      The formula used to compute the property.
    • Element Detail

      • value

        String value
        The formula used to compute the property.

        This is a CQL expression like you would use directly in a query, for instance writetime(v).

        Returns:
        the formula.