Skip to content

Commit

Permalink
Merge pull request #19 from yuce/cpmap-docs
Browse files Browse the repository at this point in the history
CPMap Docs and 5.4.0 Release Notes
  • Loading branch information
yuce authored Apr 17, 2024
2 parents 9c2ce64 + 298d2a3 commit 3be335e
Show file tree
Hide file tree
Showing 5 changed files with 426 additions and 7 deletions.
369 changes: 369 additions & 0 deletions docs/modules/ROOT/pages/clc-cpmap.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,369 @@
= clc cpmap

CPMap commands are a group of CPMap operations.

Usage:

[source,bash]
----
clc cpmap [command] [flags]
----

== Commands

* <<clc-cpmap-compare-and-set, clc cpmap compare-and-set>>
* <<clc-cpmap-delete, clc cpmap delete>>
* <<clc-cpmap-destroy, clc cpmap destroy>>
* <<clc-cpmap-get, clc cpmap get>>
* <<clc-cpmap-put, clc cpmap put>>
* <<clc-cpmap-remove, clc cpmap remove>>
* <<clc-cpmap-set, clc cpmap set>>

== clc cpmap compare-and-set

Sets the value for the given key if it has the expected value.

Usage:

[source,bash]
----
clc cpmap compare-and-set [key] [expected-value] [new-value] [flags]
----

Parameters:

[cols="1m,1a,2a,1a"]
|===
|Parameter|Required|Description|Default

|`--name`, `-n`
|Optional
|Name of the map.
|`default`

|`key`
|Required
|Key of the map entry.
|N/A

|`expected-value`,
|Required
|Value to set for the key.
|N/A

|`new-value`,
|Required
|Value to set for the key.
|N/A

|`--key-type`, `-k`
|Optional
|Data type of the key. One of: `string`, `bool`, `json`, `i8`, `i16`, `i32`, `i64`, `f32`, `f64`
|string

|`--value-type`, `-v`
|Optional
|Data type of the value. One of: `string`, `bool`, `json`, `i8`, `i16`, `i32`, `i64`, `f32`, `f64`
|string

|===

.Global parameters
[%collapsible]
====
include::partial$global-parameters.adoc[]
====

== clc cpmap get

Gets a value from the given CPMap.

Usage:

[source,bash]
----
clc cpmap get [key] [flags]
----

Parameters:

[cols="1m,1a,2a,1a"]
|===
|Parameter|Required|Description|Default

|`--name`, `-n`
|Optional
|Name of the CPMap.
|`default`

|`key`
|Required
|Key of the CPMap entry.
|N/A

|`--key-type`, `-k`
|Optional
|Data type of the key. One of: `string`, `bool`, `json`, `i8`, `i16`, `i32`, `i64`, `f32`, `f64`.
|string

|===

.Global parameters
[%collapsible]
====
include::partial$global-parameters.adoc[]
====

Example:

[source,bash]
----
clc cpmap get -n yearbook -k i16 2012
----

== clc cpmap set

Sets a value in the given CPMap.

Usage:

[source,bash]
----
clc cpmap set [key] [value] [flags]
----

Parameters:

[cols="1m,1a,2a,1a"]
|===
|Parameter|Required|Description|Default

|`--name`, `-n`
|Optional
|Name of the CPMap.
|`default`

|`key`
|Required
|Key of the CPMap entry.
|N/A

|`value`,
|Required
|Value to set for the key.
|N/A

|`--key-type`, `-k`
|Optional
|Data type of the key. One of: `string`, `bool`, `json`, `i8`, `i16`, `i32`, `i64`, `f32`, `f64`
|string

|`--value-type`, `-v`
|Optional
|Data type of the value. One of: `string`, `bool`, `json`, `i8`, `i16`, `i32`, `i64`, `f32`, `f64`
|string

|===

.Global parameters
[%collapsible]
====
include::partial$global-parameters.adoc[]
====

Example:

[source,bash]
----
clc cpmap -n my-cpmap set -k string hello -v f32 19.94
----


== clc cpmap put

Puts the given value in the given CPMap and returns the old value.

Usage:

[source,bash]
----
clc cpmap put [key] [value] [flags]
----

Parameters:

[cols="1m,1a,2a,1a"]
|===
|Parameter|Required|Description|Default

|`--name`, `-n`
|Optional
|Name of the CPMap.
|`default`

|`key`
|Required
|Key of the CPMap entry.
|N/A

|`value`,
|Required
|Value to set for the key.
|N/A

|`--key-type`, `-k`
|Optional
|Data type of the key. One of: `string`, `bool`, `json`, `i8`, `i16`, `i32`, `i64`, `f32`, `f64`
|string

|`--value-type`, `-v`
|Optional
|Data type of the value. One of: `string`, `bool`, `json`, `i8`, `i16`, `i32`, `i64`, `f32`, `f64`
|string

|===

.Global parameters
[%collapsible]
====
include::partial$global-parameters.adoc[]
====

Example:

[source,bash]
----
clc cpmap -n my-cpmap put -k string hello -v f32 19.94
----

== clc cpmap remove

Removes the value of a given key in a CPMap and returns the old value.

Usage:

[source,bash]
----
clc cpmap remove [flags] [key]
----

Parameters:

[cols="1m,1a,2a,1a"]
|===
|Parameter|Required|Description|Default

|`--name`, `-n`
|Optional
|Name of the map.
|`default`

|`key`
|Required
|Key of the map entry.
|N/A

|`--key-type`, `-k`
|Optional
|Data type of the key. One of: `string`, `bool`, `json`, `i8`, `i16`, `i32`, `i64`, `f32`, `f64`
|string

|===

.Global parameters
[%collapsible]
====
include::partial$global-parameters.adoc[]
====

Example:

[source,bash]
----
clc cpmap remove --name my-cpmap --key-type string k1
k1
----


== clc cpmap delete

Deletes the value of a given key in a CPMap.

Usage:

[source,bash]
----
clc cpmap delete [flags] [key]
----

Parameters:

[cols="1m,1a,2a,1a"]
|===
|Parameter|Required|Description|Default

|`--name`, `-n`
|Optional
|Name of the map.
|`default`

|`key`
|Required
|Key of the map entry.
|N/A

|`--key-type`, `-k`
|Optional
|Data type of the key. One of: `string`, `bool`, `json`, `i8`, `i16`, `i32`, `i64`, `f32`, `f64`
|string

|===

.Global parameters
[%collapsible]
====
include::partial$global-parameters.adoc[]
====

Example:

[source,bash]
----
clc cpmap delete --name my-cpmap --key-type string k1
k1
----

== clc cpmap destroy

Deletes the CPMap and all the data in it.

Usage:

[source,bash]
----
clc cpmap destroy [flags]
----

Parameters:

[cols="1m,1a,2a,1a"]
|===
|Parameter|Required|Description|Default

|`--name`, `-n`
|Optional
|Name of the map.
|`default`

|`--yes`
|Optional
|Skip confirming the destroy operation.
|`false`

|===

.Global parameters
[%collapsible]
====
include::partial$global-parameters.adoc[]
====
5 changes: 1 addition & 4 deletions docs/modules/ROOT/pages/clc-job.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,10 @@ clc job [command] [options]

== clc job submit

Creates a Jet job using the provided JAR file or YAML job definition.
Creates a Jet job using the provided JAR file.

This command requires a Hazelcast {hazelcast-cloud} or Hazelcast Platform cluster of version 5.3.0 or above.

TIP: For further information about codeless job definition, see the xref:yaml-job-definition.adoc[YAML Job Definition] topic.


Usage:

[source,bash]
Expand Down
Loading

0 comments on commit 3be335e

Please sign in to comment.