Get fields of a specific index

For a task I am doing, I need to know the fields that make up an index. For e.g. I have created an index like this:

           database.createIndex("indexName", IndexBuilder.valueIndex(
  now I can do


to get an array of indexes in the database (returns [indexName]);

But is there a way to know which fields are indexed under indexName (so I would return say [catId, addieId]? I failed to find a way to doing it. Is it possible anywhere, even as part of database property?