/** * {@inheritDoc} */ @Override protected final Index createSystemIndex( String oid, URI path, boolean withReverse ) throws LdapException { LOG.debug( "Supplied index {} is not a JdbmIndex. " + "Will create new JdbmIndex using copied configuration parameters." ); JdbmIndex<?> jdbmIndex; if ( oid.equals( ApacheSchemaConstants.APACHE_RDN_AT_OID ) ) { jdbmIndex = new JdbmRdnIndex(); jdbmIndex.setAttributeId( ApacheSchemaConstants.APACHE_RDN_AT_OID ); jdbmIndex.setNumDupLimit( JdbmIndex.DEFAULT_DUPLICATE_LIMIT ); } else if ( oid.equals( ApacheSchemaConstants.APACHE_ALIAS_AT_OID ) ) { jdbmIndex = new JdbmDnIndex( ApacheSchemaConstants.APACHE_ALIAS_AT_OID ); jdbmIndex.setAttributeId( ApacheSchemaConstants.APACHE_ALIAS_AT_OID ); jdbmIndex.setNumDupLimit( JdbmIndex.DEFAULT_DUPLICATE_LIMIT ); } else { jdbmIndex = new JdbmIndex( oid, withReverse ); jdbmIndex.setNumDupLimit( JdbmIndex.DEFAULT_DUPLICATE_LIMIT ); } jdbmIndex.setWkDirPath( path ); return jdbmIndex; }
index.setWkDirPath( new File( jdbmIndexBean.getIndexWorkingDir() ).toURI() ); index.setWkDirPath( partition.getPartitionPath() );