private void allocateIndex(){
  if (index != null)   throw new IllegalStateException();
  if (!open.get()) {
    throw new IllegalStateException();
  }
  store=new MemStore(new MemoryManager(DirectBufferPool.INSTANCE));
  if (isBTree) {
    index=BTree.create(store,metadata);
  }
 else {
    index=HTree.create(store,(HTreeIndexMetadata)metadata);
  }
}

private void allocateIndex ( ) { if ( index != null ) throw new IllegalStateException ( ) ; if ( ! open . get ( ) ) { throw new IllegalStateException ( ) ; } store = new MemStore ( new MemoryManager ( DirectBufferPool . INSTANCE ) ) ; if ( isBTree ) { index = BTree . create ( store , metadata ) ; } else { index = HTree . create ( store , ( HTreeIndexMetadata ) metadata ) ; } }
create the persistence capable index .
