The ARRAY_FILTER function. Filter elements out of an array. @param array The array whose elements are filtered. @param predicate A predicate defining which elements to keep in the array.
(T[] array, Function1<? super Field<T>, ? extends Condition> predicate)
| 24138 | * @param predicate A predicate defining which elements to keep in the array. |
| 24139 | */ |
| 24140 | @NotNull |
| 24141 | @Support({ CLICKHOUSE, DUCKDB, H2, HSQLDB, POSTGRES, TRINO, YUGABYTEDB }) |
| 24142 | public static <T> Field<T[]> arrayFilter(T[] array, Function1<? super Field<T>, ? extends Condition> predicate) { |
| 24143 | return new ArrayFilter<>(Tools.field(array), DSL.lambda(array, predicate)); |
| 24144 | } |
| 24145 | |
| 24146 | /** |
| 24147 | * The <code>ARRAY_FILTER</code> function. |
no test coverage detected