Skip to content

Commit c3ee098

Browse files
committed
fixes couchbase implementation
1 parent 386b2f2 commit c3ee098

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

couchbase-driver/src/main/java/org/jnosql/diana/couchbase/document/DefaultCouchbaseDocumentCollectionManager.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@ public List<DocumentEntity> select(DocumentQuery query) throws NullPointerExcept
122122
return entities;
123123
}
124124

125+
@Override
126+
public long count(String documentCollection) {
127+
throw new UnsupportedOperationException("Couchbase does not support count method by document collection");
128+
}
129+
125130

126131
@Override
127132
public List<DocumentEntity> n1qlQuery(String n1qlQuery, JsonObject params) throws NullPointerException {

couchbase-driver/src/main/java/org/jnosql/diana/couchbase/document/DefaultCouchbaseDocumentCollectionManagerAsync.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ public void select(DocumentQuery query, Consumer<List<DocumentEntity>> callBack)
103103
just(query).map(manager::select).subscribe(callBack::accept, ERROR_FIND);
104104
}
105105

106+
@Override
107+
public void count(String documentCollection, Consumer<Long> callback) {
108+
throw new UnsupportedOperationException("Couchbase does not support count method by document collection");
109+
}
110+
106111

107112
@Override
108113
public void n1qlQuery(String n1qlQuery, JsonObject params, Consumer<List<DocumentEntity>> callback) throws NullPointerException, ExecuteAsyncQueryException {

0 commit comments

Comments
 (0)