blob: 96add68115257a2c4fdd1bca4fd58844fde80eb0 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3"/>
<title>Lucene.Net: core/Index/IndexFileNames.cs Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="lucene-net-icon-128x128.png"/></td>
<td style="padding-left: 0.5em;">
<div id="projectname">Lucene.Net
&#160;<span id="projectnumber">3.0.3</span>
</div>
<div id="projectbrief">Lucene.Net is a .NET port of the Java Lucene Indexing Library</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="Index.html"><span>Main&#160;Page</span></a></li>
<li><a href="namespaces.html"><span>Packages</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Properties</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_1efe588324fc547683bba4a3f1bac847.html">core</a></li><li class="navelem"><a class="el" href="dir_508bd2a9867f606940156debe4946ca8.html">Index</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">IndexFileNames.cs</div> </div>
</div><!--header-->
<div class="contents">
<a href="_index_file_names_8cs.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/* </span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one or more</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> * contributor license agreements. See the NOTICE file distributed with</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> * this work for additional information regarding copyright ownership.</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> * (the &quot;License&quot;); you may not use this file except in compliance with</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> * the License. You may obtain a copy of the License at</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> * </span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> * </span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> * Unless required by applicable law or agreed to in writing, software</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> * distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> * See the License for the specific language governing permissions and</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> * limitations under the License.</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;</div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="keyword">using</span> System;</div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="keyword">using</span> Lucene.Net.Support;</div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;</div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="keyword">namespace </span>Lucene.Net.Index</div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;{</div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160; </div>
<div class="line"><a name="l00025"></a><span class="lineno"><a class="code" href="class_lucene_1_1_net_1_1_index_1_1_index_file_names.html"> 25</a></span>&#160; <span class="keyword">public</span> sealed <span class="keyword">class </span><a class="code" href="class_lucene_1_1_net_1_1_index_1_1_index_file_names.html" title="Useful constants representing filenames and extensions used by lucene">IndexFileNames</a></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; {</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno"><a class="code" href="class_lucene_1_1_net_1_1_index_1_1_index_file_names.html#a7d1621e5bea0a2dcdb35a8ad802d090f"> 29</a></span>&#160; <span class="keyword">public</span> <span class="comment">/*internal*/</span> <span class="keyword">const</span> System.String SEGMENTS = <span class="stringliteral">&quot;segments&quot;</span>;</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; </div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="code" href="class_lucene_1_1_net_1_1_index_1_1_index_file_names.html#ac50f0ab232dedabd1106c7128024abb1"> 32</a></span>&#160; <span class="keyword">public</span> <span class="comment">/*internal*/</span> <span class="keyword">const</span> System.String SEGMENTS_GEN = <span class="stringliteral">&quot;segments.gen&quot;</span>;</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="code" href="class_lucene_1_1_net_1_1_index_1_1_index_file_names.html#a79d902a6f579d470f891d58bf62541cc"> 37</a></span>&#160; <span class="keyword">public</span> <span class="comment">/*internal*/</span> <span class="keyword">const</span> System.String DELETABLE = <span class="stringliteral">&quot;deletable&quot;</span>;</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="code" href="class_lucene_1_1_net_1_1_index_1_1_index_file_names.html#a55cfa0818040521b6fbf9a608564cae3"> 40</a></span>&#160; <span class="keyword">public</span> <span class="comment">/*internal*/</span> <span class="keyword">const</span> System.String NORMS_EXTENSION = <span class="stringliteral">&quot;nrm&quot;</span>;</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; </div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="code" href="class_lucene_1_1_net_1_1_index_1_1_index_file_names.html#a5cb10e87323bb23993a44f9a1849e9ec"> 43</a></span>&#160; <span class="keyword">public</span> <span class="comment">/*internal*/</span> <span class="keyword">const</span> System.String FREQ_EXTENSION = <span class="stringliteral">&quot;frq&quot;</span>;</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; </div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="code" href="class_lucene_1_1_net_1_1_index_1_1_index_file_names.html#a2f431e091d6ffb9704e098a2ff483cbb"> 46</a></span>&#160; <span class="keyword">public</span> <span class="comment">/*internal*/</span> <span class="keyword">const</span> System.String PROX_EXTENSION = <span class="stringliteral">&quot;prx&quot;</span>;</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; </div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="code" href="class_lucene_1_1_net_1_1_index_1_1_index_file_names.html#ab960df70c20c77a4f0f20e773de2aa80"> 49</a></span>&#160; <span class="keyword">public</span> <span class="comment">/*internal*/</span> <span class="keyword">const</span> System.String TERMS_EXTENSION = <span class="stringliteral">&quot;tis&quot;</span>;</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; </div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="code" href="class_lucene_1_1_net_1_1_index_1_1_index_file_names.html#a01fc6c5ec4fae228eb7c6b455213c6c9"> 52</a></span>&#160; <span class="keyword">public</span> <span class="comment">/*internal*/</span> <span class="keyword">const</span> System.String TERMS_INDEX_EXTENSION = <span class="stringliteral">&quot;tii&quot;</span>;</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; </div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="code" href="class_lucene_1_1_net_1_1_index_1_1_index_file_names.html#aff2469494263e4c9dcad3431d89eb9a1"> 55</a></span>&#160; <span class="keyword">public</span> <span class="comment">/*internal*/</span> <span class="keyword">const</span> System.String FIELDS_INDEX_EXTENSION = <span class="stringliteral">&quot;fdx&quot;</span>;</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; </div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="code" href="class_lucene_1_1_net_1_1_index_1_1_index_file_names.html#a553291b74315aab5a0dae9ead3f7fb3b"> 58</a></span>&#160; <span class="keyword">public</span> <span class="comment">/*internal*/</span> <span class="keyword">const</span> System.String FIELDS_EXTENSION = <span class="stringliteral">&quot;fdt&quot;</span>;</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; </div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="code" href="class_lucene_1_1_net_1_1_index_1_1_index_file_names.html#a2017f177fb26a934498e03911b1e08a6"> 61</a></span>&#160; <span class="keyword">public</span> <span class="comment">/*internal*/</span> <span class="keyword">const</span> System.String VECTORS_FIELDS_EXTENSION = <span class="stringliteral">&quot;tvf&quot;</span>;</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; </div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="code" href="class_lucene_1_1_net_1_1_index_1_1_index_file_names.html#aabfd7525c83e86d942648e9945877db0"> 64</a></span>&#160; <span class="keyword">public</span> <span class="comment">/*internal*/</span> <span class="keyword">const</span> System.String VECTORS_DOCUMENTS_EXTENSION = <span class="stringliteral">&quot;tvd&quot;</span>;</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; </div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="code" href="class_lucene_1_1_net_1_1_index_1_1_index_file_names.html#a65045d54e9fedc470934b1afcb8db278"> 67</a></span>&#160; <span class="keyword">public</span> <span class="comment">/*internal*/</span> <span class="keyword">const</span> System.String VECTORS_INDEX_EXTENSION = <span class="stringliteral">&quot;tvx&quot;</span>;</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; </div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="code" href="class_lucene_1_1_net_1_1_index_1_1_index_file_names.html#ac62101de40ede88b69a11da26567d5a5"> 70</a></span>&#160; <span class="keyword">public</span> <span class="comment">/*internal*/</span> <span class="keyword">const</span> System.String COMPOUND_FILE_EXTENSION = <span class="stringliteral">&quot;cfs&quot;</span>;</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; </div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="code" href="class_lucene_1_1_net_1_1_index_1_1_index_file_names.html#af76f35e48d15181e4e4b019c804c539e"> 73</a></span>&#160; <span class="keyword">public</span> <span class="comment">/*internal*/</span> <span class="keyword">const</span> System.String COMPOUND_FILE_STORE_EXTENSION = <span class="stringliteral">&quot;cfx&quot;</span>;</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; </div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <span class="keyword">internal</span> <span class="keyword">const</span> System.String DELETES_EXTENSION = <span class="stringliteral">&quot;del&quot;</span>;</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; </div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="code" href="class_lucene_1_1_net_1_1_index_1_1_index_file_names.html#a7209042e5d196fb3750b1b7b6abb8072"> 79</a></span>&#160; <span class="keyword">public</span> <span class="comment">/*internal*/</span> <span class="keyword">const</span> System.String FIELD_INFOS_EXTENSION = <span class="stringliteral">&quot;fnm&quot;</span>;</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; </div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="code" href="class_lucene_1_1_net_1_1_index_1_1_index_file_names.html#a05b447366edf18706a95558ab4e9390d"> 82</a></span>&#160; <span class="keyword">public</span> <span class="comment">/*internal*/</span> <span class="keyword">const</span> System.String PLAIN_NORMS_EXTENSION = <span class="stringliteral">&quot;f&quot;</span>;</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; </div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="code" href="class_lucene_1_1_net_1_1_index_1_1_index_file_names.html#aa9f53e8529c71bd595929491a96f7ba6"> 85</a></span>&#160; <span class="keyword">public</span> <span class="comment">/*internal*/</span> <span class="keyword">const</span> System.String SEPARATE_NORMS_EXTENSION = <span class="stringliteral">&quot;s&quot;</span>;</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; </div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="code" href="class_lucene_1_1_net_1_1_index_1_1_index_file_names.html#ad727649e13f229df6bcd28011eee73d5"> 88</a></span>&#160; <span class="keyword">public</span> <span class="comment">/*internal*/</span> <span class="keyword">const</span> System.String GEN_EXTENSION = <span class="stringliteral">&quot;gen&quot;</span>;</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; </div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="code" href="class_lucene_1_1_net_1_1_index_1_1_index_file_names.html#aeff5ebb5f5df4bf98a25feaec1cc1bee"> 97</a></span>&#160; <span class="keyword">public</span> <span class="comment">/*internal*/</span> <span class="keyword">static</span> readonly System.String[] INDEX_EXTENSIONS = <span class="keyword">new</span> System.String[]{COMPOUND_FILE_EXTENSION, FIELD_INFOS_EXTENSION, FIELDS_INDEX_EXTENSION, FIELDS_EXTENSION, TERMS_INDEX_EXTENSION, TERMS_EXTENSION, FREQ_EXTENSION, PROX_EXTENSION, DELETES_EXTENSION, VECTORS_INDEX_EXTENSION, VECTORS_DOCUMENTS_EXTENSION, VECTORS_FIELDS_EXTENSION, GEN_EXTENSION, NORMS_EXTENSION, COMPOUND_FILE_STORE_EXTENSION};</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; </div>
<div class="line"><a name="l00102"></a><span class="lineno"><a class="code" href="class_lucene_1_1_net_1_1_index_1_1_index_file_names.html#a623dbb922a68910d98fe83639a1607b5"> 102</a></span>&#160; <span class="keyword">public</span> <span class="comment">/*internal*/</span> <span class="keyword">static</span> readonly System.String[] INDEX_EXTENSIONS_IN_COMPOUND_FILE = <span class="keyword">new</span> System.String[]{FIELD_INFOS_EXTENSION, FIELDS_INDEX_EXTENSION, FIELDS_EXTENSION, TERMS_INDEX_EXTENSION, TERMS_EXTENSION, FREQ_EXTENSION, PROX_EXTENSION, VECTORS_INDEX_EXTENSION, VECTORS_DOCUMENTS_EXTENSION, VECTORS_FIELDS_EXTENSION, NORMS_EXTENSION};</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; </div>
<div class="line"><a name="l00104"></a><span class="lineno"><a class="code" href="class_lucene_1_1_net_1_1_index_1_1_index_file_names.html#ad4d96035dce849a6284fe56d2a719032"> 104</a></span>&#160; <span class="keyword">public</span> <span class="comment">/*internal*/</span> <span class="keyword">static</span> readonly System.String[] STORE_INDEX_EXTENSIONS = <span class="keyword">new</span> System.String[]{VECTORS_INDEX_EXTENSION, VECTORS_FIELDS_EXTENSION, VECTORS_DOCUMENTS_EXTENSION, FIELDS_INDEX_EXTENSION, FIELDS_EXTENSION};</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; </div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="code" href="class_lucene_1_1_net_1_1_index_1_1_index_file_names.html#a1d3ba806a5aa022ac6a083d6ef598bb1"> 106</a></span>&#160; <span class="keyword">public</span> <span class="comment">/*internal*/</span> <span class="keyword">static</span> readonly System.String[] NON_STORE_INDEX_EXTENSIONS = <span class="keyword">new</span> System.String[]{FIELD_INFOS_EXTENSION, FREQ_EXTENSION, PROX_EXTENSION, TERMS_EXTENSION, TERMS_INDEX_EXTENSION, NORMS_EXTENSION};</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; </div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="code" href="class_lucene_1_1_net_1_1_index_1_1_index_file_names.html#aa08654d07addfb1ed2aa3af5e93437a8"> 109</a></span>&#160; <span class="keyword">public</span> <span class="comment">/*internal*/</span> <span class="keyword">static</span> readonly System.String[] COMPOUND_EXTENSIONS = <span class="keyword">new</span> System.String[]{FIELD_INFOS_EXTENSION, FREQ_EXTENSION, PROX_EXTENSION, FIELDS_INDEX_EXTENSION, FIELDS_EXTENSION, TERMS_INDEX_EXTENSION, TERMS_EXTENSION};</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; </div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="code" href="class_lucene_1_1_net_1_1_index_1_1_index_file_names.html#a30bb03cf70421a1609f88c36d845bccd"> 112</a></span>&#160; <span class="keyword">public</span> <span class="comment">/*internal*/</span> <span class="keyword">static</span> readonly System.String[] VECTOR_EXTENSIONS = <span class="keyword">new</span> System.String[]{VECTORS_INDEX_EXTENSION, VECTORS_DOCUMENTS_EXTENSION, VECTORS_FIELDS_EXTENSION};</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; </div>
<div class="line"><a name="l00126"></a><span class="lineno"><a class="code" href="class_lucene_1_1_net_1_1_index_1_1_index_file_names.html#a905c04585f337312d3d8d9019fb088b1"> 126</a></span>&#160; <span class="keyword">public</span> <span class="comment">/*internal*/</span> <span class="keyword">static</span> System.String FileNameFromGeneration(System.String base_Renamed, System.String extension, <span class="keywordtype">long</span> gen)</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; {</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <span class="keywordflow">if</span> (gen == <a class="code" href="class_lucene_1_1_net_1_1_index_1_1_segment_info.html" title="Information about a segment such as it&#39;s name, directory, and files related to the segment...">SegmentInfo</a>.NO)</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; {</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; <span class="keywordflow">return</span> null;</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; }</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (gen == <a class="code" href="class_lucene_1_1_net_1_1_index_1_1_segment_info.html" title="Information about a segment such as it&#39;s name, directory, and files related to the segment...">SegmentInfo</a>.WITHOUT_GEN)</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; {</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; <span class="keywordflow">return</span> base_Renamed + extension;</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; }</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; {</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160;<span class="preprocessor">#if !PRE_LUCENE_NET_2_0_0_COMPATIBLE</span></div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160;<span class="preprocessor"></span> <span class="keywordflow">return</span> base_Renamed + <span class="stringliteral">&quot;_&quot;</span> + <a class="code" href="class_lucene_1_1_net_1_1_support_1_1_number.html" title="A simple class for number conversions. ">Number</a>.<a class="code" href="class_lucene_1_1_net_1_1_support_1_1_number.html#a665755a13d3b013a03f5abb1a3fd44e9" title="Converts a number to System.String. ">ToString</a>(gen) + extension;</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160;<span class="preprocessor"></span> <span class="keywordflow">return</span> base_Renamed + <span class="stringliteral">&quot;_&quot;</span> + System.Convert.ToString(gen, 16) + extension;</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160;<span class="preprocessor"></span> }</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; }</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; </div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; <span class="keyword">internal</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> IsDocStoreFile(System.String fileName)</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; {</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; <span class="keywordflow">if</span> (fileName.EndsWith(COMPOUND_FILE_STORE_EXTENSION))</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; STORE_INDEX_EXTENSIONS.Length; i++)</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; <span class="keywordflow">if</span> (fileName.EndsWith(STORE_INDEX_EXTENSIONS[i]))</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; }</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; </div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; <span class="keyword">internal</span> <span class="keyword">static</span> System.String SegmentFileName(System.String segmentName, System.String ext)</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; {</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; <span class="keywordflow">return</span> segmentName + <span class="stringliteral">&quot;.&quot;</span> + ext;</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; }</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; }</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160;}</div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Jan 3 2013 02:12:45 for Lucene.Net by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3
</small></address>
</body>
</html>