Searched defs:readOnly (Results 1 - 11 of 11) sorted by relevance

/lucene-3.6.0/solr/core/src/java/org/apache/solr/core/
H A DStandardIndexReaderFactory.java36 public IndexReader newReader(Directory indexDir, boolean readOnly) argument
38 return IndexReader.open(indexDir, null, readOnly, termInfosIndexDivisor);
H A DIndexReaderFactory.java60 * @param readOnly return readOnly IndexReader
64 public abstract IndexReader newReader(Directory indexDir, boolean readOnly) argument
H A DSolrCore.java328 public SolrIndexSearcher newSearcher(String name, boolean readOnly) throws IOException { argument
329 return new SolrIndexSearcher(this, schema, name, directoryFactory.open(getIndexDir()), readOnly, false);
988 * see newSearcher(String name, boolean readOnly).
/lucene-3.6.0/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/
H A DOpenReaderTask.java34 * <br> Optional params readOnly,commitUserData eg. OpenReader(false,commit1)
38 private boolean readOnly = true; field in class:OpenReaderTask
51 if (readOnly) {
59 readOnly);
63 readOnly);
77 readOnly = Boolean.valueOf(split[0]).booleanValue();
/lucene-3.6.0/solr/core/src/test/org/apache/solr/core/
H A DAlternateDirectoryTest.java68 public IndexReader newReader(Directory indexDir, boolean readOnly) argument
71 return IndexReader.open(indexDir, readOnly);
/lucene-3.6.0/lucene/contrib/misc/src/java/org/apache/lucene/store/
H A DNativePosixUtil.cpp100 JNIEXPORT jobject JNICALL Java_org_apache_lucene_store_NativePosixUtil_open_1direct(JNIEnv *env, jclass _ignore, jstring filename, jboolean readOnly) argument
116 if (readOnly) {
122 //printf("open %s -> %d; ro %d\n", fname, fd, readOnly); fflush(stdout);
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/
H A DIndexSearcher.java85 * directory, with readOnly=true
97 * directory. You should pass readOnly=true, since it
102 * @param readOnly if true, the underlying IndexReader
103 * will be opened readOnly
109 public IndexSearcher(Directory path, boolean readOnly) throws CorruptIndexException, IOException { argument
110 this(IndexReader.open(path, readOnly), true, null);
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/
H A DIndexReader.java65 boolean readOnly parameter. Such a reader has better
250 * Directory, with readOnly=true.
260 * Directory. You should pass readOnly=true, since it
265 * @param readOnly true if no changes (deletions, norms) will be made with this IndexReader
272 public static IndexReader open(final Directory directory, boolean readOnly) throws CorruptIndexException, IOException { argument
273 return DirectoryReader.open(directory, null, null, readOnly, DEFAULT_TERMS_INDEX_DIVISOR);
310 * {@link IndexCommit}. You should pass readOnly=true, since it
315 * @param readOnly true if no changes (deletions, norms) will be made with this IndexReader
322 public static IndexReader open(final IndexCommit commit, boolean readOnly) throws CorruptIndexException, IOException { argument
323 return DirectoryReader.open(commit.getDirectory(), null, commit, readOnly, DEFAULT_TERMS_INDEX_DIVISO
343 open(final Directory directory, IndexDeletionPolicy deletionPolicy, boolean readOnly) argument
374 open(final Directory directory, IndexDeletionPolicy deletionPolicy, boolean readOnly, int termInfosIndexDivisor) argument
397 open(final IndexCommit commit, IndexDeletionPolicy deletionPolicy, boolean readOnly) argument
433 open(final IndexCommit commit, IndexDeletionPolicy deletionPolicy, boolean readOnly, int termInfosIndexDivisor) argument
532 openIfChanged(IndexReader oldReader, boolean readOnly) argument
[all...]
H A DSegmentReader.java48 @Deprecated protected boolean readOnly; field in class:SegmentReader
93 public static SegmentReader get(boolean readOnly, SegmentInfo si, int termInfosIndexDivisor) throws CorruptIndexException, IOException { argument
94 return get(readOnly, si.dir, si, BufferedIndexInput.BUFFER_SIZE, true, termInfosIndexDivisor);
101 public static SegmentReader get(boolean readOnly, argument
108 SegmentReader instance = readOnly ? new ReadOnlySegmentReader() : new SegmentReader();
109 instance.readOnly = readOnly;
198 return clone(readOnly); // Preserve current readOnly
213 return reopenSegment(si, false, readOnly);
[all...]
H A DDirectoryReader.java44 protected boolean readOnly; field in class:DirectoryReader
70 static IndexReader open(final Directory directory, final IndexDeletionPolicy deletionPolicy, final IndexCommit commit, final boolean readOnly, argument
77 if (readOnly)
86 DirectoryReader(Directory directory, SegmentInfos sis, IndexDeletionPolicy deletionPolicy, boolean readOnly, int termInfosIndexDivisor) throws IOException { argument
88 this.readOnly = readOnly;
105 readers[i] = SegmentReader.get(readOnly, sis.info(i), termInfosIndexDivisor);
121 this.readOnly = true;
166 Map<String,byte[]> oldNormsCache, boolean readOnly, boolean doClone, int termInfosIndexDivisor) throws IOException {
168 this.readOnly
165 DirectoryReader(Directory directory, SegmentInfos infos, SegmentReader[] oldReaders, int[] oldStarts, Map<String,byte[]> oldNormsCache, boolean readOnly, boolean doClone, int termInfosIndexDivisor) argument
[all...]
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/
H A DSolrIndexSearcher.java124 public SolrIndexSearcher(SolrCore core, IndexSchema schema, String name, Directory directory, boolean readOnly, boolean enableCache) throws IOException { argument
125 this(core, schema,name, core.getIndexReaderFactory().newReader(directory, readOnly), true, enableCache);

Completed in 4882 milliseconds