/** * Create a day of month expression (range 1-31) * * @return day of month */ public NumberExpression<Integer> dayOfMonth() { if (dayOfMonth == null) { dayOfMonth = Expressions.numberOperation(Integer.class, Ops.DateTimeOps.DAY_OF_MONTH, mixin); } return dayOfMonth; }
/** * Create a minutes expression (range 0-59) * * @return minute */ public NumberExpression<Integer> minute() { if (minutes == null) { minutes = Expressions.numberOperation(Integer.class, Ops.DateTimeOps.MINUTE, mixin); } return minutes; }
/** * Create a week expression * * @return week */ public NumberExpression<Integer> week() { if (week == null) { week = Expressions.numberOperation(Integer.class, Ops.DateTimeOps.WEEK, mixin); } return week; }
/** * The z-coordinate value for this Point, if it has one. Returns NIL otherwise. * * @return z-coordinate */ public NumberExpression<Double> z() { if (z == null) { z = Expressions.numberOperation(Double.class, SpatialOps.Z, mixin); } return z; }
/** * Create a day of year expression (range 1-356) * <p>NOT supported in JDOQL and not in Derby</p> * * @return day of year */ public NumberExpression<Integer> dayOfYear() { if (dayOfYear == null) { dayOfYear = Expressions.numberOperation(Integer.class, Ops.DateTimeOps.DAY_OF_YEAR, mixin); } return dayOfYear; }
/** * Create a week expression * * @return week */ public NumberExpression<Integer> week() { if (week == null) { week = Expressions.numberOperation(Integer.class, Ops.DateTimeOps.WEEK, mixin); } return week; }
/** * Create a year / month expression * * @return year month */ public NumberExpression<Integer> yearMonth() { if (yearMonth == null) { yearMonth = Expressions.numberOperation(Integer.class, Ops.DateTimeOps.YEAR_MONTH, mixin); } return yearMonth; }
/** * Create a {@code sign(num)} expression * * <p>Returns the positive (+1), zero (0), or negative (-1) sign of num.</p> * * @param num numeric expression * @return sign(num) */ public static <A extends Number & Comparable<?>> NumberExpression<Integer> sign(Expression<A> num) { return Expressions.numberOperation(Integer.class, Ops.MathOps.SIGN, num); }
/** * The area of this Surface, as measured in the spatial reference system of this Surface. * * @return area */ public NumberExpression<Double> area() { if (area == null) { area = Expressions.numberOperation(Double.class, SpatialOps.AREA, mixin); } return area; }
/** * Returns X maxima of a bounding box 2d or 3d or a geometry. * * @param expr geometry * @return x maxima */ public static NumberExpression<Double> xmax(JTSGeometryExpression<?> expr) { return Expressions.numberOperation(Double.class, SpatialOps.XMAX, expr); }
/** * Returns Y maxima of a bounding box 2d or 3d or a geometry. * * @param expr geometry * @return y maxima */ public static NumberExpression<Double> ymax(JTSGeometryExpression<?> expr) { return Expressions.numberOperation(Double.class, SpatialOps.YMAX, expr); }
/** * Create a seconds expression (range 0-59) * * @return second */ public NumberExpression<Integer> second() { if (seconds == null) { seconds = Expressions.numberOperation(Integer.class, Ops.DateTimeOps.SECOND, mixin); } return seconds; }
/** * The number of Points in this LineString. * * @return number of points */ public NumberExpression<Integer> numPoints() { if (numPoints == null) { numPoints = Expressions.numberOperation(Integer.class, SpatialOps.NUM_POINTS, mixin); } return numPoints; }
/** * Get the {@code count(this)} expression * * @return count(this) */ public NumberExpression<Long> count() { if (count == null) { count = Expressions.numberOperation(Long.class, Ops.AggOps.COUNT_AGG, mixin); } return count; }
/** * Returns the number of including polygons * * @return number of polygons */ public NumberExpression<Integer> numPatches() { if (numPatches == null) { numPatches = Expressions.numberOperation(Integer.class, SpatialOps.NUM_SURFACES, mixin); } return numPatches; }
/** * The m-coordinate value for this Point, if it has one. Returns NIL otherwise. * * @return m-coordinate */ public NumberExpression<Double> m() { if (m == null) { m = Expressions.numberOperation(Double.class, SpatialOps.M, mixin); } return m; } }
/** * The number of Points in this LineString. * * @return number of points */ public NumberExpression<Integer> numPoints() { if (numPoints == null) { numPoints = Expressions.numberOperation(Integer.class, SpatialOps.NUM_POINTS, mixin); } return numPoints; }
/** * Returns the number of interior rings in this Polygon. * * @return number of interior rings */ public NumberExpression<Integer> numInteriorRing() { if (numInteriorRing == null) { numInteriorRing = Expressions.numberOperation(Integer.class, SpatialOps.NUM_INTERIOR_RING, mixin); } return numInteriorRing; }
/** * Create a ISO yearweek expression * * @return year week */ public NumberExpression<Integer> yearWeek() { if (yearWeek == null) { yearWeek = Expressions.numberOperation(Integer.class, Ops.DateTimeOps.YEAR_WEEK, mixin); } return yearWeek; } }
/** * Create a {@code locate(str, this)} expression * * <p>Get the position of the given String in this String, the first position is 1</p> * * @param str string * @return locate(str, this) */ public NumberExpression<Integer> locate(String str) { return Expressions.numberOperation(Integer.class, Ops.StringOps.LOCATE, ConstantImpl.create(str), mixin); }