Skip to content

Commit 8b2c1f4

Browse files
committed
Merge branch 'release-5.3.1'
2 parents b1dc4f9 + bbff64e commit 8b2c1f4

File tree

7 files changed

+130
-128
lines changed

7 files changed

+130
-128
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# CHANGELOG
22

3+
## 5.3.1
4+
#### Improvements and Bug Fixes
5+
- [#1206](https://github.com/marklogic/java-client-api/issues/1206) - README update to JCenter url
6+
- [#1263](https://github.com/marklogic/java-client-api/issues/1263) - Switch jackson-dataformat-xml dependency to testCompile
7+
38
## 5.3.0
49
#### New Functionality
510
- RowBatcher - bulk export of all rows or documents from a view (internal Jira issue)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ And add this repository to your pom.xml repositories section:
8484

8585
<repository>
8686
<id>jcenter</id>
87-
<url>http://jcenter.bintray.com</url>
87+
<url>https://jcenter.bintray.com</url>
8888
</repository>
8989

9090
For gradle projects, include the following:

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group=com.marklogic
2-
version=5.3.0
3-
releaseVersion=5.3.0
2+
version=5.3.1
3+
releaseVersion=5.3.1
44
describedName=MarkLogic Java Client API
55
publishUrl=file:../marklogic-java/releases

marklogic-client-api/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dependencies {
2222
compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version:'2.11.1'
2323
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version:'2.11.1'
2424
compile group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-csv', version:'2.11.1'
25-
compile group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-xml', version:'2.11.1'
25+
testCompile group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-xml', version:'2.11.1'
2626
testCompile group: 'org.mockito', name: 'mockito-all', version:'1.10.19'
2727
testCompile group: 'ch.qos.logback', name: 'logback-classic', version:'1.2.3'
2828
testCompile group: 'org.hsqldb', name: 'hsqldb', version:'2.5.1'

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

Lines changed: 54 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,7 @@
1515
*/
1616
package com.marklogic.client.expression;
1717

18-
import com.marklogic.client.type.XsAnyAtomicTypeSeqVal;
19-
import com.marklogic.client.type.XsAnyAtomicTypeVal;
20-
import com.marklogic.client.type.XsDateTimeVal;
21-
import com.marklogic.client.type.XsDoubleVal;
22-
import com.marklogic.client.type.XsQNameSeqVal;
23-
import com.marklogic.client.type.XsQNameVal;
24-
import com.marklogic.client.type.XsStringSeqVal;
25-
import com.marklogic.client.type.XsStringVal;
26-
import com.marklogic.client.type.XsUnsignedLongVal;
27-
28-
import com.marklogic.client.type.ServerExpression;
29-
import com.marklogic.client.type.CtsPeriodExpr;
30-
import com.marklogic.client.type.CtsPeriodSeqExpr;
31-
import com.marklogic.client.type.CtsQueryExpr;
32-
import com.marklogic.client.type.CtsQuerySeqExpr;
33-
import com.marklogic.client.type.CtsReferenceExpr;
34-
import com.marklogic.client.type.CtsReferenceSeqExpr;
35-
import com.marklogic.client.type.CtsRegionExpr;
36-
import com.marklogic.client.type.CtsRegionSeqExpr;
18+
import com.marklogic.client.type.*;
3719

3820
// IMPORTANT: Do not edit. This file is generated.
3921

@@ -120,7 +102,7 @@ public interface CtsExpr {
120102
* @param east The eastern boundary of the box. (of <a href="{@docRoot}/doc-files/types/xs_double.html">xs:double</a>)
121103
* @return a server expression with the <a href="{@docRoot}/doc-files/types/cts_box.html">cts:box</a> server data type
122104
*/
123-
public ServerExpression box(double south, double west, double north, double east);
105+
public CtsBoxExpr box(double south, double west, double north, double east);
124106
/**
125107
* Returns a geospatial box value.
126108
*
@@ -134,7 +116,7 @@ public interface CtsExpr {
134116
* @param east The eastern boundary of the box. (of <a href="{@docRoot}/doc-files/types/xs_double.html">xs:double</a>)
135117
* @return a server expression with the <a href="{@docRoot}/doc-files/types/cts_box.html">cts:box</a> server data type
136118
*/
137-
public ServerExpression box(ServerExpression south, ServerExpression west, ServerExpression north, ServerExpression east);
119+
public CtsBoxExpr box(XsDoubleVal south, XsDoubleVal west, XsDoubleVal north, XsDoubleVal east);
138120
/**
139121
* Returns a box's eastern boundary.
140122
*
@@ -145,7 +127,7 @@ public interface CtsExpr {
145127
* @param box The box. (of <a href="{@docRoot}/doc-files/types/cts_box.html">cts:box</a>)
146128
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a> server data type
147129
*/
148-
public ServerExpression boxEast(ServerExpression box);
130+
public ServerExpression boxEast(CtsBoxExpr box);
149131
/**
150132
* Returns a box's northern boundary.
151133
*
@@ -156,7 +138,7 @@ public interface CtsExpr {
156138
* @param box The box. (of <a href="{@docRoot}/doc-files/types/cts_box.html">cts:box</a>)
157139
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a> server data type
158140
*/
159-
public ServerExpression boxNorth(ServerExpression box);
141+
public ServerExpression boxNorth(CtsBoxExpr box);
160142
/**
161143
* Returns a box's southern boundary.
162144
*
@@ -167,7 +149,7 @@ public interface CtsExpr {
167149
* @param box The box. (of <a href="{@docRoot}/doc-files/types/cts_box.html">cts:box</a>)
168150
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a> server data type
169151
*/
170-
public ServerExpression boxSouth(ServerExpression box);
152+
public ServerExpression boxSouth(CtsBoxExpr box);
171153
/**
172154
* Returns a box's western boundary.
173155
*
@@ -178,7 +160,17 @@ public interface CtsExpr {
178160
* @param box The box. (of <a href="{@docRoot}/doc-files/types/cts_box.html">cts:box</a>)
179161
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a> server data type
180162
*/
181-
public ServerExpression boxWest(ServerExpression box);
163+
public ServerExpression boxWest(CtsBoxExpr box);
164+
/**
165+
* Returns a geospatial circle value.
166+
*
167+
* <p>
168+
* Provides a client interface to the <a href="http://docs.marklogic.com/cts:circle" target="mlserverdoc">cts:circle</a> server function.
169+
* @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>)
170+
* @param center A point representing the center of the circle. (of <a href="{@docRoot}/doc-files/types/cts_point.html">cts:point</a>)
171+
* @return a server expression with the <a href="{@docRoot}/doc-files/types/cts_circle.html">cts:circle</a> server data type
172+
*/
173+
public CtsCircleExpr circle(double radius, double center);
182174
/**
183175
* Returns a geospatial circle value.
184176
*
@@ -190,7 +182,7 @@ public interface CtsExpr {
190182
* @param center A point representing the center of the circle. (of <a href="{@docRoot}/doc-files/types/cts_point.html">cts:point</a>)
191183
* @return a server expression with the <a href="{@docRoot}/doc-files/types/cts_circle.html">cts:circle</a> server data type
192184
*/
193-
public ServerExpression circle(ServerExpression radius, ServerExpression center);
185+
public CtsCircleExpr circle(XsDoubleVal radius, XsDoubleVal center);
194186
/**
195187
* Returns a circle's center point.
196188
*
@@ -201,7 +193,7 @@ public interface CtsExpr {
201193
* @param circle The circle. (of <a href="{@docRoot}/doc-files/types/cts_circle.html">cts:circle</a>)
202194
* @return a server expression with the <a href="{@docRoot}/doc-files/types/cts_point.html">cts:point</a> server data type
203195
*/
204-
public ServerExpression circleCenter(ServerExpression circle);
196+
public ServerExpression circleCenter(CtsCircleExpr circle);
205197
/**
206198
* Returns a circle's radius.
207199
*
@@ -212,7 +204,7 @@ public interface CtsExpr {
212204
* @param circle The circle. (of <a href="{@docRoot}/doc-files/types/cts_circle.html">cts:circle</a>)
213205
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a> server data type
214206
*/
215-
public ServerExpression circleRadius(ServerExpression circle);
207+
public ServerExpression circleRadius(CtsCircleExpr circle);
216208
/**
217209
* 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.
218210
* <p>
@@ -263,7 +255,7 @@ public interface CtsExpr {
263255
* @param inner The innner (hole) polygons. (of <a href="{@docRoot}/doc-files/types/cts_polygon.html">cts:polygon</a>)
264256
* @return a server expression with the <a href="{@docRoot}/doc-files/types/cts_complex-polygon.html">cts:complex-polygon</a> server data type
265257
*/
266-
public ServerExpression complexPolygon(ServerExpression outer, ServerExpression inner);
258+
public CtsPolygonExpr complexPolygon(CtsPolygonExpr outer, CtsPolygonExpr inner);
267259
/**
268260
* Returns a query matching documents in the directories with the given URIs.
269261
* <p>
@@ -2474,7 +2466,7 @@ public interface CtsExpr {
24742466
* @param longitude The longitude of the point. (of <a href="{@docRoot}/doc-files/types/xs_double.html">xs:double</a>)
24752467
* @return a server expression with the <a href="{@docRoot}/doc-files/types/cts_point.html">cts:point</a> server data type
24762468
*/
2477-
public ServerExpression point(double latitude, double longitude);
2469+
public CtsPointExpr point(double latitude, double longitude);
24782470
/**
24792471
* Returns a point value.
24802472
*
@@ -2486,7 +2478,7 @@ public interface CtsExpr {
24862478
* @param longitude The longitude of the point. (of <a href="{@docRoot}/doc-files/types/xs_double.html">xs:double</a>)
24872479
* @return a server expression with the <a href="{@docRoot}/doc-files/types/cts_point.html">cts:point</a> server data type
24882480
*/
2489-
public ServerExpression point(ServerExpression latitude, ServerExpression longitude);
2481+
public CtsPointExpr point(XsDoubleVal latitude, XsDoubleVal longitude);
24902482
/**
24912483
* Returns a point's latitude value.
24922484
*
@@ -2497,7 +2489,7 @@ public interface CtsExpr {
24972489
* @param point The point. (of <a href="{@docRoot}/doc-files/types/cts_point.html">cts:point</a>)
24982490
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a> server data type
24992491
*/
2500-
public ServerExpression pointLatitude(ServerExpression point);
2492+
public ServerExpression pointLatitude(CtsPointExpr point);
25012493
/**
25022494
* Returns a point's longitude value.
25032495
*
@@ -2508,7 +2500,7 @@ public interface CtsExpr {
25082500
* @param point The point. (of <a href="{@docRoot}/doc-files/types/cts_point.html">cts:point</a>)
25092501
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a> server data type
25102502
*/
2511-
public ServerExpression pointLongitude(ServerExpression point);
2503+
public ServerExpression pointLongitude(CtsPointExpr point);
25122504
/**
25132505
* Returns a geospatial polygon value.
25142506
*
@@ -2519,7 +2511,7 @@ public interface CtsExpr {
25192511
* @param vertices The vertices of the polygon, given in order. No edge may cover more than 180 degrees of either latitude or longitude. The polygon as a whole may not encompass both poles. These constraints are necessary to ensure an unambiguous interpretation of the polygon. There must be at least three vertices. The first vertex should be identical to the last vertex to close the polygon. vertexes. (of <a href="{@docRoot}/doc-files/types/xs_anyAtomicType.html">xs:anyAtomicType</a>)
25202512
* @return a server expression with the <a href="{@docRoot}/doc-files/types/cts_polygon.html">cts:polygon</a> server data type
25212513
*/
2522-
public ServerExpression polygon(ServerExpression vertices);
2514+
public CtsPolygonExpr polygon(XsAnyAtomicTypeSeqVal vertices);
25232515
/**
25242516
* Returns a query that matches all documents where query matches document-properties. When searching documents or document-locks, this query type provides a convenient way to additionally constrain the search against document-properties fragments.
25252517
* <p>
@@ -2852,13 +2844,41 @@ public interface CtsExpr {
28522844
* @return a CtsQueryExpr server expression
28532845
*/
28542846
public CtsQueryExpr wordQuery(XsStringSeqVal text, XsStringSeqVal options, XsDoubleVal weight);
2847+
/**
2848+
* Constructs a sequence of CtsBoxExpr items.
2849+
* @param items the CtsBoxExpr items collected by the sequence
2850+
* @return a CtsBoxSeqExpr sequence
2851+
*/
2852+
public CtsBoxSeqExpr boxSeq(CtsBoxExpr... items);
2853+
2854+
/**
2855+
* Constructs a sequence of CtsCircleExpr items.
2856+
* @param items the CtsCircleExpr items collected by the sequence
2857+
* @return a CtsCircleSeqExpr sequence
2858+
*/
2859+
public CtsCircleSeqExpr circleSeq(CtsCircleExpr... items);
2860+
28552861
/**
28562862
* Constructs a sequence of CtsPeriodExpr items.
28572863
* @param items the CtsPeriodExpr items collected by the sequence
28582864
* @return a CtsPeriodSeqExpr sequence
28592865
*/
28602866
public CtsPeriodSeqExpr periodSeq(CtsPeriodExpr... items);
28612867

2868+
/**
2869+
* Constructs a sequence of CtsPointExpr items.
2870+
* @param items the CtsPointExpr items collected by the sequence
2871+
* @return a CtsPointSeqExpr sequence
2872+
*/
2873+
public CtsPointSeqExpr pointSeq(CtsPointExpr... items);
2874+
2875+
/**
2876+
* Constructs a sequence of CtsPolygonExpr items.
2877+
* @param items the CtsPolygonExpr items collected by the sequence
2878+
* @return a CtsPolygonSeqExpr sequence
2879+
*/
2880+
public CtsPolygonSeqExpr polygonSeq(CtsPolygonExpr... items);
2881+
28622882
/**
28632883
* Constructs a sequence of CtsQueryExpr items.
28642884
* @param items the CtsQueryExpr items collected by the sequence

0 commit comments

Comments
 (0)