@Override
    public List<Index> listIndexes() throws QueryException {
        try {
            return DatabaseImpl.get(dbQueue.submit(new ListIndexesCallable()));
        }  catch (ExecutionException e) {
            String msg = "Failed to list indexes";
            logger.log(Level.SEVERE, msg, e);
            throw new QueryException(msg, e);
        }

    }
@ Override public List < Index > listIndexes ( ) throws QueryException { try { return DatabaseImpl . get ( dbQueue . submit ( new ListIndexesCallable ( ) ) ) ; } catch ( ExecutionException e ) { String msg = "Failed to list indexes" ; logger . log ( Level . SEVERE , msg , e ) ; throw new QueryException ( msg , e ) ; } }
Get a list of indexes and their definitions as a Map.

Returns:

{ indexName: { type: json,
name: indexName,
fields: [field1, field2]
}

@return Map of indexes in the database.