io.army.criteria.impl.PostgreUnaryExpOperator Maven / Gradle / Ivy
package io.army.criteria.impl;
import io.army.dialect.Database;
enum PostgreUnaryExpOperator implements Operator.SqlUnaryExpOperator {
/**
* @see |/ double precision → double precision
* Square root
*
*/
VERTICAL_SLASH(" |/"),
/**
* @see ||/ double precision → double precision
* Cube root
*
*/
DOUBLE_VERTICAL_SLASH(" ||/"),
/**
* @see @-@ geometric_type → double precision
* Computes the total length. Available for lseg, path.
*
*/
AT_HYPHEN_AT(" @-@"),
/**
* @see Absolute value operator
*/
AT(" @"),
/**
* @see @@ geometric_type → point
* Computes the center point. Available for box, lseg, polygon, circle.
*
*/
AT_AT(" @@"),
/**
* @see !! tsquery → tsquery
* Negates a tsquery, producing a query that matches documents that do not match the input query.
*
*/
DOUBLE_EXCLAMATION(" !!"),
/**
* @see # geometric_type → integer
* Returns the number of points. Available for path, polygon.
*
*/
POUND(" #");
private final String spaceOperator;
PostgreUnaryExpOperator(String spaceOperator) {
this.spaceOperator = spaceOperator;
}
@Override
public final String spaceRender() {
return this.spaceOperator;
}
@Override
public final Database database() {
return Database.PostgreSQL;
}
@Override
public final String toString() {
return CriteriaUtils.enumToString(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy