Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions modules/guides/pages/bulk-operations.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,17 @@ Java::

[source,java]
----
include::java-sdk:hello-world:example$KvBulkHelloWorld.java[tag=kv-users,indent=0]
include::java-sdk:devguide:example$java/KvBulkHelloWorld.java[tag=kv-users,indent=0]

include::java-sdk:hello-world:example$KvBulkHelloWorld.java[tag=kv-bulk-insert,indent=0]
include::java-sdk:devguide:example$java/KvBulkHelloWorld.java[tag=kv-bulk-insert,indent=0]

----

NOTE: A `JsonDocument` class is used to supplement the example.

[source,java]
----
include::java-sdk:hello-world:example$KvBulkHelloWorld.java[tag=kv-bulk-class,indent=0]
include::java-sdk:devguide:example$java/KvBulkHelloWorld.java[tag=kv-bulk-class,indent=0]
----

{github}
Expand Down Expand Up @@ -242,9 +242,9 @@ Using the `reactor.core.publisher.Flux` reactive library, call the `fromIterable

[source,java]
----
include::java-sdk:hello-world:example$KvBulkHelloWorld.java[tag=kv-users,indent=0]
include::java-sdk:devguide:example$java/KvBulkHelloWorld.java[tag=kv-users,indent=0]

include::java-sdk:hello-world:example$KvBulkHelloWorld.java[tag=kv-bulk-get,indent=0]
include::java-sdk:devguide:example$java/KvBulkHelloWorld.java[tag=kv-bulk-get,indent=0]

----

Expand Down Expand Up @@ -378,9 +378,9 @@ Java::

[source,java]
----
include::java-sdk:hello-world:example$KvBulkHelloWorld.java[tag=kv-users,indent=0]
include::java-sdk:devguide:example$java/KvBulkHelloWorld.java[tag=kv-users,indent=0]

include::java-sdk:hello-world:example$KvBulkHelloWorld.java[tag=kv-bulk-upsert,indent=0]
include::java-sdk:devguide:example$java/KvBulkHelloWorld.java[tag=kv-bulk-upsert,indent=0]

----

Expand Down Expand Up @@ -512,9 +512,9 @@ Using the `reactor.core.publisher.Flux` reactive library, call the `fromIterable

[source,java]
----
include::java-sdk:hello-world:example$KvBulkHelloWorld.java[tag=kv-users,indent=0]
include::java-sdk:devguide:example$java/KvBulkHelloWorld.java[tag=kv-users,indent=0]

include::java-sdk:hello-world:example$KvBulkHelloWorld.java[tag=kv-bulk-remove,indent=0]
include::java-sdk:devguide:example$java/KvBulkHelloWorld.java[tag=kv-bulk-remove,indent=0]

----

Expand Down
8 changes: 4 additions & 4 deletions modules/guides/pages/create-index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,14 @@ The following example creates an unnamed primary index.

[source,java]
----
include::java-sdk:hello-world:example$IndexHelloWorld.java[tag=primary,indent=0]
include::java-sdk:devguide:example$java/IndexHelloWorld.java[tag=primary,indent=0]
----

The following example creates a named primary index on the specified keyspace.

[source,java]
----
include::java-sdk:hello-world:example$IndexHelloWorld.java[tag=named-primary,indent=0]
include::java-sdk:devguide:example$java/IndexHelloWorld.java[tag=named-primary,indent=0]
----

{github}
Expand Down Expand Up @@ -302,7 +302,7 @@ The following example creates a secondary index on the `name` field in the speci

[source,java]
----
include::java-sdk:hello-world:example$IndexHelloWorld.java[tag=secondary,indent=0]
include::java-sdk:devguide:example$java/IndexHelloWorld.java[tag=secondary,indent=0]
----

{github}
Expand Down Expand Up @@ -420,7 +420,7 @@ The following example creates a secondary index on the `name`, `id`, `icao`, and

[source,java]
----
include::java-sdk:hello-world:example$IndexHelloWorld.java[tag=composite,indent=0]
include::java-sdk:devguide:example$java/IndexHelloWorld.java[tag=composite,indent=0]
----

{github}
Expand Down
4 changes: 2 additions & 2 deletions modules/guides/pages/creating-data.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ A `MutationResult` object is returned containing the result and metadata relevan

[source,java]
----
include::java-sdk:hello-world:example$KvHelloWorldScoped.java[tag=kv-insert,indent=0]
include::java-sdk:devguide:example$java/KvHelloWorldScoped.java[tag=kv-insert,indent=0]
----

NOTE: If the document already exists, the SDK returns a `DocumentExistsException` error.
Expand Down Expand Up @@ -240,7 +240,7 @@ Java::

[source,java]
----
include::java-sdk:hello-world:example$KvHelloWorldScoped.java[tag=kv-insert-with-opts,indent=0]
include::java-sdk:devguide:example$java/KvHelloWorldScoped.java[tag=kv-insert-with-opts,indent=0]
----

{github}
Expand Down
4 changes: 2 additions & 2 deletions modules/guides/pages/deleting-data.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Use the `remove()` method to delete a document from the database.

[source,java]
----
include::java-sdk:hello-world:example$KvHelloWorldScoped.java[tag=kv-remove,indent=0]
include::java-sdk:devguide:example$java/KvHelloWorldScoped.java[tag=kv-remove,indent=0]
----

NOTE: If the document doesn't exist, the SDK will return a `DocumentNotFoundException` error.
Expand Down Expand Up @@ -220,7 +220,7 @@ A `MutateInResult` object is returned, containing the result and metadata releva

[source,java]
----
include::java-sdk:hello-world:example$KvHelloWorldScoped.java[tag=kv-remove-subdoc,indent=0]
include::java-sdk:devguide:example$java/KvHelloWorldScoped.java[tag=kv-remove-subdoc,indent=0]
----

NOTE: If the path doesn't exist, the SDK will return a `PathNotFoundException` error.
Expand Down
4 changes: 2 additions & 2 deletions modules/guides/pages/drop-index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ The following example drops an unnamed primary index from the specified keyspace

[source,java]
----
include::java-sdk:hello-world:example$IndexHelloWorld.java[tag=drop-primary,indent=0]
include::java-sdk:devguide:example$java/IndexHelloWorld.java[tag=drop-primary,indent=0]
----

{github}
Expand Down Expand Up @@ -276,7 +276,7 @@ The following example drops a named index from the specified keyspace.

[source,java]
----
include::java-sdk:hello-world:example$IndexHelloWorld.java[tag=drop-secondary,indent=0]
include::java-sdk:devguide:example$java/IndexHelloWorld.java[tag=drop-secondary,indent=0]
----

{github}
Expand Down
6 changes: 3 additions & 3 deletions modules/guides/pages/reading-data.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ A `GetResult` object is returned, which includes the `content`, `cas` value, and

[source,java]
----
include::java-sdk:hello-world:example$KvHelloWorldScoped.java[tag=kv-get,indent=0]
include::java-sdk:devguide:example$java/KvHelloWorldScoped.java[tag=kv-get,indent=0]
----

NOTE: If the document doesn't exist, the SDK returns a `DocumentNotFoundException` error.
Expand Down Expand Up @@ -253,7 +253,7 @@ A `GetResult` object is returned, which may include extra metadata, depending on

[source,java]
----
include::java-sdk:hello-world:example$KvHelloWorldScoped.java[tag=kv-get-with-opts,indent=0]
include::java-sdk:devguide:example$java/KvHelloWorldScoped.java[tag=kv-get-with-opts,indent=0]
----

{github}
Expand Down Expand Up @@ -401,7 +401,7 @@ A `LookupInResult` object is returned, containing the result and metadata releva

[source,java]
----
include::java-sdk:hello-world:example$KvHelloWorldScoped.java[tag=kv-get-subdoc,indent=0]
include::java-sdk:devguide:example$java/KvHelloWorldScoped.java[tag=kv-get-subdoc,indent=0]
----

NOTE: If the document path can't be found, the SDK returns a `PathNotFoundException` error.
Expand Down
2 changes: 1 addition & 1 deletion modules/guides/pages/select.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ The result object includes each row found.

[source,java]
----
include::java-sdk:hello-world:example$StartUsing.java[tag=n1ql-query,indent=0]
include::java-sdk:devguide:example$java/StartUsing.java[tag=n1ql-query,indent=0]
----

{github}
Expand Down
6 changes: 3 additions & 3 deletions modules/guides/pages/updating-data.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ If it doesn't exist, Couchbase Capella creates a new document.

[source,java]
----
include::java-sdk:hello-world:example$KvHelloWorldScoped.java[tag=kv-update-upsert,indent=0]
include::java-sdk:devguide:example$java/KvHelloWorldScoped.java[tag=kv-update-upsert,indent=0]
----

{github}
Expand Down Expand Up @@ -222,7 +222,7 @@ A new `CAS` value is provided in the returned `MutationResult` object.

[source,java]
----
include::java-sdk:hello-world:example$KvHelloWorldScoped.java[tag=kv-update-replace,indent=0]
include::java-sdk:devguide:example$java/KvHelloWorldScoped.java[tag=kv-update-replace,indent=0]
----

NOTE: If the document doesn't exist, the SDK will return a `DocumentNotFoundException` error.
Expand Down Expand Up @@ -364,7 +364,7 @@ A `MutateInResult` object is returned, containing the result and metadata releva

[source,java]
----
include::java-sdk:hello-world:example$KvHelloWorldScoped.java[tag=kv-update-subdoc,indent=0]
include::java-sdk:devguide:example$java/KvHelloWorldScoped.java[tag=kv-update-subdoc,indent=0]
----

{github}
Expand Down