Skip to content

Commit cf1a94f

Browse files
author
cgreer
committed
bug:19086 Javadoc improvements
git-svn-id: svn+ssh://svn.marklogic.com/project/engsvn/client-api/java/trunk@113055 62cac252-8da6-4816-9e9d-6dc37b19578c
1 parent 38ad685 commit cf1a94f

27 files changed

+194
-77
lines changed

src/main/java/com/marklogic/client/admin/config/QueryOptionsBuilder.java

Lines changed: 63 additions & 44 deletions
Large diffs are not rendered by default.

src/main/java/com/marklogic/client/admin/config/support/Annotatable.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
import com.marklogic.client.admin.config.QueryOptions.QueryAnnotation;
2121

2222
/**
23-
* Provides simple interface for adding annotations and retrieving them
23+
* Defines methods for adding annotations and retrieving them
24+
* from those option nodes that can be annotated.
2425
*/
2526
public interface Annotatable<T> {
2627
T annotate(String xmlAnnotation);

src/main/java/com/marklogic/client/admin/config/support/Buckets.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,9 @@
1515
*/
1616
package com.marklogic.client.admin.config.support;
1717

18+
/**
19+
* Marks {@link com.marklogic.client.admin.config.QueryOptions.QueryRange.Bucket}
20+
* and {@link com.marklogic.client.admin.config.QueryOptions.QueryRange.ComputedBucket}
21+
* as buckets for the purposes of {@link com.marklogic.client.admin.config.QueryOptions.QueryRange} configuration.
22+
*/
1823
public interface Buckets {}

src/main/java/com/marklogic/client/admin/config/support/ConstraintSource.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515
*/
1616
package com.marklogic.client.admin.config.support;
1717

18-
/*
19-
* rename the interface referring to constraint-type elements.
20-
* i.e. range|value|word|geospatial|properties|custom|collection
18+
/**
19+
* Marks the options configurations that can back constraints.
20+
* Used in {@link com.marklogic.client.admin.config.QueryOptionsBuilder} expressions only. Maps to
21+
* range|value|word|geospatial|properties|custom|collection
22+
* elements in the backing XML.
2123
*/
22-
public interface ConstraintSource {}
24+
public interface ConstraintSource {}

src/main/java/com/marklogic/client/admin/config/support/GeospatialIndex.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515
*/
1616
package com.marklogic.client.admin.config.support;
1717

18-
/*
19-
* Marker for geospatial index.
20-
* geo-elem-pair|geo-attr|geo-elem
18+
/**
19+
* Marker for geospatial index configurations.
20+
* Maps to geo-elem-pair|geo-attr|geo-elem
21+
* in the Search API options schema.
22+
* Not actually in use.
2123
*/
2224
public interface GeospatialIndex {}

src/main/java/com/marklogic/client/admin/config/support/GeospatialIndexType.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
*/
1616
package com.marklogic.client.admin.config.support;
1717

18+
/**
19+
* Used in {@link com.marklogic.client.admin.config.QueryOptionsBuilder} to help construct configurations for geospatial indexes.
20+
* Must match the encoding method for geospatial coordinates, wich can be stored as
21+
* delimited values in a single element, or as values in pairs of elements or attributes.
22+
*/
1823
public enum GeospatialIndexType {
1924

2025
ELEMENT, ELEMENT_PAIR, ATTRIBUTE_PAIR;

src/main/java/com/marklogic/client/admin/config/support/GeospatialSpec.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@
1919

2020
import com.marklogic.client.admin.config.support.GeospatialIndexType;
2121

22+
/**
23+
* Defines an interface to the methods for storing
24+
* geospatial values in MarkLogic indexes.
25+
* Depending on the {@link com.marklogic.client.admin.config.support.GeospatialIndexType}, different
26+
* methods will actually be used in order to build
27+
* the geospatial configuration.
28+
* Used only in {@link com.marklogic.client.admin.config.QueryOptionsBuilder} expressions.
29+
*/
2230
public interface GeospatialSpec {
2331

2432

src/main/java/com/marklogic/client/admin/config/support/HeatmapAndOptions.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919

2020
import com.marklogic.client.admin.config.QueryOptions.Heatmap;
2121

22+
/**
23+
* Models an object that helps build heatmaps for use
24+
* in {@link com.marklogic.client.admin.config.QueryOptionsBuilder} geospatial expressions.
25+
* Do not use directly. Build using
26+
* {@link com.marklogic.client.admin.config.QueryOptionsBuilder}.heatmap()
27+
*/
2228
public class HeatmapAndOptions {
2329

2430
private Heatmap heatmap;

src/main/java/com/marklogic/client/admin/config/support/IndexSpec.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
import com.marklogic.client.admin.config.QueryOptions.PathIndex;
2121

2222
/**
23-
* Supports building query configurations by encapsulating common index methods in one place.
23+
* Defines methods for accessing index (or indexable) configuration elements.
24+
* Indexes in MarkLogic may be built on element names, path expressions, fields, and json keys.
25+
* This interface simply defines shared methods among those MarkLogic entities that
26+
* back term sources and range sources.
2427
*/
2528
public interface IndexSpec {
2629

src/main/java/com/marklogic/client/admin/config/support/IndexSpecImpl.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@
2222
import com.marklogic.client.admin.config.QueryOptions.MarkLogicQName;
2323
import com.marklogic.client.admin.config.QueryOptions.PathIndex;
2424

25-
25+
/**
26+
* Implements accessors to index or index-like configurations.
27+
* Used only in {@link com.marklogic.client.admin.config.QueryOptionsBuilder} expressions.
28+
*/
2629
public class IndexSpecImpl implements TermSpec {
2730
public QName getAttribute() {
2831
return attribute;

0 commit comments

Comments
 (0)