1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5 <!-- Generated by javadoc (build 1.6.0_30) on Tue Nov 19 11:16:52 CET 2013 -->
6 <META http-equiv="Content-Type" content="text/html; charset=utf-8">
8 StandardDirectoryFactory (Solr 4.6.0 API)
11 <META NAME="date" CONTENT="2013-11-19">
13 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
15 <SCRIPT type="text/javascript">
16 function windowTitle()
18 if (location.href.indexOf('is-external=true') == -1) {
19 parent.document.title="StandardDirectoryFactory (Solr 4.6.0 API)";
28 <BODY BGCOLOR="white" onload="windowTitle();">
32 <!-- ========= START OF TOP NAVBAR ======= -->
33 <A NAME="navbar_top"><!-- --></A>
34 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
35 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
37 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
38 <A NAME="navbar_top_firstrow"><!-- --></A>
39 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
40 <TR ALIGN="center" VALIGN="top">
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
43 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/StandardDirectoryFactory.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
47 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
51 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
57 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
58 <A HREF="../../../../org/apache/solr/core/SolrXMLSerializer.SolrXMLDef.html" title="class in org.apache.solr.core"><B>PREV CLASS</B></A>
59 <A HREF="../../../../org/apache/solr/core/StandardIndexReaderFactory.html" title="class in org.apache.solr.core"><B>NEXT CLASS</B></A></FONT></TD>
60 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61 <A HREF="../../../../index.html?org/apache/solr/core/StandardDirectoryFactory.html" target="_top"><B>FRAMES</B></A>
62 <A HREF="StandardDirectoryFactory.html" target="_top"><B>NO FRAMES</B></A>
63 <SCRIPT type="text/javascript">
66 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
71 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
78 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
79 SUMMARY: <A HREF="#nested_classes_inherited_from_class_org.apache.solr.core.CachingDirectoryFactory">NESTED</A> | <A HREF="#fields_inherited_from_class_org.apache.solr.core.CachingDirectoryFactory">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
80 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
81 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
84 <A NAME="skip-navbar_top"></A>
85 <!-- ========= END OF TOP NAVBAR ========= -->
88 <!-- ======== START OF CLASS DATA ======== -->
91 org.apache.solr.core</FONT>
93 Class StandardDirectoryFactory</H2>
95 <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
96 <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../org/apache/solr/core/DirectoryFactory.html" title="class in org.apache.solr.core">org.apache.solr.core.DirectoryFactory</A>
97 <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../org/apache/solr/core/CachingDirectoryFactory.html" title="class in org.apache.solr.core">org.apache.solr.core.CachingDirectoryFactory</A>
98 <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.solr.core.StandardDirectoryFactory</B>
101 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</A>, <A HREF="../../../../org/apache/solr/util/plugin/NamedListInitializedPlugin.html" title="interface in org.apache.solr.util.plugin">NamedListInitializedPlugin</A></DD>
104 <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../org/apache/solr/core/MMapDirectoryFactory.html" title="class in org.apache.solr.core">MMapDirectoryFactory</A>, <A HREF="../../../../org/apache/solr/core/NIOFSDirectoryFactory.html" title="class in org.apache.solr.core">NIOFSDirectoryFactory</A>, <A HREF="../../../../org/apache/solr/core/NRTCachingDirectoryFactory.html" title="class in org.apache.solr.core">NRTCachingDirectoryFactory</A>, <A HREF="../../../../org/apache/solr/core/SimpleFSDirectoryFactory.html" title="class in org.apache.solr.core">SimpleFSDirectoryFactory</A></DD>
108 <DT><PRE>public class <B>StandardDirectoryFactory</B><DT>extends <A HREF="../../../../org/apache/solr/core/CachingDirectoryFactory.html" title="class in org.apache.solr.core">CachingDirectoryFactory</A></DL>
112 Directory provider which mimics original Solr
113 <A HREF="http://lucene.apache.org/core/4_6_0/core/org/apache/lucene/store/FSDirectory.html?is-external=true" title="class or interface in org.apache.lucene.store"><CODE>FSDirectory</CODE></A> based behavior.
115 File based DirectoryFactory implementations generally extend
123 <!-- ======== NESTED CLASS SUMMARY ======== -->
125 <A NAME="nested_class_summary"><!-- --></A>
126 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
127 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
128 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
129 <B>Nested Class Summary</B></FONT></TH>
132 <A NAME="nested_classes_inherited_from_class_org.apache.solr.core.CachingDirectoryFactory"><!-- --></A>
133 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
134 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
135 <TH ALIGN="left"><B>Nested classes/interfaces inherited from class org.apache.solr.core.<A HREF="../../../../org/apache/solr/core/CachingDirectoryFactory.html" title="class in org.apache.solr.core">CachingDirectoryFactory</A></B></TH>
137 <TR BGCOLOR="white" CLASS="TableRowColor">
138 <TD><CODE><A HREF="../../../../org/apache/solr/core/CachingDirectoryFactory.CacheValue.html" title="class in org.apache.solr.core">CachingDirectoryFactory.CacheValue</A>, <A HREF="../../../../org/apache/solr/core/CachingDirectoryFactory.CloseListener.html" title="interface in org.apache.solr.core">CachingDirectoryFactory.CloseListener</A></CODE></TD>
142 <A NAME="nested_classes_inherited_from_class_org.apache.solr.core.DirectoryFactory"><!-- --></A>
143 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
144 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
145 <TH ALIGN="left"><B>Nested classes/interfaces inherited from class org.apache.solr.core.<A HREF="../../../../org/apache/solr/core/DirectoryFactory.html" title="class in org.apache.solr.core">DirectoryFactory</A></B></TH>
147 <TR BGCOLOR="white" CLASS="TableRowColor">
148 <TD><CODE><A HREF="../../../../org/apache/solr/core/DirectoryFactory.DirContext.html" title="enum in org.apache.solr.core">DirectoryFactory.DirContext</A></CODE></TD>
152 <!-- =========== FIELD SUMMARY =========== -->
154 <A NAME="field_summary"><!-- --></A>
155 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
156 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
157 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
158 <B>Field Summary</B></FONT></TH>
161 <A NAME="fields_inherited_from_class_org.apache.solr.core.CachingDirectoryFactory"><!-- --></A>
162 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
163 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
164 <TH ALIGN="left"><B>Fields inherited from class org.apache.solr.core.<A HREF="../../../../org/apache/solr/core/CachingDirectoryFactory.html" title="class in org.apache.solr.core">CachingDirectoryFactory</A></B></TH>
166 <TR BGCOLOR="white" CLASS="TableRowColor">
167 <TD><CODE><A HREF="../../../../org/apache/solr/core/CachingDirectoryFactory.html#byDirectoryCache">byDirectoryCache</A>, <A HREF="../../../../org/apache/solr/core/CachingDirectoryFactory.html#byPathCache">byPathCache</A>, <A HREF="../../../../org/apache/solr/core/CachingDirectoryFactory.html#closeListeners">closeListeners</A>, <A HREF="../../../../org/apache/solr/core/CachingDirectoryFactory.html#removeEntries">removeEntries</A></CODE></TD>
170 <A NAME="fields_inherited_from_class_org.apache.solr.core.DirectoryFactory"><!-- --></A>
171 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
172 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
173 <TH ALIGN="left"><B>Fields inherited from class org.apache.solr.core.<A HREF="../../../../org/apache/solr/core/DirectoryFactory.html" title="class in org.apache.solr.core">DirectoryFactory</A></B></TH>
175 <TR BGCOLOR="white" CLASS="TableRowColor">
176 <TD><CODE><A HREF="../../../../org/apache/solr/core/DirectoryFactory.html#IOCONTEXT_NO_CACHE">IOCONTEXT_NO_CACHE</A></CODE></TD>
180 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
182 <A NAME="constructor_summary"><!-- --></A>
183 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
184 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
185 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
186 <B>Constructor Summary</B></FONT></TH>
188 <TR BGCOLOR="white" CLASS="TableRowColor">
189 <TD><CODE><B><A HREF="../../../../org/apache/solr/core/StandardDirectoryFactory.html#StandardDirectoryFactory()">StandardDirectoryFactory</A></B>()</CODE>
192 </TD>
196 <!-- ========== METHOD SUMMARY =========== -->
198 <A NAME="method_summary"><!-- --></A>
199 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
200 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
201 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
202 <B>Method Summary</B></FONT></TH>
204 <TR BGCOLOR="white" CLASS="TableRowColor">
205 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
206 <CODE>protected <A HREF="http://lucene.apache.org/core/4_6_0/core/org/apache/lucene/store/Directory.html?is-external=true" title="class or interface in org.apache.lucene.store">Directory</A></CODE></FONT></TD>
207 <TD><CODE><B><A HREF="../../../../org/apache/solr/core/StandardDirectoryFactory.html#create(java.lang.String, org.apache.solr.core.DirectoryFactory.DirContext)">create</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> path,
208 <A HREF="../../../../org/apache/solr/core/DirectoryFactory.DirContext.html" title="enum in org.apache.solr.core">DirectoryFactory.DirContext</A> dirContext)</CODE>
211 Creates a new Directory for a given path.</TD>
213 <TR BGCOLOR="white" CLASS="TableRowColor">
214 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
215 <CODE> boolean</CODE></FONT></TD>
216 <TD><CODE><B><A HREF="../../../../org/apache/solr/core/StandardDirectoryFactory.html#exists(java.lang.String)">exists</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> path)</CODE>
219 Returns true if a Directory exists for a given path.</TD>
221 <TR BGCOLOR="white" CLASS="TableRowColor">
222 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
223 <CODE> boolean</CODE></FONT></TD>
224 <TD><CODE><B><A HREF="../../../../org/apache/solr/core/StandardDirectoryFactory.html#isAbsolute(java.lang.String)">isAbsolute</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> path)</CODE>
227 </TD>
229 <TR BGCOLOR="white" CLASS="TableRowColor">
230 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
231 <CODE> boolean</CODE></FONT></TD>
232 <TD><CODE><B><A HREF="../../../../org/apache/solr/core/StandardDirectoryFactory.html#isPersistent()">isPersistent</A></B>()</CODE>
235 </TD>
237 <TR BGCOLOR="white" CLASS="TableRowColor">
238 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
239 <CODE> void</CODE></FONT></TD>
240 <TD><CODE><B><A HREF="../../../../org/apache/solr/core/StandardDirectoryFactory.html#move(org.apache.lucene.store.Directory, org.apache.lucene.store.Directory, java.lang.String, org.apache.lucene.store.IOContext)">move</A></B>(<A HREF="http://lucene.apache.org/core/4_6_0/core/org/apache/lucene/store/Directory.html?is-external=true" title="class or interface in org.apache.lucene.store">Directory</A> fromDir,
241 <A HREF="http://lucene.apache.org/core/4_6_0/core/org/apache/lucene/store/Directory.html?is-external=true" title="class or interface in org.apache.lucene.store">Directory</A> toDir,
242 <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> fileName,
243 <A HREF="http://lucene.apache.org/core/4_6_0/core/org/apache/lucene/store/IOContext.html?is-external=true" title="class or interface in org.apache.lucene.store">IOContext</A> ioContext)</CODE>
246 Override for more efficient moves.</TD>
248 <TR BGCOLOR="white" CLASS="TableRowColor">
249 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
250 <CODE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
251 <TD><CODE><B><A HREF="../../../../org/apache/solr/core/StandardDirectoryFactory.html#normalize(java.lang.String)">normalize</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> path)</CODE>
254 Normalize a given path.</TD>
256 <TR BGCOLOR="white" CLASS="TableRowColor">
257 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
258 <CODE>protected void</CODE></FONT></TD>
259 <TD><CODE><B><A HREF="../../../../org/apache/solr/core/StandardDirectoryFactory.html#removeDirectory(org.apache.solr.core.CachingDirectoryFactory.CacheValue)">removeDirectory</A></B>(<A HREF="../../../../org/apache/solr/core/CachingDirectoryFactory.CacheValue.html" title="class in org.apache.solr.core">CachingDirectoryFactory.CacheValue</A> cacheValue)</CODE>
262 </TD>
265 <A NAME="methods_inherited_from_class_org.apache.solr.core.CachingDirectoryFactory"><!-- --></A>
266 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
267 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
268 <TH ALIGN="left"><B>Methods inherited from class org.apache.solr.core.<A HREF="../../../../org/apache/solr/core/CachingDirectoryFactory.html" title="class in org.apache.solr.core">CachingDirectoryFactory</A></B></TH>
270 <TR BGCOLOR="white" CLASS="TableRowColor">
271 <TD><CODE><A HREF="../../../../org/apache/solr/core/CachingDirectoryFactory.html#addCloseListener(org.apache.lucene.store.Directory, org.apache.solr.core.CachingDirectoryFactory.CloseListener)">addCloseListener</A>, <A HREF="../../../../org/apache/solr/core/CachingDirectoryFactory.html#close()">close</A>, <A HREF="../../../../org/apache/solr/core/CachingDirectoryFactory.html#doneWithDirectory(org.apache.lucene.store.Directory)">doneWithDirectory</A>, <A HREF="../../../../org/apache/solr/core/CachingDirectoryFactory.html#get(java.lang.String, org.apache.solr.core.DirectoryFactory.DirContext, java.lang.String)">get</A>, <A HREF="../../../../org/apache/solr/core/CachingDirectoryFactory.html#getLivePaths()">getLivePaths</A>, <A HREF="../../../../org/apache/solr/core/CachingDirectoryFactory.html#incRef(org.apache.lucene.store.Directory)">incRef</A>, <A HREF="../../../../org/apache/solr/core/CachingDirectoryFactory.html#init(org.apache.solr.common.util.NamedList)">init</A>, <A HREF="../../../../org/apache/solr/core/CachingDirectoryFactory.html#release(org.apache.lucene.store.Directory)">release</A>, <A HREF="../../../../org/apache/solr/core/CachingDirectoryFactory.html#remove(org.apache.lucene.store.Directory)">remove</A>, <A HREF="../../../../org/apache/solr/core/CachingDirectoryFactory.html#remove(org.apache.lucene.store.Directory, boolean)">remove</A>, <A HREF="../../../../org/apache/solr/core/CachingDirectoryFactory.html#remove(java.lang.String)">remove</A>, <A HREF="../../../../org/apache/solr/core/CachingDirectoryFactory.html#remove(java.lang.String, boolean)">remove</A>, <A HREF="../../../../org/apache/solr/core/CachingDirectoryFactory.html#stripTrailingSlash(java.lang.String)">stripTrailingSlash</A></CODE></TD>
274 <A NAME="methods_inherited_from_class_org.apache.solr.core.DirectoryFactory"><!-- --></A>
275 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
276 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
277 <TH ALIGN="left"><B>Methods inherited from class org.apache.solr.core.<A HREF="../../../../org/apache/solr/core/DirectoryFactory.html" title="class in org.apache.solr.core">DirectoryFactory</A></B></TH>
279 <TR BGCOLOR="white" CLASS="TableRowColor">
280 <TD><CODE><A HREF="../../../../org/apache/solr/core/DirectoryFactory.html#empty(org.apache.lucene.store.Directory)">empty</A>, <A HREF="../../../../org/apache/solr/core/DirectoryFactory.html#getDataHome(org.apache.solr.core.CoreDescriptor)">getDataHome</A>, <A HREF="../../../../org/apache/solr/core/DirectoryFactory.html#searchersReserveCommitPoints()">searchersReserveCommitPoints</A>, <A HREF="../../../../org/apache/solr/core/DirectoryFactory.html#sizeOf(org.apache.lucene.store.Directory, java.lang.String)">sizeOf</A>, <A HREF="../../../../org/apache/solr/core/DirectoryFactory.html#sizeOfDirectory(org.apache.lucene.store.Directory)">sizeOfDirectory</A></CODE></TD>
283 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
284 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
285 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
286 <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
288 <TR BGCOLOR="white" CLASS="TableRowColor">
289 <TD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
295 <!-- ========= CONSTRUCTOR DETAIL ======== -->
297 <A NAME="constructor_detail"><!-- --></A>
298 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
299 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
300 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
301 <B>Constructor Detail</B></FONT></TH>
305 <A NAME="StandardDirectoryFactory()"><!-- --></A><H3>
306 StandardDirectoryFactory</H3>
308 public <B>StandardDirectoryFactory</B>()</PRE>
312 <!-- ============ METHOD DETAIL ========== -->
314 <A NAME="method_detail"><!-- --></A>
315 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
316 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
317 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
318 <B>Method Detail</B></FONT></TH>
322 <A NAME="create(java.lang.String, org.apache.solr.core.DirectoryFactory.DirContext)"><!-- --></A><H3>
325 protected <A HREF="http://lucene.apache.org/core/4_6_0/core/org/apache/lucene/store/Directory.html?is-external=true" title="class or interface in org.apache.lucene.store">Directory</A> <B>create</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> path,
326 <A HREF="../../../../org/apache/solr/core/DirectoryFactory.DirContext.html" title="enum in org.apache.solr.core">DirectoryFactory.DirContext</A> dirContext)
327 throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
329 <DD><B>Description copied from class: <CODE><A HREF="../../../../org/apache/solr/core/DirectoryFactory.html#create(java.lang.String, org.apache.solr.core.DirectoryFactory.DirContext)">DirectoryFactory</A></CODE></B></DD>
330 <DD>Creates a new Directory for a given path.
333 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/solr/core/CachingDirectoryFactory.html#create(java.lang.String, org.apache.solr.core.DirectoryFactory.DirContext)">create</A></CODE> in class <CODE><A HREF="../../../../org/apache/solr/core/CachingDirectoryFactory.html" title="class in org.apache.solr.core">CachingDirectoryFactory</A></CODE></DL>
338 <DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE> - If there is a low-level I/O error.</DL>
343 <A NAME="normalize(java.lang.String)"><!-- --></A><H3>
346 public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>normalize</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> path)
347 throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
349 <DD><B>Description copied from class: <CODE><A HREF="../../../../org/apache/solr/core/DirectoryFactory.html#normalize(java.lang.String)">DirectoryFactory</A></CODE></B></DD>
350 <DD>Normalize a given path.
353 <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/solr/core/CachingDirectoryFactory.html#normalize(java.lang.String)">normalize</A></CODE> in class <CODE><A HREF="../../../../org/apache/solr/core/CachingDirectoryFactory.html" title="class in org.apache.solr.core">CachingDirectoryFactory</A></CODE></DL>
356 <DT><B>Parameters:</B><DD><CODE>path</CODE> - to normalize
357 <DT><B>Returns:</B><DD>normalized path
359 <DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE> - on io error</DL>
364 <A NAME="exists(java.lang.String)"><!-- --></A><H3>
367 public boolean <B>exists</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> path)
368 throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
370 <DD><B>Description copied from class: <CODE><A HREF="../../../../org/apache/solr/core/DirectoryFactory.html#exists(java.lang.String)">DirectoryFactory</A></CODE></B></DD>
371 <DD>Returns true if a Directory exists for a given path.
374 <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/solr/core/CachingDirectoryFactory.html#exists(java.lang.String)">exists</A></CODE> in class <CODE><A HREF="../../../../org/apache/solr/core/CachingDirectoryFactory.html" title="class in org.apache.solr.core">CachingDirectoryFactory</A></CODE></DL>
379 <DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE> - If there is a low-level I/O error.</DL>
384 <A NAME="isPersistent()"><!-- --></A><H3>
387 public boolean <B>isPersistent</B>()</PRE>
390 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/solr/core/DirectoryFactory.html#isPersistent()">isPersistent</A></CODE> in class <CODE><A HREF="../../../../org/apache/solr/core/DirectoryFactory.html" title="class in org.apache.solr.core">DirectoryFactory</A></CODE></DL>
394 <DT><B>Returns:</B><DD>true if data is kept after close.</DL>
399 <A NAME="isAbsolute(java.lang.String)"><!-- --></A><H3>
402 public boolean <B>isAbsolute</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> path)</PRE>
405 <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/solr/core/DirectoryFactory.html#isAbsolute(java.lang.String)">isAbsolute</A></CODE> in class <CODE><A HREF="../../../../org/apache/solr/core/DirectoryFactory.html" title="class in org.apache.solr.core">DirectoryFactory</A></CODE></DL>
408 <DT><B>Parameters:</B><DD><CODE>path</CODE> - the path to check
409 <DT><B>Returns:</B><DD>true if absolute, as in not relative</DL>
414 <A NAME="removeDirectory(org.apache.solr.core.CachingDirectoryFactory.CacheValue)"><!-- --></A><H3>
417 protected void <B>removeDirectory</B>(<A HREF="../../../../org/apache/solr/core/CachingDirectoryFactory.CacheValue.html" title="class in org.apache.solr.core">CachingDirectoryFactory.CacheValue</A> cacheValue)
418 throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
421 <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/solr/core/CachingDirectoryFactory.html#removeDirectory(org.apache.solr.core.CachingDirectoryFactory.CacheValue)">removeDirectory</A></CODE> in class <CODE><A HREF="../../../../org/apache/solr/core/CachingDirectoryFactory.html" title="class in org.apache.solr.core">CachingDirectoryFactory</A></CODE></DL>
426 <DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL>
431 <A NAME="move(org.apache.lucene.store.Directory, org.apache.lucene.store.Directory, java.lang.String, org.apache.lucene.store.IOContext)"><!-- --></A><H3>
434 public void <B>move</B>(<A HREF="http://lucene.apache.org/core/4_6_0/core/org/apache/lucene/store/Directory.html?is-external=true" title="class or interface in org.apache.lucene.store">Directory</A> fromDir,
435 <A HREF="http://lucene.apache.org/core/4_6_0/core/org/apache/lucene/store/Directory.html?is-external=true" title="class or interface in org.apache.lucene.store">Directory</A> toDir,
436 <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> fileName,
437 <A HREF="http://lucene.apache.org/core/4_6_0/core/org/apache/lucene/store/IOContext.html?is-external=true" title="class or interface in org.apache.lucene.store">IOContext</A> ioContext)
438 throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
440 <DD>Override for more efficient moves.
442 Intended for use with replication - use
443 carefully - some Directory wrappers will
444 cache files for example.
446 This implementation works with two wrappers:
447 NRTCachingDirectory and RateLimitedDirectoryWrapper.
449 You should first <A HREF="http://lucene.apache.org/core/4_6_0/core/org/apache/lucene/store/Directory.html?is-external=true#sync(java.util.Collection)" title="class or interface in org.apache.lucene.store"><CODE>Directory.sync(java.util.Collection)</CODE></A> any file that will be
450 moved or avoid cached files through settings.
453 <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/solr/core/DirectoryFactory.html#move(org.apache.lucene.store.Directory, org.apache.lucene.store.Directory, java.lang.String, org.apache.lucene.store.IOContext)">move</A></CODE> in class <CODE><A HREF="../../../../org/apache/solr/core/DirectoryFactory.html" title="class in org.apache.solr.core">DirectoryFactory</A></CODE></DL>
458 <DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE> - If there is a low-level I/O error.</DL>
461 <!-- ========= END OF CLASS DATA ========= -->
465 <!-- ======= START OF BOTTOM NAVBAR ====== -->
466 <A NAME="navbar_bottom"><!-- --></A>
467 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
468 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
470 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
471 <A NAME="navbar_bottom_firstrow"><!-- --></A>
472 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
473 <TR ALIGN="center" VALIGN="top">
474 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
475 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
476 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
477 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/StandardDirectoryFactory.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
478 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
479 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
480 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
484 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
490 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
491 <A HREF="../../../../org/apache/solr/core/SolrXMLSerializer.SolrXMLDef.html" title="class in org.apache.solr.core"><B>PREV CLASS</B></A>
492 <A HREF="../../../../org/apache/solr/core/StandardIndexReaderFactory.html" title="class in org.apache.solr.core"><B>NEXT CLASS</B></A></FONT></TD>
493 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
494 <A HREF="../../../../index.html?org/apache/solr/core/StandardDirectoryFactory.html" target="_top"><B>FRAMES</B></A>
495 <A HREF="StandardDirectoryFactory.html" target="_top"><B>NO FRAMES</B></A>
496 <SCRIPT type="text/javascript">
499 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
504 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
511 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
512 SUMMARY: <A HREF="#nested_classes_inherited_from_class_org.apache.solr.core.CachingDirectoryFactory">NESTED</A> | <A HREF="#fields_inherited_from_class_org.apache.solr.core.CachingDirectoryFactory">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
513 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
514 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
517 <A NAME="skip-navbar_bottom"></A>
518 <!-- ======== END OF BOTTOM NAVBAR ======= -->
522 <i>Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.</i>
523 <script src='../../../../prettify.js' type='text/javascript'></script>
524 <script type='text/javascript'>
526 var oldonload = window.onload;
527 if (typeof oldonload != 'function') {
528 window.onload = prettyPrint;
530 window.onload = function() {