Skip to content

Commit 92a919b

Browse files
committed
Merge remote-tracking branch 'origin/dev' into dev
2 parents bf0f6dd + b4caaae commit 92a919b

File tree

4 files changed

+176
-85
lines changed

4 files changed

+176
-85
lines changed

src/main/java/com/marklogic/client/document/DocumentManager.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,18 +1138,18 @@ public void writeDefaultMetadata(String docId, Transaction transaction)
11381138
public Format getContentFormat();
11391139

11401140
/**
1141-
* Returns the categories of metadata to read, write, or patch.
1141+
* Returns the categories of metadata to read, write, patch, or search.
11421142
*
11431143
* @return the set of metadata categories
11441144
*/
11451145
public Set<Metadata> getMetadataCategories();
11461146
/**
1147-
* Specifies the categories of metadata to read, write, or patch.
1147+
* Specifies the categories of metadata to read, write, patch, or search.
11481148
* @param categories the set of metadata categories
11491149
*/
11501150
public void setMetadataCategories(Set<Metadata> categories);
11511151
/**
1152-
* Specifies the categories of metadata to read, write, or patch.
1152+
* Specifies the categories of metadata to read, write, patch, or search.
11531153
* @param categories the set of metadata categories
11541154
*/
11551155
public void setMetadataCategories(Metadata... categories);

src/main/java/com/marklogic/client/impl/PojoPageImpl.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ public T next() {
5858
return docPage.nextContent(handle).get();
5959
}
6060

61+
@Override
62+
public void close() {
63+
docPage.close();
64+
}
65+
6166
@Override
6267
public void remove() {
6368
throw new UnsupportedOperationException();

src/main/java/com/marklogic/client/pojo/PojoPage.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,7 @@
2020
/** Enables pagination over objects retrieved from the server and deserialized by
2121
* PojoRepository read and search methods.
2222
*/
23-
public interface PojoPage<T> extends Page<T> {}
23+
public interface PojoPage<T> extends Page<T> {
24+
/** Frees the underlying resources, including the http connection. */
25+
public void close();
26+
}

0 commit comments

Comments
 (0)