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
2 answers

How to create document in Couch base with "no replication"?

Hi Couch base Experts, We have got two clusters with replication on, we want to identify which cluster, our java application is writing to. So we are thinking of adding an unique document to each cluster, we can then query the document to find out…
0
votes
0 answers

How can I get rows based on size from HBase?

I want to scan / query rows from hbase based on size. I tried using scan.setMaxResultSize(100000) But I didn't get the expected result. Is there any way to achieve this?
Harry
  • 3,072
  • 6
  • 43
  • 100
0
votes
1 answer

Couchbase nested objects Type

I'm trying to find out the best way to get the type of a nested object in a couchbase document. I have this document : { "storeType": { "name": "Store" }, "name": "Store", "_class": "common.domain.Store", "categories": [ { …
0
votes
1 answer

Connection timeout to Couchbase using jdbc

I am trying to connect to Couchbase through JDBC, but it is behaving arbitrarily as it gives a timeout exception many times. I also tried to increase the time out, but it still errors out. The following is the code used to connect to…
user2176576
  • 734
  • 3
  • 14
  • 39
0
votes
2 answers

How to update TTL for Couchbase Document?

At the time of updating the document, I need to change the TTL according to the value of a field. Does Couchbase support changing TTL once the document is created?
0
votes
1 answer

Set TTL when documents are being replicated from CBL to Couchbase Server

I used the code below in my app to set the ttl for a document in CBL. If I am right, I think this ttl value will not be propagated to the couchbase server right? So how can I set the ttl for the documents that are replicated from CBL to couchbase…
Jack Liu
  • 43
  • 2
  • 9
0
votes
1 answer

Inserting and fetching the Large JSON document in Couchbase?

I am trying to insert the Large JSON document in the Couchbase. I have inserted the document like below. Bucket bucket = cluster.openBucket("default"); String jsondoc = "{{ "exams": { "exam1": { "year": { "math": { …
M.S.Naidu
  • 2,239
  • 5
  • 32
  • 56
0
votes
1 answer

Error While creating a bucket through cbq shell in Couchbase

When I execute the following command to create a bucket in couchbase server. cbq.exe> bucket-create -c 127.0.0.1:8091 -u Administrator -p password --bucket=test_bucket --bucket-type=couchbase --bucket-port=11222 --bucket-ramsize=200…
M.S.Naidu
  • 2,239
  • 5
  • 32
  • 56
0
votes
1 answer

Difference between GetLastCheckpointRequest and GetAllMutationTokensRequest?

What is difference in sequence number returned by above two ? AFAIK both return latest sequence number, which might not have been replicated or persisted to disk. Difference I am aware of, GetAllMutationTokensRequest returns values only for a single…
Zxcv Mnb
  • 733
  • 8
  • 19
0
votes
1 answer

Couchbase not calling onComplete after sending data

I am fetching couchbase mutations through java code similar to run function in https://github.com/couchbase/couchbase-kafka-connector/blob/master/src/main/java/com/couchbase/kafka/CouchbaseReader.java . We subscribe with a io scheduler instead of…
Zxcv Mnb
  • 733
  • 8
  • 19
0
votes
1 answer

Proper way to migrate documents in couchbase (API 1.4.x -> 2.0.x)

I would like to migrate documents persisted in couchbase via API 1.4.10 to new documents provided by API 2.0.5 like JsonDocument. I found that there is possibility to add custom transcoders to Bucket, so when decoding documents I can check for flags…
0
votes
1 answer

Why ScanConsistency gives TimeOutExection in couchbase?

I have a use case in which I want updated data from the Couchbase so when I query couchbase for the data simply like: bucket.get.query(Query.simple(query)) It gives me updated data, upto some time , but as the size of the data base increases it…
Shivansh
  • 3,454
  • 23
  • 46
0
votes
1 answer

Couchbase - getting single bucket information with the java api

Is there a way to retrieve this: . . . "authType": "sasl", "autoCompactionSettings": { "allowedTimePeriod": { "abortOutside": true, "fromHour": 1, "fromMinute": 0, "toHour": 2, "toMinute": 0 …
belostoky
  • 934
  • 2
  • 11
  • 22
0
votes
1 answer

Couchbase java sdk 1.4.7 numeric key in view Query not returning results

The view definition emits a string field from the document as a key. The field value can be all numeric or alphanumeric. Query using key with all numeric value does not return any row but alphanumeric key returns data. On server web console and rest…
Jags
  • 799
  • 7
  • 19
0
votes
1 answer

CouchBaseTemplate Connection issue

I have the Following CouchBase Template Bean: @PostConstruct public void initIt() throws Exception { if(couchbaseDisabled) return; couchbaseClient= new CouchbaseClient( bootstrapUris(Arrays.asList(hosts.split(","))), …
1 2 3
11
12