Questions tagged [couchbase-java-api]

The Couchbase Java SDK provides API to working with JSON documents using the Data, N1QL Query, Full-Text Search, Analytics Query and Views Queries available from Couchbase Server.

This Java native client library also has an RxJava based asynchronous API, has built in metrics exposed through an event bus API.

Resources:

172 questions
0
votes
1 answer

Spring Data for Couchbase - java.lang.IllegalArgumentException: Unsupported type for JsonArray:

I have a SpringBoot 2 app that uses using Couchbase as a database, Spring-Boot and Spring-Data and Lombok fot the getters and equals method I have created this Repository @ViewIndexed(designDoc = "bendicionesDoc") public interface BenRepository…
0
votes
0 answers

Getting Query timeout in Couchbase while performing aggregation on 100m records using spark

I am getting Query timeout when reading 100m records from cocuhbase bucket using spark
0
votes
0 answers

Converting N1Ql query having “where” clause with “IN” parameters into mapreduce views

I have a plain select query for which mapreduce view is already present. Query: select count(*) from `my-bucket` where type = 'Order' and status = 'CREATED' and timestamp > 1535605294320 and timestamp <= 1535605594320 view: function (doc, meta) { …
Manish Bansal
  • 2,400
  • 2
  • 21
  • 37
0
votes
1 answer

Couchbase scala observable n1ql query results with missing parameter type for expanded function ((x$12) => x$12.rows())

I'm trying to use the couchbase async bucket n1ql query as following: I have an example of this non-compiling code below that you can run: (note I have to use scala:…
Jas
  • 14,493
  • 27
  • 97
  • 148
0
votes
1 answer

Using Couchbase SDK in Java

I am trying to map the result of a couchbase query to a java reference type, so far I have found no way to do this. How can I capture the following as a java reference type: N1qlQueryResult result = couchbaseBucket.query( …
0
votes
1 answer

mapping over scala rx observables when only onComplete is called

I'm using scala observables to get items from couchbase, then i'm using map,flatMap,zip to transform the result. The problem is that if an item does not exist in couchbase then for example the .zip is not called only onComplete. Example: import…
Jas
  • 14,493
  • 27
  • 97
  • 148
0
votes
1 answer

Signal disconnected - java

I am using Couchbase-Java-Client-2.5.0 and couchbase-server-community_4.5.1-ubuntu14.04_amd64.deb. I have two nodes in the cluster, both nodes are in AWS. I am getting connection timeout and signal disconnected in console while trying to run the…
sweta
  • 149
  • 10
0
votes
3 answers

How to limit Couchbase client from trying to connect to Couchbase server when it's down?

I'm trying to handle Couchbase bootstrap failure gracefully and not fail the application startup. The idea is to use "Couchbase as a service", so that if I can't connect to it, I should still be able to return a degraded response. I've been able to…
Abhijit Sarkar
  • 21,927
  • 20
  • 110
  • 219
0
votes
1 answer

N1QL query not recognizing parameters

I am trying to use parameterized N1QL Query but its not recognizing the json place holders and throwing incorrect syntax exception. Code: public static final String LMR_DETAILS = "SELECT * FROM $bucketName WHERE lmr.lmrStatusDescriptionTe…
Sree
  • 1
  • 2
0
votes
1 answer

Couchbase on Google Container Engine resets itself

I have deployed a 4 node Couchbase cluster using Docker images on the Google Container Engine with Kubernetes. I was able to access the Couchbase Console, look at the buckets, query etc. Now, after a couple of days, I go the Console URL and the…
0
votes
1 answer

what is the standard procedure for Generating keys for each document in java..?

I want to insert documents into Couchbase as a bulk in Java. So what is the standard procedure for Generating keys for each document in java..?
0
votes
1 answer

Hbase ResultScanner throws a Null Pointer Exception

I wrote a hbase java client as follows. package hbase; import java.io.IOException; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.HBaseConfiguration; import org.apache.hadoop.hbase.TableName; import…
0
votes
1 answer

membase server to couchbase server migration : Java client

I was using aspymemcached client to connect to my membase server. code look like : public static MemcachedClient MemcachedClient(String bucketName){ URI server1 = new URI("http://192.168.100.111:8091/pools"); URI server2 = new…
Nitin
  • 2,701
  • 2
  • 30
  • 60
0
votes
1 answer

Couchbase query exception on runtime Unsupported parameter type for key: class com.couchbase.client.protocol.views.Query

I am getting this exception every time i try to query a view on Couchbase DB from my spring boot application. Unsupported parameter type for key: class com.couchbase.client.protocol.views.Query. I was setting a string on setKey() method of Query…
0
votes
1 answer

How to get ordered results from couchbase

I have in my bucket a document containing a list of ID (childList). I would like to query over this list and keep the result ordered like in my JSON. My query is like (using java SDK) : String query = new StringBuilder().append("SELECT B.name,…
Magmix
  • 13
  • 4