public class MDataEntries
extends java.lang.Object
| Constructor and Description |
|---|
MDataEntries(net.maidsafe.api.AppHandle appHandle) |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.CompletableFuture<MDataValue> |
getValue(NativeHandle entriesHandle,
byte[] key)
Get the value for the given key in the Mutable Data
|
java.util.concurrent.CompletableFuture<java.lang.Void> |
insert(NativeHandle entriesHandle,
byte[] key,
byte[] value)
Insert a new entry
|
java.util.concurrent.CompletableFuture<java.lang.Long> |
length(NativeHandle entriesHandle)
Returns the number of entries in the Mutable Data.
|
java.util.concurrent.CompletableFuture<java.util.List<MDataEntry>> |
listEntries(NativeHandle entriesHandle)
List of the entries in the Mutable data
|
java.util.concurrent.CompletableFuture<NativeHandle> |
newEntriesHandle()
Create a new entries handle
|
public java.util.concurrent.CompletableFuture<NativeHandle> newEntriesHandle()
NativeHandle instancepublic java.util.concurrent.CompletableFuture<java.lang.Void> insert(NativeHandle entriesHandle, byte[] key, byte[] value)
entriesHandle - The entries handle as NativeHandlekey - Mutable Data entry keyvalue - Mutable Data entry valuepublic java.util.concurrent.CompletableFuture<java.lang.Long> length(NativeHandle entriesHandle)
entriesHandle - The entries handle as NativeHandlepublic java.util.concurrent.CompletableFuture<MDataValue> getValue(NativeHandle entriesHandle, byte[] key)
entriesHandle - Entries handle as NativeHandlekey - The key of the MDataEntryMDataValuepublic java.util.concurrent.CompletableFuture<java.util.List<MDataEntry>> listEntries(NativeHandle entriesHandle)
entriesHandle - The entries handle as NativeHandleMDataEntry>