Error calling getCapacity on LargeMap


Im using server 3.6.0 and Java client 3.1.5. When executing the following code:

LargeMap lmap = new LargeMap(client, null, key1, "lmap", null);
System.out.println("lmap capacity:"+lmap.getCapacity());

I get error:

 com.aerospike.client.AerospikeException: Error Code 100: function not found

The same happens with setCapacity(..). Any idea why this function is not found?


The LMap type was deprecated at server 3.5.2 seven months ago.

The current API is described in the repo aerospike/aerospike-lua-core. getCapacity() is replaced by llist.config, setCapacity with llist.setPageSize.

The Java client is aligned to those changes with getCapacity() removed (in Java client release 3.1.1), and getConfig() and setPageSize() added.


LargeMap, LargeStack and LargeSet are still available in Java API. You might want to mark them @Deprecated



You’re correct. Accordingly, we’ve filed Issue #45 on the Java client repo on Github. Thank you for bringing this up.



Thank you for posting about LDTs in our forum. Please see the LDT Feature Guide for current LDT recommendations and best practices.



Effective immediately, we will no longer actively support the LDT feature and will eventually remove the API. The exact deprecation and removal timeline will depend on customer and community requirements. Instead of LDTs, we advise that you use our newer List and SortedMap APIs, which are now available in all Aerospike-supported clients at the General Availability level. Read our blog post for details.