If you need to conditionally create index — replace this method (indexExists) with AerospikeRepository.createIndex(java.lang.Class<E>, java.lang.String, java.lang.String, com.aerospike.client.query.IndexType) and catch IndexAlreadyExistsException.
AerospikeRepository.createIndex(java.lang.Class<E>, java.lang.String, java.lang.String, com.aerospike.client.query.IndexType)
IndexAlreadyExistsException
More information can be found at: https://github.com/aerospike/aerospike-client-java/pull/149
If you need to conditionally create index — replace this method (indexExists) with AerospikeOperations.createIndex(java.lang.Class<T>, java.lang.String, java.lang.String, com.aerospike.client.query.IndexType) and catch IndexAlreadyExistsException.
AerospikeOperations.createIndex(java.lang.Class<T>, java.lang.String, java.lang.String, com.aerospike.client.query.IndexType)
Copyright © 2020–2021 Aerospike, Inc. All rights reserved.