Annotation Interface GQ


@Documented @Retention(SOURCE) @Target(METHOD) public @interface GQ
Method annotation to make a method call returning GINQ result
Since:
4.0.0
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Specify the GINQ AST walker to customize GINQ behaviour.
    boolean
    Whether to optimize the GINQ AST
    boolean
    Whether to enable parallel querying
    Specify the result type
  • Element Details

    • value

      Class<?> value
      Specify the result type
      Default:
      org.apache.groovy.ginq.provider.collection.runtime.Queryable.class
    • optimize

      boolean optimize
      Whether to optimize the GINQ AST
      Default:
      true
    • parallel

      boolean parallel
      Whether to enable parallel querying
      Default:
      false
    • astWalker

      @Incubating String astWalker
      Specify the GINQ AST walker to customize GINQ behaviour.

      This is an advanced extension point: the named class must implement the GinqAstVisitor provider SPI, which is still Incubating and may change in a future release.

      Default:
      "org.apache.groovy.ginq.provider.collection.GinqAstWalker"