Skip to content

Commit 1f102cb

Browse files
committed
Update "add" method javadocs to state that double is also a valid bin type.
1 parent 76f5265 commit 1f102cb

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

client/src/com/aerospike/client/AerospikeClient.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -510,10 +510,9 @@ public final void prepend(EventLoop eventLoop, WriteListener listener, WritePoli
510510
//-------------------------------------------------------
511511

512512
/**
513-
* Add integer bin values to existing record bin values.
513+
* Add integer/double bin values to existing record bin values.
514514
* The policy specifies the transaction timeout, record expiration and how the transaction is
515515
* handled when the record already exists.
516-
* This call only works for integer values.
517516
*
518517
* @param policy write configuration parameters, pass in null for defaults
519518
* @param key unique record identifier
@@ -529,13 +528,12 @@ public final void add(WritePolicy policy, Key key, Bin... bins) throws Aerospike
529528
}
530529

531530
/**
532-
* Asynchronously add integer bin values to existing record bin values.
531+
* Asynchronously add integer/double bin values to existing record bin values.
533532
* This method registers the command with an event loop and returns.
534533
* The event loop thread will process the command and send the results to the listener.
535534
* <p>
536535
* The policy specifies the transaction timeout, record expiration and how the transaction is
537536
* handled when the record already exists.
538-
* This call only works for integer values.
539537
*
540538
* @param eventLoop event loop that will process the command
541539
* @param listener where to send results, pass in null for fire and forget

client/src/com/aerospike/client/Operation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public static Operation prepend(Bin bin) {
6363
}
6464

6565
/**
66-
* Create integer add database operation.
66+
* Create integer/double add database operation.
6767
*/
6868
public static Operation add(Bin bin) {
6969
return new Operation(Type.ADD, bin.name, bin.value);

0 commit comments

Comments
 (0)