This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE section PUBLIC '-//OASIS//DTD DocBook XML V4.5//EN' | |
'http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd' [ | |
<!ENTITY % every.entities SYSTEM "entities.ent"> | |
%every.entities; | |
]> | |
<section id="membase-tap-protocol"> | |
<title>TAP Protocol</title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
java -jar /home/ingenthr/bin/nexus-indexer-3.0.4-cli.jar \ | |
-t full \ | |
-i /var/www/domains/couchbase.com/files/htdocs/maven2/.index \ | |
-r /var/www/domains/couchbase.com/files/htdocs/maven2 \ | |
-d /var/www/domains/couchbase.com/files/htdocs/maven2/.index \ | |
-n couchbasemaven | |
chmod 775 /var/www/domains/couchbase.com/files/htdocs/maven2/.index | |
chmod 664 /var/www/domains/couchbase.com/files/htdocs/maven2/.index/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2017 Couchbase, Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.couchbase.client.demo; | |
import com.couchbase.client.core.metrics.DefaultLatencyMetricsCollectorConfig; | |
import com.couchbase.client.core.metrics.DefaultMetricsCollectorConfig; | |
import com.couchbase.client.java.*; | |
import com.couchbase.client.java.document.*; | |
import com.couchbase.client.java.document.json.*; | |
import com.couchbase.client.java.env.CouchbaseEnvironment; | |
import com.couchbase.client.java.env.DefaultCouchbaseEnvironment; | |
import com.couchbase.client.java.query.*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.couchbase.client.example; | |
import com.couchbase.client.java.Bucket; | |
import com.couchbase.client.java.Cluster; | |
import com.couchbase.client.java.CouchbaseCluster; | |
import com.couchbase.client.java.document.json.JsonObject; | |
import com.couchbase.client.java.query.*; | |
import static com.couchbase.client.java.query.Select.select; | |
import static com.couchbase.client.java.query.dsl.Expression.*; | |
import static com.couchbase.client.java.query.Select.select; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -xe | |
# Setup Services | |
curl -i -u Administrator:password -X POST \ | |
http://127.0.0.1:8091/node/controller/setupServices \ | |
-d 'services=kv%2Cn1ql%2Cindex' | |
# Initialize Node with /couchbase for index and data path | |
curl -i -u Administrator:password -X POST \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -xe | |
# Setup Services | |
curl -i -u Administrator:password -X POST \ | |
http://127.0.0.1:8091/node/controller/setupServices \ | |
-d 'services=kv%2Cn1ql%2Cindex' | |
# Initialize Node with /couchbase for index and data path | |
curl -i -u Administrator:password -X POST \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.couchbase.client.java.Bucket; | |
import com.couchbase.client.java.Cluster; | |
import com.couchbase.client.java.CouchbaseCluster; | |
import java.util.concurrent.TimeUnit; | |
/** | |
* Created by ingenthr on 12/16/15. | |
*/ | |
public class Main { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Returns an RDD based on email address extracted from the document */ | |
def CreateMappableRdd(s: (String, String)): (String, JsonDocument) = { | |
val return_doc = JsonDocument.create(s._1, JsonObject.fromJson(s._2)) | |
(return_doc.content().getString("email"), return_doc) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Read | |
Observable loadedFromId = bucket.get("id"); // async using RxJava | |
JsonDocument found = bucket.get("notexisting").toBlocking().singleOrDefault(null); // sync | |
// Write | |
JsonDocument found = bucket.get("notexisting").toBlocking().singleOrDefault(null); // | |
// Query |
NewerOlder