7.11. Filter Functions¶
GeoMesa provides several custom CQL filter functions, which can be used for filtering or transforming query results.
Filter functions can be created through GeoTool’s standard methods, i.e. ECQL.toFilter
or directly through
FilterFactory2.function
.
7.11.1. currentDate¶
Returns the current date as a java.util.Date
. Accepts an optional offset, specified as an ISO-8601 duration
string. See the Oracle
Javadoc for
details on duration parsing.
7.11.2. dateToLong¶
Converts a java.util.Date
to a Long
representing milliseconds since the epoch, as returned by
date.getTime()
.
7.11.3. jsonPath¶
7.11.4. proxyId¶
Converts the current FeatureId
to an Int
. This may be used to minimize data size, while providing a unique
lookup mechanism. In particular, when returning data using Arrow Encoding, the feature ID can be proxied
down to four bytes. When retrieving the full feature, the spatio-temporal values can be used to provide a fast
lookup, and the proxy ID can be used for disambiguation.
7.11.5. visibility¶
Evaluates the current user’s authorizations against a feature’s visibility markings. Accepts an optional parameter to specify the feature attribute that contains the visibility marking, otherwise will use the default user-data location.