390391392393394395396397
return _position / _cacheBlockSize; } private void ensureOpen() { if (_isClosed) { throw new AlreadyClosedException("Already closed: " + this); } }
513514515516517518519520
* Verifies that this instance wasn't closed, or throws * {@link AlreadyClosedException} if it is. */ protected final void ensureOpen() { if (indexWriter == null) { throw new AlreadyClosedException("The taxonomy writer has already been closed"); } }
650651652653654655656657
aSearcher.getIndexReader().decRef(); } private void ensureOpen() { if (closed) { throw new AlreadyClosedException("Spellchecker has been closed"); } }
680681682683684685686687688689690
*/ final IndexSearcher indexSearcher = createSearcher(dir); synchronized (searcherLock) { if(closed){ indexSearcher.close(); throw new AlreadyClosedException("Spellchecker has been closed"); } if (searcher != null) { searcher.close(); } // set the spellindex in the sync block - ensure consistency.
187188189190191192193194
/** * @throws AlreadyClosedException if this FieldsReader is closed */ private void ensureOpen() throws AlreadyClosedException { if (closed) { throw new AlreadyClosedException("this FieldsReader is closed"); } }
775776777778779780781782
* closed. * @throws AlreadyClosedException if this IndexWriter is closed */ protected final void ensureOpen(boolean includePendingClose) throws AlreadyClosedException { if (closed || (includePendingClose && closing)) { throw new AlreadyClosedException("this IndexWriter is closed"); } }
998999100010011002100310041005
throw new ThreadInterruptedException(ie); } } if (closed) { throw new AlreadyClosedException("this IndexWriter is closed"); } }
254255256257258259260261
/** Raise a Lucene error if this object has been closed */ private void checkIfClosed() { if ( _closed ) { throw new AlreadyClosedException( toString() ); } }
198199200201202203204205206
} @Override public TermVectorsReader clone() { if (in == null) { throw new AlreadyClosedException("this TermVectorsReader is closed"); } return new SimpleTextTermVectorsReader(offsets, in.clone()); }
507508509510511512513514
* Verifies that this instance wasn't closed, or throws * {@link AlreadyClosedException} if it is. */ protected final void ensureOpen() { if (isClosed) { throw new AlreadyClosedException("The taxonomy writer has already been closed"); } }