Skip to content

Commit 1b0bb02

Browse files
authored
Merge pull request #1613 from marklogic/feature/563-optic-part-1
DEVEXP-563 Added geohashSubhashes to Optic plan builder
2 parents 421350d + 30ae066 commit 1b0bb02

27 files changed

+110
-89
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022 MarkLogic Corporation
2+
* Copyright (c) 2023 MarkLogic Corporation
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -3240,7 +3240,7 @@ public interface CtsExpr {
32403240
* @return a CtsCircleSeqExpr sequence
32413241
*/
32423242
public CtsCircleSeqExpr circleSeq(CtsCircleExpr... items);
3243-
3243+
32443244
/**
32453245
* Constructs a sequence of CtsPeriodExpr items.
32463246
* @param items the CtsPeriodExpr items collected by the sequence

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022 MarkLogic Corporation
2+
* Copyright (c) 2023 MarkLogic Corporation
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

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

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022 MarkLogic Corporation
2+
* Copyright (c) 2023 MarkLogic Corporation
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -767,6 +767,17 @@ public interface GeoExpr {
767767
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_double.html">xs:double</a> server data type
768768
*/
769769
public ServerExpression geohashPrecisionDimensions(ServerExpression precision);
770+
/**
771+
* Given a geohash string, return the 32 subhashes.
772+
*
773+
* <a name="ml-server-type-geohash-subhashes"></a>
774+
775+
* <p>
776+
* Provides a client interface to the <a href="http://docs.marklogic.com/geo:geohash-subhashes" target="mlserverdoc">geo:geohash-subhashes</a> server function.
777+
* @param hash The geohash string, as produced from the function geo:geohash-encode. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)
778+
* @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type
779+
*/
780+
public ServerExpression geohashSubhashes(ServerExpression hash);
770781
/**
771782
* Given a geohash string, return the 32 subhashes.
772783
* <p>
@@ -778,9 +789,6 @@ public interface GeoExpr {
778789
public ServerExpression geohashSubhashes(ServerExpression hash, String which);
779790
/**
780791
* Given a geohash string, return the 32 subhashes.
781-
*
782-
* <a name="ml-server-type-geohash-subhashes"></a>
783-
784792
* <p>
785793
* Provides a client interface to the <a href="http://docs.marklogic.com/geo:geohash-subhashes" target="mlserverdoc">geo:geohash-subhashes</a> server function.
786794
* @param hash The geohash string, as produced from the function geo:geohash-encode. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022 MarkLogic Corporation
2+
* Copyright (c) 2023 MarkLogic Corporation
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022 MarkLogic Corporation
2+
* Copyright (c) 2023 MarkLogic Corporation
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022 MarkLogic Corporation
2+
* Copyright (c) 2023 MarkLogic Corporation
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

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

Lines changed: 34 additions & 36 deletions
Large diffs are not rendered by default.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022 MarkLogic Corporation
2+
* Copyright (c) 2023 MarkLogic Corporation
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022 MarkLogic Corporation
2+
* Copyright (c) 2023 MarkLogic Corporation
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022 MarkLogic Corporation
2+
* Copyright (c) 2023 MarkLogic Corporation
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)