blob: 02f8d6ad85793139fe517b6a4e105b5599134f67 [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: Lucene.Net.Store.RAMDirectory Class Reference</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 class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><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="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="classes.html"><span>Class&#160;Index</span></a></li>
<li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#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="namespace_lucene.html">Lucene</a></li><li class="navelem"><a class="el" href="namespace_lucene_1_1_net.html">Net</a></li><li class="navelem"><a class="el" href="namespace_lucene_1_1_net_1_1_store.html">Store</a></li><li class="navelem"><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_r_a_m_directory.html">RAMDirectory</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="class_lucene_1_1_net_1_1_store_1_1_r_a_m_directory-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">Lucene.Net.Store.RAMDirectory Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>A memory-resident <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html" title="A Directory is a flat list of files. Files may be written once, when they are created. Once a file is created it may only be opened for read, or deleted. Random access is permitted both when reading and writing.">Directory</a> implementation. Locking implementation is by default the <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_single_instance_lock_factory.html" title="Implements LockFactory for a single in-process instance, meaning all locking will take place through ...">SingleInstanceLockFactory</a> but can be changed with <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html#a407c29121f9b5e5b40a79b33f3bdcf29" title="Set the LockFactory that this Directory instance should use for its locking implementation. Each * instance of LockFactory should only be used for one directory (ie, do not share a single instance across multiple Directories).">Directory.SetLockFactory</a>.
<a href="class_lucene_1_1_net_1_1_store_1_1_r_a_m_directory.html#details">More...</a></p>
<p>Inherits <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html">Lucene.Net.Store.Directory</a>.</p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aa90bf5700e317f807451ee76eb80eb86"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_r_a_m_directory.html#aa90bf5700e317f807451ee76eb80eb86">RAMDirectory</a> ()</td></tr>
<tr class="memdesc:aa90bf5700e317f807451ee76eb80eb86"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs an empty <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html" title="A Directory is a flat list of files. Files may be written once, when they are created. Once a file is created it may only be opened for read, or deleted. Random access is permitted both when reading and writing.">Directory</a>. <a href="#aa90bf5700e317f807451ee76eb80eb86"></a><br/></td></tr>
<tr class="separator:aa90bf5700e317f807451ee76eb80eb86"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a169f12accfe424d8eb30a4b091dfd111"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_r_a_m_directory.html#a169f12accfe424d8eb30a4b091dfd111">RAMDirectory</a> (<a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html">Directory</a> dir)</td></tr>
<tr class="memdesc:a169f12accfe424d8eb30a4b091dfd111"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new <code><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_r_a_m_directory.html" title="A memory-resident Directory implementation. Locking implementation is by default the SingleInstanceLo...">RAMDirectory</a></code> instance from a different <code><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html" title="A Directory is a flat list of files. Files may be written once, when they are created. Once a file is created it may only be opened for read, or deleted. Random access is permitted both when reading and writing.">Directory</a></code> implementation. This can be used to load a disk-based index into memory. This should be used only with indices that can fit into memory. Note that the resulting <code><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_r_a_m_directory.html" title="A memory-resident Directory implementation. Locking implementation is by default the SingleInstanceLo...">RAMDirectory</a></code> instance is fully independent from the original <code><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html" title="A Directory is a flat list of files. Files may be written once, when they are created. Once a file is created it may only be opened for read, or deleted. Random access is permitted both when reading and writing.">Directory</a></code> (it is a complete copy). Any subsequent changes to the original <code><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html" title="A Directory is a flat list of files. Files may be written once, when they are created. Once a file is created it may only be opened for read, or deleted. Random access is permitted both when reading and writing.">Directory</a></code> will not be visible in the <code><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_r_a_m_directory.html" title="A memory-resident Directory implementation. Locking implementation is by default the SingleInstanceLo...">RAMDirectory</a></code> instance. <a href="#a169f12accfe424d8eb30a4b091dfd111"></a><br/></td></tr>
<tr class="separator:a169f12accfe424d8eb30a4b091dfd111"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab813e741fb4c36ec7955d1135fdc7dc5"><td class="memItemLeft" align="right" valign="top">override System.String[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_r_a_m_directory.html#ab813e741fb4c36ec7955d1135fdc7dc5">ListAll</a> ()</td></tr>
<tr class="memdesc:ab813e741fb4c36ec7955d1135fdc7dc5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an array of strings, one for each file in the directory. <a href="#ab813e741fb4c36ec7955d1135fdc7dc5"></a><br/></td></tr>
<tr class="separator:ab813e741fb4c36ec7955d1135fdc7dc5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1cea1a98d134b8310f349980b4b534ec"><td class="memItemLeft" align="right" valign="top">override bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_r_a_m_directory.html#a1cea1a98d134b8310f349980b4b534ec">FileExists</a> (System.String name)</td></tr>
<tr class="memdesc:a1cea1a98d134b8310f349980b4b534ec"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true iff the named file exists in this directory. <a href="#a1cea1a98d134b8310f349980b4b534ec"></a><br/></td></tr>
<tr class="separator:a1cea1a98d134b8310f349980b4b534ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add780233b5a8e699584e30bb9a0e9c14"><td class="memItemLeft" align="right" valign="top">override long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_r_a_m_directory.html#add780233b5a8e699584e30bb9a0e9c14">FileModified</a> (System.String name)</td></tr>
<tr class="memdesc:add780233b5a8e699584e30bb9a0e9c14"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the time the named file was last modified. <a href="#add780233b5a8e699584e30bb9a0e9c14"></a><br/></td></tr>
<tr class="separator:add780233b5a8e699584e30bb9a0e9c14"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7201010a363c98c69f95027479674557"><td class="memItemLeft" align="right" valign="top">override void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_r_a_m_directory.html#a7201010a363c98c69f95027479674557">TouchFile</a> (System.String name)</td></tr>
<tr class="memdesc:a7201010a363c98c69f95027479674557"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the modified time of an existing file to now. <a href="#a7201010a363c98c69f95027479674557"></a><br/></td></tr>
<tr class="separator:a7201010a363c98c69f95027479674557"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0164b3905b10b1db9a83e8f69c6eeb48"><td class="memItemLeft" align="right" valign="top">override long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_r_a_m_directory.html#a0164b3905b10b1db9a83e8f69c6eeb48">FileLength</a> (System.String name)</td></tr>
<tr class="memdesc:a0164b3905b10b1db9a83e8f69c6eeb48"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the length in bytes of a file in the directory. <a href="#a0164b3905b10b1db9a83e8f69c6eeb48"></a><br/></td></tr>
<tr class="separator:a0164b3905b10b1db9a83e8f69c6eeb48"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c064fc9127d00b5fa1540d60622236c"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_r_a_m_directory.html#a2c064fc9127d00b5fa1540d60622236c">SizeInBytes</a> ()</td></tr>
<tr class="memdesc:a2c064fc9127d00b5fa1540d60622236c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return total size in bytes of all files in this directory. This is currently quantized to RAMOutputStream.BUFFER_SIZE. <a href="#a2c064fc9127d00b5fa1540d60622236c"></a><br/></td></tr>
<tr class="separator:a2c064fc9127d00b5fa1540d60622236c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac942b065bdc1258e801b14694c41a798"><td class="memItemLeft" align="right" valign="top">override void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_r_a_m_directory.html#ac942b065bdc1258e801b14694c41a798">DeleteFile</a> (System.String name)</td></tr>
<tr class="memdesc:ac942b065bdc1258e801b14694c41a798"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes an existing file in the directory. <a href="#ac942b065bdc1258e801b14694c41a798"></a><br/></td></tr>
<tr class="separator:ac942b065bdc1258e801b14694c41a798"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7177d34113b18474b18037ccde68d054"><td class="memItemLeft" align="right" valign="top">override <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_index_output.html">IndexOutput</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_r_a_m_directory.html#a7177d34113b18474b18037ccde68d054">CreateOutput</a> (System.String name)</td></tr>
<tr class="memdesc:a7177d34113b18474b18037ccde68d054"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new, empty file in the directory with the given name. Returns a stream writing this file. <a href="#a7177d34113b18474b18037ccde68d054"></a><br/></td></tr>
<tr class="separator:a7177d34113b18474b18037ccde68d054"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aace1d3b4bdada04dfad134dff03b8b29"><td class="memItemLeft" align="right" valign="top">override <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_index_input.html">IndexInput</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_r_a_m_directory.html#aace1d3b4bdada04dfad134dff03b8b29">OpenInput</a> (System.String name)</td></tr>
<tr class="memdesc:aace1d3b4bdada04dfad134dff03b8b29"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a stream reading an existing file. <a href="#aace1d3b4bdada04dfad134dff03b8b29"></a><br/></td></tr>
<tr class="separator:aace1d3b4bdada04dfad134dff03b8b29"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_lucene_1_1_net_1_1_store_1_1_directory"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_lucene_1_1_net_1_1_store_1_1_directory')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html">Lucene.Net.Store.Directory</a></td></tr>
<tr class="memitem:a1b5473afa8d8883972556956d638071c inherit pub_methods_class_lucene_1_1_net_1_1_store_1_1_directory"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html#a1b5473afa8d8883972556956d638071c">Sync</a> (System.String name)</td></tr>
<tr class="memdesc:a1b5473afa8d8883972556956d638071c inherit pub_methods_class_lucene_1_1_net_1_1_store_1_1_directory"><td class="mdescLeft">&#160;</td><td class="mdescRight">Ensure that any writes to this file are moved to stable storage. <a class="el" href="namespace_lucene.html">Lucene</a> uses this to properly commit changes to the index, to prevent a machine/OS crash from corrupting the index. <a href="#a1b5473afa8d8883972556956d638071c"></a><br/></td></tr>
<tr class="separator:a1b5473afa8d8883972556956d638071c inherit pub_methods_class_lucene_1_1_net_1_1_store_1_1_directory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a8da4004ee5216c050ed7094c3eeb6e inherit pub_methods_class_lucene_1_1_net_1_1_store_1_1_directory"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_index_input.html">IndexInput</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html#a2a8da4004ee5216c050ed7094c3eeb6e">OpenInput</a> (System.String name, int bufferSize)</td></tr>
<tr class="memdesc:a2a8da4004ee5216c050ed7094c3eeb6e inherit pub_methods_class_lucene_1_1_net_1_1_store_1_1_directory"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a stream reading an existing file, with the specified read buffer size. The particular <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html" title="A Directory is a flat list of files. Files may be written once, when they are created. Once a file is created it may only be opened for read, or deleted. Random access is permitted both when reading and writing.">Directory</a> implementation may ignore the buffer size. Currently the only <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html" title="A Directory is a flat list of files. Files may be written once, when they are created. Once a file is created it may only be opened for read, or deleted. Random access is permitted both when reading and writing.">Directory</a> implementations that respect this parameter are <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_f_s_directory.html" title=" Base class for Directory implementations that store index files in the file system. There are currently three core subclasses:">FSDirectory</a> and <a class="el" href="class_lucene_1_1_net_1_1_index_1_1_compound_file_reader.html" title="Class for accessing a compound stream. This class implements a directory, but is limited to only read...">Lucene.Net.Index.CompoundFileReader</a> <a href="#a2a8da4004ee5216c050ed7094c3eeb6e"></a><br/></td></tr>
<tr class="separator:a2a8da4004ee5216c050ed7094c3eeb6e inherit pub_methods_class_lucene_1_1_net_1_1_store_1_1_directory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28f7428b0f324cfb7dd4f615b94b0dfb inherit pub_methods_class_lucene_1_1_net_1_1_store_1_1_directory"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_lock.html">Lock</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html#a28f7428b0f324cfb7dd4f615b94b0dfb">MakeLock</a> (System.String name)</td></tr>
<tr class="memdesc:a28f7428b0f324cfb7dd4f615b94b0dfb inherit pub_methods_class_lucene_1_1_net_1_1_store_1_1_directory"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct a <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_lock.html" title="An interprocess mutex lock. Typical use might look like:">Lock</a>. <a href="#a28f7428b0f324cfb7dd4f615b94b0dfb"></a><br/></td></tr>
<tr class="separator:a28f7428b0f324cfb7dd4f615b94b0dfb inherit pub_methods_class_lucene_1_1_net_1_1_store_1_1_directory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af034c6d49f075419935c0cf5b371736f inherit pub_methods_class_lucene_1_1_net_1_1_store_1_1_directory"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html#af034c6d49f075419935c0cf5b371736f">ClearLock</a> (System.String name)</td></tr>
<tr class="memdesc:af034c6d49f075419935c0cf5b371736f inherit pub_methods_class_lucene_1_1_net_1_1_store_1_1_directory"><td class="mdescLeft">&#160;</td><td class="mdescRight">Attempt to clear (forcefully unlock and remove) the specified lock. Only call this at a time when you are certain this lock is no longer in use. <a href="#af034c6d49f075419935c0cf5b371736f"></a><br/></td></tr>
<tr class="separator:af034c6d49f075419935c0cf5b371736f inherit pub_methods_class_lucene_1_1_net_1_1_store_1_1_directory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6db8d63d7d08a6486db6d8d0fae3efb inherit pub_methods_class_lucene_1_1_net_1_1_store_1_1_directory"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html#ab6db8d63d7d08a6486db6d8d0fae3efb">Close</a> ()</td></tr>
<tr class="separator:ab6db8d63d7d08a6486db6d8d0fae3efb inherit pub_methods_class_lucene_1_1_net_1_1_store_1_1_directory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee7e78b13b835a9d411cff051e5a101f inherit pub_methods_class_lucene_1_1_net_1_1_store_1_1_directory"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html#aee7e78b13b835a9d411cff051e5a101f">Dispose</a> ()</td></tr>
<tr class="memdesc:aee7e78b13b835a9d411cff051e5a101f inherit pub_methods_class_lucene_1_1_net_1_1_store_1_1_directory"><td class="mdescLeft">&#160;</td><td class="mdescRight">Closes the store. <a href="#aee7e78b13b835a9d411cff051e5a101f"></a><br/></td></tr>
<tr class="separator:aee7e78b13b835a9d411cff051e5a101f inherit pub_methods_class_lucene_1_1_net_1_1_store_1_1_directory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a407c29121f9b5e5b40a79b33f3bdcf29 inherit pub_methods_class_lucene_1_1_net_1_1_store_1_1_directory"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html#a407c29121f9b5e5b40a79b33f3bdcf29">SetLockFactory</a> (<a class="el" href="class_lucene_1_1_net_1_1_store_1_1_lock_factory.html">LockFactory</a> lockFactory)</td></tr>
<tr class="memdesc:a407c29121f9b5e5b40a79b33f3bdcf29 inherit pub_methods_class_lucene_1_1_net_1_1_store_1_1_directory"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_lock_factory.html" title="Base class for Locking implementation. Directory uses instances of this class to implement locking...">LockFactory</a> that this <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html" title="A Directory is a flat list of files. Files may be written once, when they are created. Once a file is created it may only be opened for read, or deleted. Random access is permitted both when reading and writing.">Directory</a> instance should use for its locking implementation. Each * instance of <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_lock_factory.html" title="Base class for Locking implementation. Directory uses instances of this class to implement locking...">LockFactory</a> should only be used for one directory (ie, do not share a single instance across multiple Directories). <a href="#a407c29121f9b5e5b40a79b33f3bdcf29"></a><br/></td></tr>
<tr class="separator:a407c29121f9b5e5b40a79b33f3bdcf29 inherit pub_methods_class_lucene_1_1_net_1_1_store_1_1_directory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adfb37c848971f09208379edd8d022618 inherit pub_methods_class_lucene_1_1_net_1_1_store_1_1_directory"><td class="memItemLeft" align="right" valign="top">virtual string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html#adfb37c848971f09208379edd8d022618">GetLockId</a> ()</td></tr>
<tr class="memdesc:adfb37c848971f09208379edd8d022618 inherit pub_methods_class_lucene_1_1_net_1_1_store_1_1_directory"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return a string identifier that uniquely differentiates this <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html" title="A Directory is a flat list of files. Files may be written once, when they are created. Once a file is created it may only be opened for read, or deleted. Random access is permitted both when reading and writing.">Directory</a> instance from other <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html" title="A Directory is a flat list of files. Files may be written once, when they are created. Once a file is created it may only be opened for read, or deleted. Random access is permitted both when reading and writing.">Directory</a> instances. This ID should be the same if two <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html" title="A Directory is a flat list of files. Files may be written once, when they are created. Once a file is created it may only be opened for read, or deleted. Random access is permitted both when reading and writing.">Directory</a> instances (even in different JVMs and/or on different machines) are considered "the same index". This is how locking "scopes" to the right index. <a href="#adfb37c848971f09208379edd8d022618"></a><br/></td></tr>
<tr class="separator:adfb37c848971f09208379edd8d022618 inherit pub_methods_class_lucene_1_1_net_1_1_store_1_1_directory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af43436f8f012d994eeecbe80cdb566f2 inherit pub_methods_class_lucene_1_1_net_1_1_store_1_1_directory"><td class="memItemLeft" align="right" valign="top">override string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html#af43436f8f012d994eeecbe80cdb566f2">ToString</a> ()</td></tr>
<tr class="separator:af43436f8f012d994eeecbe80cdb566f2 inherit pub_methods_class_lucene_1_1_net_1_1_store_1_1_directory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adddfbc37af5bd5ac2b4133c6207a04ab inherit pub_methods_class_lucene_1_1_net_1_1_store_1_1_directory"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html#adddfbc37af5bd5ac2b4133c6207a04ab">EnsureOpen</a> ()</td></tr>
<tr class="memdesc:adddfbc37af5bd5ac2b4133c6207a04ab inherit pub_methods_class_lucene_1_1_net_1_1_store_1_1_directory"><td class="mdescLeft">&#160;</td><td class="mdescRight">&lt;throws&gt; <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_already_closed_exception.html" title="This exception is thrown when there is an attempt to access something that has already been closed...">AlreadyClosedException</a> if this <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html" title="A Directory is a flat list of files. Files may be written once, when they are created. Once a file is created it may only be opened for read, or deleted. Random access is permitted both when reading and writing.">Directory</a> is closed &lt;/throws&gt; <a href="#adddfbc37af5bd5ac2b4133c6207a04ab"></a><br/></td></tr>
<tr class="separator:adddfbc37af5bd5ac2b4133c6207a04ab inherit pub_methods_class_lucene_1_1_net_1_1_store_1_1_directory"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a339e6e05d9bc051982b9002ae97480b0"><td class="memItemLeft" align="right" valign="top">override void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_r_a_m_directory.html#a339e6e05d9bc051982b9002ae97480b0">Dispose</a> (bool disposing)</td></tr>
<tr class="memdesc:a339e6e05d9bc051982b9002ae97480b0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Closes the store to future operations, releasing associated memory. <a href="#a339e6e05d9bc051982b9002ae97480b0"></a><br/></td></tr>
<tr class="separator:a339e6e05d9bc051982b9002ae97480b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a5d4e6b816998139dd4f6765d2598a8b6"><td class="memItemLeft" align="right" valign="top">HashMap&lt; string, <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_r_a_m_file.html">RAMFile</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_r_a_m_directory.html#a5d4e6b816998139dd4f6765d2598a8b6">fileMap</a> = new HashMap&lt;string, <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_r_a_m_file.html">RAMFile</a>&gt;()</td></tr>
<tr class="separator:a5d4e6b816998139dd4f6765d2598a8b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a2ece5829a67a817e57d837fc3b075d"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_r_a_m_directory.html#a4a2ece5829a67a817e57d837fc3b075d">internalSizeInBytes</a> = 0</td></tr>
<tr class="separator:a4a2ece5829a67a817e57d837fc3b075d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_static_methods_class_lucene_1_1_net_1_1_store_1_1_directory"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_class_lucene_1_1_net_1_1_store_1_1_directory')"><img src="closed.png" alt="-"/>&#160;Static Public Member Functions inherited from <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html">Lucene.Net.Store.Directory</a></td></tr>
<tr class="memitem:a048c03bc449c61d4e2805500b33d172e inherit pub_static_methods_class_lucene_1_1_net_1_1_store_1_1_directory"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html#a048c03bc449c61d4e2805500b33d172e">Copy</a> (<a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html">Directory</a> src, <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html">Directory</a> dest, bool closeDirSrc)</td></tr>
<tr class="memdesc:a048c03bc449c61d4e2805500b33d172e inherit pub_static_methods_class_lucene_1_1_net_1_1_store_1_1_directory"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy contents of a directory src to a directory dest. If a file in src already exists in dest then the one in dest will be blindly overwritten. <a href="#a048c03bc449c61d4e2805500b33d172e"></a><br/></td></tr>
<tr class="separator:a048c03bc449c61d4e2805500b33d172e inherit pub_static_methods_class_lucene_1_1_net_1_1_store_1_1_directory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header properties_class_lucene_1_1_net_1_1_store_1_1_directory"><td colspan="2" onclick="javascript:toggleInherit('properties_class_lucene_1_1_net_1_1_store_1_1_directory')"><img src="closed.png" alt="-"/>&#160;Properties inherited from <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html">Lucene.Net.Store.Directory</a></td></tr>
<tr class="memitem:ad11523bdc679a598c4f5e6deb3131366 inherit properties_class_lucene_1_1_net_1_1_store_1_1_directory"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_lock_factory.html">LockFactory</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html#ad11523bdc679a598c4f5e6deb3131366">LockFactory</a><code> [get]</code></td></tr>
<tr class="memdesc:ad11523bdc679a598c4f5e6deb3131366 inherit properties_class_lucene_1_1_net_1_1_store_1_1_directory"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_lock_factory.html" title="Base class for Locking implementation. Directory uses instances of this class to implement locking...">LockFactory</a> that this <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html" title="A Directory is a flat list of files. Files may be written once, when they are created. Once a file is created it may only be opened for read, or deleted. Random access is permitted both when reading and writing.">Directory</a> instance is using for its locking implementation. Note that this may be null for <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html" title="A Directory is a flat list of files. Files may be written once, when they are created. Once a file is created it may only be opened for read, or deleted. Random access is permitted both when reading and writing.">Directory</a> implementations that provide their own locking implementation. <a href="#ad11523bdc679a598c4f5e6deb3131366"></a><br/></td></tr>
<tr class="separator:ad11523bdc679a598c4f5e6deb3131366 inherit properties_class_lucene_1_1_net_1_1_store_1_1_directory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad53c9747e166be96af86c391777a0793 inherit properties_class_lucene_1_1_net_1_1_store_1_1_directory"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html#ad53c9747e166be96af86c391777a0793">isOpen_ForNUnit</a><code> [get]</code></td></tr>
<tr class="separator:ad53c9747e166be96af86c391777a0793 inherit properties_class_lucene_1_1_net_1_1_store_1_1_directory"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A memory-resident <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html" title="A Directory is a flat list of files. Files may be written once, when they are created. Once a file is created it may only be opened for read, or deleted. Random access is permitted both when reading and writing.">Directory</a> implementation. Locking implementation is by default the <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_single_instance_lock_factory.html" title="Implements LockFactory for a single in-process instance, meaning all locking will take place through ...">SingleInstanceLockFactory</a> but can be changed with <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html#a407c29121f9b5e5b40a79b33f3bdcf29" title="Set the LockFactory that this Directory instance should use for its locking implementation. Each * instance of LockFactory should only be used for one directory (ie, do not share a single instance across multiple Directories).">Directory.SetLockFactory</a>. </p>
<p>Definition at line <a class="el" href="_r_a_m_directory_8cs_source.html#l00029">29</a> of file <a class="el" href="_r_a_m_directory_8cs_source.html">RAMDirectory.cs</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="aa90bf5700e317f807451ee76eb80eb86"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Lucene.Net.Store.RAMDirectory.RAMDirectory </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Constructs an empty <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html" title="A Directory is a flat list of files. Files may be written once, when they are created. Once a file is created it may only be opened for read, or deleted. Random access is permitted both when reading and writing.">Directory</a>. </p>
<p>Definition at line <a class="el" href="_r_a_m_directory_8cs_source.html#l00042">42</a> of file <a class="el" href="_r_a_m_directory_8cs_source.html">RAMDirectory.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a169f12accfe424d8eb30a4b091dfd111"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Lucene.Net.Store.RAMDirectory.RAMDirectory </td>
<td>(</td>
<td class="paramtype"><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html">Directory</a>&#160;</td>
<td class="paramname"><em>dir</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a new <code><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_r_a_m_directory.html" title="A memory-resident Directory implementation. Locking implementation is by default the SingleInstanceLo...">RAMDirectory</a></code> instance from a different <code><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html" title="A Directory is a flat list of files. Files may be written once, when they are created. Once a file is created it may only be opened for read, or deleted. Random access is permitted both when reading and writing.">Directory</a></code> implementation. This can be used to load a disk-based index into memory. This should be used only with indices that can fit into memory. Note that the resulting <code><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_r_a_m_directory.html" title="A memory-resident Directory implementation. Locking implementation is by default the SingleInstanceLo...">RAMDirectory</a></code> instance is fully independent from the original <code><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html" title="A Directory is a flat list of files. Files may be written once, when they are created. Once a file is created it may only be opened for read, or deleted. Random access is permitted both when reading and writing.">Directory</a></code> (it is a complete copy). Any subsequent changes to the original <code><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html" title="A Directory is a flat list of files. Files may be written once, when they are created. Once a file is created it may only be opened for read, or deleted. Random access is permitted both when reading and writing.">Directory</a></code> will not be visible in the <code><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_r_a_m_directory.html" title="A memory-resident Directory implementation. Locking implementation is by default the SingleInstanceLo...">RAMDirectory</a></code> instance. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">dir</td><td>a <code><a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html" title="A Directory is a flat list of files. Files may be written once, when they are created. Once a file is created it may only be opened for read, or deleted. Random access is permitted both when reading and writing.">Directory</a></code> value </td></tr>
</table>
</dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
<table class="exception">
<tr><td class="paramname">System.IO.IOException</td><td>if an error occurs </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="_r_a_m_directory_8cs_source.html#l00064">64</a> of file <a class="el" href="_r_a_m_directory_8cs_source.html">RAMDirectory.cs</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a7177d34113b18474b18037ccde68d054"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">override <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_index_output.html">IndexOutput</a> Lucene.Net.Store.RAMDirectory.CreateOutput </td>
<td>(</td>
<td class="paramtype">System.String&#160;</td>
<td class="paramname"><em>name</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a new, empty file in the directory with the given name. Returns a stream writing this file. </p>
<p>Implements <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html#af44407cd2e54288502f459924efc9aac">Lucene.Net.Store.Directory</a>.</p>
<p>Definition at line <a class="el" href="_r_a_m_directory_8cs_source.html#l00213">213</a> of file <a class="el" href="_r_a_m_directory_8cs_source.html">RAMDirectory.cs</a>.</p>
</div>
</div>
<a class="anchor" id="ac942b065bdc1258e801b14694c41a798"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">override void Lucene.Net.Store.RAMDirectory.DeleteFile </td>
<td>(</td>
<td class="paramtype">System.String&#160;</td>
<td class="paramname"><em>name</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Removes an existing file in the directory.</p>
<p>&lt;throws&gt; IOException if the file does not exist &lt;/throws&gt; </p>
<p>Implements <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html#ad3722fbcf237e9b2297d7834b6f09192">Lucene.Net.Store.Directory</a>.</p>
<p>Definition at line <a class="el" href="_r_a_m_directory_8cs_source.html#l00195">195</a> of file <a class="el" href="_r_a_m_directory_8cs_source.html">RAMDirectory.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a339e6e05d9bc051982b9002ae97480b0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">override void Lucene.Net.Store.RAMDirectory.Dispose </td>
<td>(</td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>disposing</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Closes the store to future operations, releasing associated memory. </p>
<p>Implements <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html#abbc8e1b070b3186a1b7587d415535739">Lucene.Net.Store.Directory</a>.</p>
<p>Definition at line <a class="el" href="_r_a_m_directory_8cs_source.html#l00245">245</a> of file <a class="el" href="_r_a_m_directory_8cs_source.html">RAMDirectory.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a1cea1a98d134b8310f349980b4b534ec"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">override bool Lucene.Net.Store.RAMDirectory.FileExists </td>
<td>(</td>
<td class="paramtype">System.String&#160;</td>
<td class="paramname"><em>name</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns true iff the named file exists in this directory. </p>
<p>Implements <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html#abff8f4b9909c5f197b18270a7ed8985c">Lucene.Net.Store.Directory</a>.</p>
<p>Definition at line <a class="el" href="_r_a_m_directory_8cs_source.html#l00101">101</a> of file <a class="el" href="_r_a_m_directory_8cs_source.html">RAMDirectory.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a0164b3905b10b1db9a83e8f69c6eeb48"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">override long Lucene.Net.Store.RAMDirectory.FileLength </td>
<td>(</td>
<td class="paramtype">System.String&#160;</td>
<td class="paramname"><em>name</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the length in bytes of a file in the directory.</p>
<p>&lt;throws&gt; IOException if the file does not exist &lt;/throws&gt; </p>
<p>Implements <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html#aaf0539c5a4613457a1dbdc81a169f49f">Lucene.Net.Store.Directory</a>.</p>
<p>Definition at line <a class="el" href="_r_a_m_directory_8cs_source.html#l00167">167</a> of file <a class="el" href="_r_a_m_directory_8cs_source.html">RAMDirectory.cs</a>.</p>
</div>
</div>
<a class="anchor" id="add780233b5a8e699584e30bb9a0e9c14"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">override long Lucene.Net.Store.RAMDirectory.FileModified </td>
<td>(</td>
<td class="paramtype">System.String&#160;</td>
<td class="paramname"><em>name</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the time the named file was last modified.</p>
<p>&lt;throws&gt; IOException if the file does not exist &lt;/throws&gt; </p>
<p>Implements <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html#a6335b0e675938d9106c71666018eac51">Lucene.Net.Store.Directory</a>.</p>
<p>Definition at line <a class="el" href="_r_a_m_directory_8cs_source.html#l00114">114</a> of file <a class="el" href="_r_a_m_directory_8cs_source.html">RAMDirectory.cs</a>.</p>
</div>
</div>
<a class="anchor" id="ab813e741fb4c36ec7955d1135fdc7dc5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">override System.String [] Lucene.Net.Store.RAMDirectory.ListAll </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns an array of strings, one for each file in the directory.</p>
<dl class="exception"><dt>Exceptions</dt><dd>
<table class="exception">
<tr><td class="paramname">System.IO.IOException</td><td></td></tr>
</table>
</dd>
</dl>
<p>Implements <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html#abfb7e6d495559d12b84ffb9758e1b15d">Lucene.Net.Store.Directory</a>.</p>
<p>Definition at line <a class="el" href="_r_a_m_directory_8cs_source.html#l00083">83</a> of file <a class="el" href="_r_a_m_directory_8cs_source.html">RAMDirectory.cs</a>.</p>
</div>
</div>
<a class="anchor" id="aace1d3b4bdada04dfad134dff03b8b29"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">override <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_index_input.html">IndexInput</a> Lucene.Net.Store.RAMDirectory.OpenInput </td>
<td>(</td>
<td class="paramtype">System.String&#160;</td>
<td class="paramname"><em>name</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns a stream reading an existing file. </p>
<p>Implements <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html#af08fb715df704bf7e0eb6f67e491b3c8">Lucene.Net.Store.Directory</a>.</p>
<p>Definition at line <a class="el" href="_r_a_m_directory_8cs_source.html#l00231">231</a> of file <a class="el" href="_r_a_m_directory_8cs_source.html">RAMDirectory.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a2c064fc9127d00b5fa1540d60622236c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">long Lucene.Net.Store.RAMDirectory.SizeInBytes </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Return total size in bytes of all files in this directory. This is currently quantized to RAMOutputStream.BUFFER_SIZE. </p>
<p>Definition at line <a class="el" href="_r_a_m_directory_8cs_source.html#l00184">184</a> of file <a class="el" href="_r_a_m_directory_8cs_source.html">RAMDirectory.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a7201010a363c98c69f95027479674557"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">override void Lucene.Net.Store.RAMDirectory.TouchFile </td>
<td>(</td>
<td class="paramtype">System.String&#160;</td>
<td class="paramname"><em>name</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the modified time of an existing file to now.</p>
<p>&lt;throws&gt; IOException if the file does not exist &lt;/throws&gt; </p>
<p>Implements <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_directory.html#ad374ac4d5b071ea364db40a0139b9574">Lucene.Net.Store.Directory</a>.</p>
<p>Definition at line <a class="el" href="_r_a_m_directory_8cs_source.html#l00133">133</a> of file <a class="el" href="_r_a_m_directory_8cs_source.html">RAMDirectory.cs</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a5d4e6b816998139dd4f6765d2598a8b6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">HashMap&lt;string, <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_r_a_m_file.html">RAMFile</a>&gt; Lucene.Net.Store.RAMDirectory.fileMap = new HashMap&lt;string, <a class="el" href="class_lucene_1_1_net_1_1_store_1_1_r_a_m_file.html">RAMFile</a>&gt;()</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="_r_a_m_directory_8cs_source.html#l00034">34</a> of file <a class="el" href="_r_a_m_directory_8cs_source.html">RAMDirectory.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a4a2ece5829a67a817e57d837fc3b075d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">long Lucene.Net.Store.RAMDirectory.internalSizeInBytes = 0</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="_r_a_m_directory_8cs_source.html#l00035">35</a> of file <a class="el" href="_r_a_m_directory_8cs_source.html">RAMDirectory.cs</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>core/Store/<a class="el" href="_r_a_m_directory_8cs_source.html">RAMDirectory.cs</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Jan 3 2013 02:12:59 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>