Skip to content

Commit 3eefe94

Browse files
author
ehennum
committed
##1311 synch master with develop
1 parent 0d6295d commit 3eefe94

File tree

2 files changed

+15
-38
lines changed

2 files changed

+15
-38
lines changed

marklogic-client-api/src/main/java/com/marklogic/client/expression/CtsExpr.java

Lines changed: 7 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public interface CtsExpr {
168168
* @param box The box. (of <a href="{@docRoot}/doc-files/types/cts_box.html">cts:box</a>)
169169
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a> server data type
170170
*/
171-
public ServerExpression boxEast(CtsBoxExpr box);
171+
public ServerExpression boxEast(ServerExpression box);
172172
/**
173173
* Returns a box's northern boundary.
174174
*
@@ -179,7 +179,7 @@ public interface CtsExpr {
179179
* @param box The box. (of <a href="{@docRoot}/doc-files/types/cts_box.html">cts:box</a>)
180180
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a> server data type
181181
*/
182-
public ServerExpression boxNorth(CtsBoxExpr box);
182+
public ServerExpression boxNorth(ServerExpression box);
183183
/**
184184
* Returns a box's southern boundary.
185185
*
@@ -190,7 +190,7 @@ public interface CtsExpr {
190190
* @param box The box. (of <a href="{@docRoot}/doc-files/types/cts_box.html">cts:box</a>)
191191
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a> server data type
192192
*/
193-
public ServerExpression boxSouth(CtsBoxExpr box);
193+
public ServerExpression boxSouth(ServerExpression box);
194194
/**
195195
* Returns a box's western boundary.
196196
*
@@ -201,17 +201,7 @@ public interface CtsExpr {
201201
* @param box The box. (of <a href="{@docRoot}/doc-files/types/cts_box.html">cts:box</a>)
202202
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a> server data type
203203
*/
204-
public ServerExpression boxWest(CtsBoxExpr box);
205-
/**
206-
* Returns a geospatial circle value.
207-
*
208-
* <p>
209-
* Provides a client interface to the <a href="http://docs.marklogic.com/cts:circle" target="mlserverdoc">cts:circle</a> server function.
210-
* @param radius The radius of the circle. The units for the radius is determined at runtime by the query options (miles is currently the only option). (of <a href="{@docRoot}/doc-files/types/xs_double.html">xs:double</a>)
211-
* @param center A point representing the center of the circle. (of <a href="{@docRoot}/doc-files/types/cts_point.html">cts:point</a>)
212-
* @return a server expression with the <a href="{@docRoot}/doc-files/types/cts_circle.html">cts:circle</a> server data type
213-
*/
214-
public CtsCircleExpr circle(double radius, double center);
204+
public ServerExpression boxWest(ServerExpression box);
215205
/**
216206
* Returns a geospatial circle value.
217207
* <p>
@@ -254,7 +244,7 @@ public interface CtsExpr {
254244
* @param circle The circle. (of <a href="{@docRoot}/doc-files/types/cts_circle.html">cts:circle</a>)
255245
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a> server data type
256246
*/
257-
public ServerExpression circleRadius(CtsCircleExpr circle);
247+
public ServerExpression circleRadius(ServerExpression circle);
258248
/**
259249
* Match documents in at least one of the specified collections. It will match both documents and properties documents in the collections with the given URIs.
260250
* <p>
@@ -2677,7 +2667,7 @@ public interface CtsExpr {
26772667
* @param point The point. (of <a href="{@docRoot}/doc-files/types/cts_point.html">cts:point</a>)
26782668
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a> server data type
26792669
*/
2680-
public ServerExpression pointLatitude(CtsPointExpr point);
2670+
public ServerExpression pointLatitude(ServerExpression point);
26812671
/**
26822672
* Returns a point's longitude value.
26832673
*
@@ -2688,7 +2678,7 @@ public interface CtsExpr {
26882678
* @param point The point. (of <a href="{@docRoot}/doc-files/types/cts_point.html">cts:point</a>)
26892679
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a> server data type
26902680
*/
2691-
public ServerExpression pointLongitude(CtsPointExpr point);
2681+
public ServerExpression pointLongitude(ServerExpression point);
26922682
/**
26932683
* Returns a geospatial polygon value.
26942684
*
@@ -3057,20 +3047,6 @@ public interface CtsExpr {
30573047
*/
30583048
public CtsBoxSeqExpr boxSeq(CtsBoxExpr... items);
30593049

3060-
/**
3061-
* Constructs a sequence of CtsCircleExpr items.
3062-
* @param items the CtsCircleExpr items collected by the sequence
3063-
* @return a CtsCircleSeqExpr sequence
3064-
*/
3065-
public CtsCircleSeqExpr circleSeq(CtsCircleExpr... items);
3066-
3067-
/**
3068-
* Constructs a sequence of CtsBoxExpr items.
3069-
* @param items the CtsBoxExpr items collected by the sequence
3070-
* @return a CtsBoxSeqExpr sequence
3071-
*/
3072-
public CtsBoxSeqExpr boxSeq(CtsBoxExpr... items);
3073-
30743050
/**
30753051
* Constructs a sequence of CtsCircleExpr items.
30763052
* @param items the CtsCircleExpr items collected by the sequence

marklogic-client-api/src/main/java/com/marklogic/client/impl/CtsExprImpl.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public CtsBoxExpr box(ServerExpression south, ServerExpression west, ServerExpre
148148

149149

150150
@Override
151-
public ServerExpression boxEast(CtsBoxExpr box) {
151+
public ServerExpression boxEast(ServerExpression box) {
152152
if (box == null) {
153153
throw new IllegalArgumentException("box parameter for boxEast() cannot be null");
154154
}
@@ -157,7 +157,7 @@ public ServerExpression boxEast(CtsBoxExpr box) {
157157

158158

159159
@Override
160-
public ServerExpression boxNorth(CtsBoxExpr box) {
160+
public ServerExpression boxNorth(ServerExpression box) {
161161
if (box == null) {
162162
throw new IllegalArgumentException("box parameter for boxNorth() cannot be null");
163163
}
@@ -166,7 +166,7 @@ public ServerExpression boxNorth(CtsBoxExpr box) {
166166

167167

168168
@Override
169-
public ServerExpression boxSouth(CtsBoxExpr box) {
169+
public ServerExpression boxSouth(ServerExpression box) {
170170
if (box == null) {
171171
throw new IllegalArgumentException("box parameter for boxSouth() cannot be null");
172172
}
@@ -175,13 +175,14 @@ public ServerExpression boxSouth(CtsBoxExpr box) {
175175

176176

177177
@Override
178-
public ServerExpression boxWest(CtsBoxExpr box) {
178+
public ServerExpression boxWest(ServerExpression box) {
179179
if (box == null) {
180180
throw new IllegalArgumentException("box parameter for boxWest() cannot be null");
181181
}
182182
return new XsExprImpl.NumericCallImpl("cts", "box-west", new Object[]{ box });
183183
}
184184

185+
185186
@Override
186187
public CtsCircleExpr circle(double radius, ServerExpression center) {
187188
return circle(xs.doubleVal(radius), center);
@@ -210,7 +211,7 @@ public CtsPointExpr circleCenter(ServerExpression circle) {
210211

211212

212213
@Override
213-
public ServerExpression circleRadius(CtsCircleExpr circle) {
214+
public ServerExpression circleRadius(ServerExpression circle) {
214215
if (circle == null) {
215216
throw new IllegalArgumentException("circle parameter for circleRadius() cannot be null");
216217
}
@@ -1764,7 +1765,7 @@ public CtsPointExpr point(ServerExpression latitude, ServerExpression longitude)
17641765

17651766

17661767
@Override
1767-
public ServerExpression pointLatitude(CtsPointExpr point) {
1768+
public ServerExpression pointLatitude(ServerExpression point) {
17681769
if (point == null) {
17691770
throw new IllegalArgumentException("point parameter for pointLatitude() cannot be null");
17701771
}
@@ -1773,7 +1774,7 @@ public ServerExpression pointLatitude(CtsPointExpr point) {
17731774

17741775

17751776
@Override
1776-
public ServerExpression pointLongitude(CtsPointExpr point) {
1777+
public ServerExpression pointLongitude(ServerExpression point) {
17771778
if (point == null) {
17781779
throw new IllegalArgumentException("point parameter for pointLongitude() cannot be null");
17791780
}

0 commit comments

Comments
 (0)