@Override public void destroy() { final IResourceLock resourceLock = acquireExclusiveLock(); try { final IIndexManager indexManager = getIndexManager(); indexManager.dropIndex(getFQN(LexiconKeyOrder.TERM2ID)); indexManager.dropIndex(getFQN(LexiconKeyOrder.ID2TERM)); if (getLexiconConfiguration().getBlobsThreshold() != Integer.MAX_VALUE) { // Destroy BLOBS index IFF it exists. indexManager.dropIndex(getFQN(LexiconKeyOrder.BLOBS)); } term2id = null; id2term = null; blobs = null; if (textIndex) { getSearchEngine().destroy(); viewRef.set(null); } // discard the value factory for the lexicon's namespace. valueFactory.remove(/*getNamespace()*/); termCache.clear(); super.destroy(); } finally { unlock(resourceLock); } }
getFQN(LexiconKeyOrder.BLOBS), ITx.UNISOLATED); } else {
@Override public void destroy() { final IResourceLock resourceLock = acquireExclusiveLock(); try { final IIndexManager indexManager = getIndexManager(); indexManager.dropIndex(getFQN(LexiconKeyOrder.TERM2ID)); indexManager.dropIndex(getFQN(LexiconKeyOrder.ID2TERM)); if (getLexiconConfiguration().getBlobsThreshold() != Integer.MAX_VALUE) { // Destroy BLOBS index IFF it exists. indexManager.dropIndex(getFQN(LexiconKeyOrder.BLOBS)); } term2id = null; id2term = null; blobs = null; if (textIndex) { getSearchEngine().destroy(); viewRef.set(null); } // discard the value factory for the lexicon's namespace. valueFactory.remove(/*getNamespace()*/); termCache.clear(); super.destroy(); } finally { unlock(resourceLock); } }
getFQN(LexiconKeyOrder.ID2TERM), ITx.UNISOLATED); } else {
getFQN(LexiconKeyOrder.TERM2ID), ITx.UNISOLATED); } else {
getFQN(LexiconKeyOrder.ID2TERM), ITx.UNISOLATED); } else {
getFQN(LexiconKeyOrder.TERM2ID), ITx.UNISOLATED); } else {
getFQN(LexiconKeyOrder.BLOBS), ITx.UNISOLATED); } else {