2
私はAerospikeで新しいプロジェクトを開始しており、MapOperation
をテストしたかったのです。しかし、私のテストはすべて同じエラーで失敗します。ここでAerospikeマップ操作が失敗しました
がテスト
IAerospikeClient client = new AerospikeClientProvider(config).get();
Key key = new Key("test", "other", "other:1");
client.delete(client.getWritePolicyDefault(), key);
Map<Value,Value> inputMap = new HashMap<Value,Value>();
inputMap.put(Value.get(1), Value.get(55));
inputMap.put(Value.get(2), Value.get(33));
// Write values to empty map.
Record record = client.operate(client.getWritePolicyDefault(), key,
MapOperation.putItems(MapPolicy.Default, "mapbin", inputMap));
の一例であり、これは誤り
com.aerospike.client.AerospikeException: Error Code 4: Parameter error
at com.aerospike.client.command.ReadCommand.parseResult(ReadCommand.java:121)
at com.aerospike.client.command.SyncCommand.execute(SyncCommand.java:57)
at com.aerospike.client.AerospikeClient.operate(AerospikeClient.java:697)
at de.ascendro.f4m.server.AerospikeDaoTest.operateMapPut(AerospikeDaoTest.java:207)
である私は、エアロスパイク3.8.2.3とエアロスパイクJavaクライアント3.2.4 を使用しています私は、エアロスパイクまたはのために特定の設定が必要です実行するクライアントMapOperation
? または何か間違っていますか?