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
1
vote
1 answer

JSON document inserted as binary object in Couchbase

I'm trying to insert a java POJO into the couchbase store and the json just below the cas call looks like this - { "key": "sampleKey", "myMap": { "Messages": [ { "field": "f1", "label": "l1" }, { …
Swapnil
  • 8,201
  • 4
  • 38
  • 57
1
vote
1 answer

How to configure the java client for couchbase to auto-reconnect?

How to configure the java client for couchbase to auto-reconnect? Is it turned on by default? Also, it will be great if somebody can help to show how to do it using spring-data-couchbase.
Aris
  • 77
  • 1
  • 6
1
vote
0 answers

Couchbase Java SDK cannot get and delete documents

I don't get why this doesn't delete all the documents in the view. I'm using Couchbase Java SDK 2.1.3 with Couchbase 3.0.3. public class Main { public static void main(String[] args) { // Create a cluster reference …
sscarduzio
  • 5,938
  • 5
  • 42
  • 54
1
vote
1 answer

Creating Couchbase views in code: First query returns 0 rows, index builds in background

I am creating a view in code using the Couchbase Java API 2.1.2 like this: DefaultView view = DefaultView.create(viewName, jsMapFunctionAsString); List views = new ArrayList<>(); views.add(view); DesignDocument doc =…
Sebastian
  • 5,177
  • 4
  • 30
  • 47
0
votes
1 answer

update xattr in meta in couchbase sdk 3.4.0 with java

I want to update xattr in meta of a document. I didnt find any document provided by couchbase. { "meta": { "id": "0000c84b-e2bc-43ac-af51-7cf141777f49", "rev": "102-163756db3f7100000000000002000000", "expiration": 0, "flags":…
Amit Sinha
  • 566
  • 7
  • 22
0
votes
2 answers

Random errors when retrieving data after having inserted them

I have tried to build a set of CRUD REST APIs using Spring Boot. I have created the project via Spring Initializr with the dependency spring-boot-starter-data-couchbase. I have uploaded the project here…
0
votes
0 answers

How to change channel of couchbase using Java api

We have some documents in couchbase in which we have channel like follow channel:['job1'] Now we have to add another channel that is job2 So channel list will be channel :['job1','job2'] Can anyone having idea about how to modify that channel…
0
votes
1 answer

Null keyword added to couchbase exceptions with spring 2.6.6

Hi I am using Couchbase Java SDK 3.2.6 with Spring 2.6.6 and junit5 When some exception thrown in tests, all of them are failing becuase "null" keyword added at the end of exception message. Test import…
erondem
  • 482
  • 1
  • 11
  • 24
0
votes
0 answers

Consuming apis with webclient

please help me how to create web client My requirement is to develop middle ware services to consume existing APIs and database is postgres now my confusion is how to get data from postgres through consuming APIs and store the data to couchbase…
0
votes
1 answer

N1QL vs Async api for multi get document couchbase

There are 2 ways to fetch multiple documents in couchbase. N1QL query Reactive client (source) I understand that 2nd has backpresssure and all because of it being reactive in nature. But I want to understand what other functional differences are…
best wishes
  • 5,789
  • 1
  • 34
  • 59
0
votes
0 answers

Insertion time out error in Couchbase from springboot

Unable To save identifier IN COUCHBASE, identifier: identifiertail::123::459, , Details: com.couchbase.client.core.error.AmbiguousTimeoutException: UpsertRequest, Reason: TIMEOUT …
0
votes
0 answers

Updating the Structure of Employee for List to Map in Couchbase

I have one class which was having data member as List. Due to requirement changes now I have updated the Structure of the class from List to Map Earlier structure of class was Class Document{ List
Ashish Bhavsar
  • 236
  • 4
  • 18
0
votes
2 answers

Insert/update docs in neo4j using Couchbase

I want to insert/update the document in Couchbase from their it should be automatically inserted/updated to neo4j database. Is their any plugin or software to do the same? How can I achieve this functionality? Couchbase enterprise version: 6.6 Neo4j…
stg
  • 67
  • 1
  • 6
0
votes
1 answer

Graalvm Couchbase client not working. How to fix fix?

Graalvm native executable not working with couchbase java client. How to fix it ? Warning: RecomputeFieldValue.ArrayIndexScale automatic substitution failed. The automatic substitution registration was attempted because a call to…
previousdeveloper
  • 315
  • 2
  • 6
  • 12
0
votes
1 answer

Spring data query with parameters

I have to create this N1QL couchbase query in Spring data select... LIKE "TASK:100:%" where 100 is a parameter, but I don't know if it is possible @Query("#{#n1ql.selectEntity} where META().id like \"TASK:$1%:\" ") List findTasks(String…