Searched refs:fileExists (Results 1 - 25 of 40) sorted by relevance

12

/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/store/
H A DNRTCachingDirectory.java168 public synchronized boolean fileExists(String name) throws IOException { method in class:NRTCachingDirectory
169 return cache.fileExists(name) || delegate.fileExists(name);
174 if (cache.fileExists(name)) {
186 if (cache.fileExists(name)) {
198 if (cache.fileExists(name)) {
199 assert !delegate.fileExists(name): "name=" + name;
208 if (cache.fileExists(name)) {
260 if (cache.fileExists(name)) {
272 if (cache.fileExists(nam
[all...]
H A DFileSwitchDirectory.java136 public boolean fileExists(String name) throws IOException { method in class:FileSwitchDirectory
137 return getDirectory(name).fileExists(name);
H A DDirectory.java62 public abstract boolean fileExists(String name) method in class:Directory
H A DRAMDirectory.java127 public final boolean fileExists(String name) { method in class:RAMDirectory
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/
H A DTestCrashCausesCorruptIndex.java89 assertFalse(realDirectory.fileExists("segments_2"));
111 assertFalse(realDirectory.fileExists("segments_2"));
215 public boolean fileExists(String name) throws IOException { method in class:TestCrashCausesCorruptIndex.CrashAfterCreateOutput
216 return realDirectory.fileExists(name);
H A DTestNeverDelete.java92 assertTrue("file " + fileName + " does not exist", d.fileExists(fileName));
H A DTestSnapshotDeletionPolicy.java59 assertTrue("segments file not found in directory: " + segFileName, dir.fileExists(segFileName));
329 assertTrue("snapshot files should exist in the directory: " + segFileName, dir.fileExists(segFileName));
358 assertFalse("segments file should not be found in dirctory: " + segFileName, dir.fileExists(segFileName));
429 assertFalse("snapshotted commit should not exist", dir.fileExists(ic.getSegmentsFileName()));
H A DTestIndexFileDeleter.java157 assertTrue(dir.fileExists("_3.fdt"));
158 assertTrue(!dir.fileExists("_3.cfs"));
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/store/
H A DTestDirectory.java66 assertTrue(d2.fileExists(fname));
83 assertFalse(d2.fileExists(fname));
145 assertTrue(dir.fileExists(name));
172 assertTrue(fsDir.fileExists("afile"));
H A DTestFileSwitchDirectory.java109 assertTrue(dir.fileExists(name));
H A DTestBufferedIndexInput.java363 public boolean fileExists(String name) method in class:TestBufferedIndexInput.MockFSDirectory
366 return dir.fileExists(name);
H A DTestNRTCachingDirectory.java142 assertTrue(dir.fileExists(name));
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/store/
H A DTestDirectory.java66 assertTrue(d2.fileExists(fname));
83 assertFalse(d2.fileExists(fname));
145 assertTrue(dir.fileExists(name));
172 assertTrue(fsDir.fileExists("afile"));
H A DTestFileSwitchDirectory.java109 assertTrue(dir.fileExists(name));
H A DTestBufferedIndexInput.java363 public boolean fileExists(String name) method in class:TestBufferedIndexInput.MockFSDirectory
366 return dir.fileExists(name);
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/
H A DSegmentInfo.java245 hasVectors = dirToTest.fileExists(IndexFileNames.segmentFileName(storesSegment, IndexFileNames.VECTORS_INDEX_EXTENSION));
354 return dir.fileExists(getDelFileName());
413 return dir.fileExists(fileName);
540 return dir.fileExists(IndexFileNames.segmentFileName(name, IndexFileNames.COMPOUND_FILE_EXTENSION));
637 if (dir.fileExists(fileName))
691 if (delFileName != null && (delGen >= YES || dir.fileExists(delFileName))) {
707 if (dir.fileExists(fileName)) {
719 if (fileName != null && dir.fileExists(fileName)) {
H A DCompoundFileReader.java177 public boolean fileExists(String name) { method in class:CompoundFileReader
H A DFieldsWriter.java132 throw new RuntimeException("fdx size mismatch: " + numDocs + " docs vs " + indexStream.getFilePointer() + " length in bytes of " + fieldsIdxName + " file exists?=" + directory.fileExists(fieldsIdxName));
H A DTermVectorsTermsWriter.java65 throw new RuntimeException("tvx size mismatch: " + state.numDocs + " docs vs " + tvx.getFilePointer() + " length in bytes of " + idxName + " file exists?=" + state.directory.fileExists(idxName));
H A DTermVectorsWriter.java213 throw new RuntimeException("tvx size mismatch: " + numDocs + " docs vs " + tvx.getFilePointer() + " length in bytes of " + idxName + " file exists?=" + directory.fileExists(idxName));
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/index/
H A DTestNeverDelete.java92 assertTrue("file " + fileName + " does not exist", d.fileExists(fileName));
H A DTestSnapshotDeletionPolicy.java59 assertTrue("segments file not found in directory: " + segFileName, dir.fileExists(segFileName));
329 assertTrue("snapshot files should exist in the directory: " + segFileName, dir.fileExists(segFileName));
358 assertFalse("segments file should not be found in dirctory: " + segFileName, dir.fileExists(segFileName));
429 assertFalse("snapshotted commit should not exist", dir.fileExists(ic.getSegmentsFileName()));
H A DTestIndexFileDeleter.java157 assertTrue(dir.fileExists("_3.fdt"));
158 assertTrue(!dir.fileExists("_3.cfs"));
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/store/
H A DMockDirectoryWrapper.java243 if (!delegate.fileExists(tempFileName)) {
487 if (!delegate.fileExists(name))
592 /** don't rely upon DirectoryReader.fileExists to determine if we should
713 public synchronized boolean fileExists(String name) throws IOException { method in class:MockDirectoryWrapper
715 return delegate.fileExists(name);
/lucene-3.6.0/lucene/backwards/src/test-framework/java/org/apache/lucene/store/
H A DMockDirectoryWrapper.java443 if (!delegate.fileExists(name))
614 public synchronized boolean fileExists(String name) throws IOException { method in class:MockDirectoryWrapper
616 return delegate.fileExists(name);

Completed in 55 milliseconds

12