use of org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndex in project aws-iam-ldap-bridge by denismo.
the class ApacheDSUtils method addIndex.
/**
* Add a new set of index on the given attributes
*
* @param partition The partition on which we want to add index
* @param attrs The list of attributes to index
*/
public void addIndex(Partition partition, String... attrs) {
// Index some attributes on the apache partition
Set<Index<?, String>> indexedAttributes = new HashSet<Index<?, String>>();
for (String attribute : attrs) {
indexedAttributes.add(new JdbmIndex(attribute, false));
}
((JdbmPartition) partition).setIndexedAttributes(indexedAttributes);
}
Aggregations