blob: 422a4b932149b94b8f98664c1ead9eeaf38fe3bc [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.Util.BitVector 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_util.html">Util</a></li><li class="navelem"><a class="el" href="class_lucene_1_1_net_1_1_util_1_1_bit_vector.html">BitVector</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_lucene_1_1_net_1_1_util_1_1_bit_vector-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">Lucene.Net.Util.BitVector Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Optimized implementation of a vector of bits. This is more-or-less like java.util.BitSet, but also includes the following: </p>
<ul>
<li>
a count() method, which efficiently computes the number of one bits; </li>
<li>
optimized read from and write to disk; </li>
<li>
inlinable get() method; </li>
<li>
store and load, as bit set or d-gaps, depending on sparseness; </li>
</ul>
<a href="class_lucene_1_1_net_1_1_util_1_1_bit_vector.html#details">More...</a></p>
<p>Inherits ICloneable.</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:a0ebf42699795da69472b255e21b9e9fb"><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_util_1_1_bit_vector.html#a0ebf42699795da69472b255e21b9e9fb">BitVector</a> (int n)</td></tr>
<tr class="memdesc:a0ebf42699795da69472b255e21b9e9fb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a vector capable of holding <code>n</code> bits. <a href="#a0ebf42699795da69472b255e21b9e9fb"></a><br/></td></tr>
<tr class="separator:a0ebf42699795da69472b255e21b9e9fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd024c86a9b82d44874c550ed0424e77"><td class="memItemLeft" align="right" valign="top">System.Object&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_util_1_1_bit_vector.html#abd024c86a9b82d44874c550ed0424e77">Clone</a> ()</td></tr>
<tr class="separator:abd024c86a9b82d44874c550ed0424e77"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d5832568c1ef85e9fdc22efc1534d82"><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_util_1_1_bit_vector.html#a3d5832568c1ef85e9fdc22efc1534d82">Set</a> (int bit)</td></tr>
<tr class="memdesc:a3d5832568c1ef85e9fdc22efc1534d82"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the value of <code>bit</code> to one. <a href="#a3d5832568c1ef85e9fdc22efc1534d82"></a><br/></td></tr>
<tr class="separator:a3d5832568c1ef85e9fdc22efc1534d82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab212e904ff78ce45351da30ce7c691f2"><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_util_1_1_bit_vector.html#ab212e904ff78ce45351da30ce7c691f2">GetAndSet</a> (int bit)</td></tr>
<tr class="memdesc:ab212e904ff78ce45351da30ce7c691f2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the value of <code>bit</code> to true, and returns true if bit was already set <a href="#ab212e904ff78ce45351da30ce7c691f2"></a><br/></td></tr>
<tr class="separator:ab212e904ff78ce45351da30ce7c691f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac066e860c21effe4c1968fc27e88303e"><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_util_1_1_bit_vector.html#ac066e860c21effe4c1968fc27e88303e">Clear</a> (int bit)</td></tr>
<tr class="memdesc:ac066e860c21effe4c1968fc27e88303e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the value of <code>bit</code> to zero. <a href="#ac066e860c21effe4c1968fc27e88303e"></a><br/></td></tr>
<tr class="separator:ac066e860c21effe4c1968fc27e88303e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f9f8be4f1fe9677e1a2ef09f8d9955a"><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_util_1_1_bit_vector.html#a4f9f8be4f1fe9677e1a2ef09f8d9955a">Get</a> (int bit)</td></tr>
<tr class="memdesc:a4f9f8be4f1fe9677e1a2ef09f8d9955a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns <code>true</code> if <code>bit</code> is one and <code>false</code> if it is zero. <a href="#a4f9f8be4f1fe9677e1a2ef09f8d9955a"></a><br/></td></tr>
<tr class="separator:a4f9f8be4f1fe9677e1a2ef09f8d9955a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb2115e306a192ddbecba493afba9bef"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_util_1_1_bit_vector.html#afb2115e306a192ddbecba493afba9bef">Size</a> ()</td></tr>
<tr class="memdesc:afb2115e306a192ddbecba493afba9bef"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of bits in this vector. This is also one greater than the number of the largest valid bit number. <a href="#afb2115e306a192ddbecba493afba9bef"></a><br/></td></tr>
<tr class="separator:afb2115e306a192ddbecba493afba9bef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71f4dab63bbad5fa643990525c347ce9"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_util_1_1_bit_vector.html#a71f4dab63bbad5fa643990525c347ce9">Count</a> ()</td></tr>
<tr class="memdesc:a71f4dab63bbad5fa643990525c347ce9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the total number of one bits in this vector. This is efficiently computed and cached, so that, if the vector is not changed, no recomputation is done for repeated calls. <a href="#a71f4dab63bbad5fa643990525c347ce9"></a><br/></td></tr>
<tr class="separator:a71f4dab63bbad5fa643990525c347ce9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a85419024ee1b63b04c7187d0f01cb1d1"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_util_1_1_bit_vector.html#a85419024ee1b63b04c7187d0f01cb1d1">GetRecomputedCount</a> ()</td></tr>
<tr class="memdesc:a85419024ee1b63b04c7187d0f01cb1d1"><td class="mdescLeft">&#160;</td><td class="mdescRight">For testing <a href="#a85419024ee1b63b04c7187d0f01cb1d1"></a><br/></td></tr>
<tr class="separator:a85419024ee1b63b04c7187d0f01cb1d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9595c45f2f8038225cd472dda027a95c"><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_util_1_1_bit_vector.html#a9595c45f2f8038225cd472dda027a95c">Write</a> (<a class="el" href="_syns2_index_8cs.html#aada057080323f6e867d8f9c189276716">Directory</a> d, System.String name)</td></tr>
<tr class="memdesc:a9595c45f2f8038225cd472dda027a95c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes this vector to the file <code>name</code> in Directory <code>d</code>, in a format that can be read by the constructor BitVector(Directory, String). <a href="#a9595c45f2f8038225cd472dda027a95c"></a><br/></td></tr>
<tr class="separator:a9595c45f2f8038225cd472dda027a95c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afdcbc057149773bdb0e06c1305c6ef96"><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_util_1_1_bit_vector.html#afdcbc057149773bdb0e06c1305c6ef96">BitVector</a> (<a class="el" href="_syns2_index_8cs.html#aada057080323f6e867d8f9c189276716">Directory</a> d, System.String name)</td></tr>
<tr class="memdesc:afdcbc057149773bdb0e06c1305c6ef96"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a bit vector from the file <code>name</code> in Directory <code>d</code>, as written by the <a class="el" href="class_lucene_1_1_net_1_1_util_1_1_bit_vector.html#a9595c45f2f8038225cd472dda027a95c" title="Writes this vector to the file name in Directory d, in a format that can be read by the constructor B...">Write</a> method. <a href="#afdcbc057149773bdb0e06c1305c6ef96"></a><br/></td></tr>
<tr class="separator:afdcbc057149773bdb0e06c1305c6ef96"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa94eb78df478944c1b62a1cc5f5fbd54"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_lucene_1_1_net_1_1_util_1_1_bit_vector.html">BitVector</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_util_1_1_bit_vector.html#aa94eb78df478944c1b62a1cc5f5fbd54">Subset</a> (int start, int end)</td></tr>
<tr class="memdesc:aa94eb78df478944c1b62a1cc5f5fbd54"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve a subset of this <a class="el" href="class_lucene_1_1_net_1_1_util_1_1_bit_vector.html" title="Optimized implementation of a vector of bits. This is more-or-less like java.util.BitSet, but also includes the following: a count() method, which efficiently computes the number of one bits; optimized read from and write to disk; inlinable get() method; store and load, as bit set or d-gaps, depending on sparseness; ">BitVector</a>. <a href="#aa94eb78df478944c1b62a1cc5f5fbd54"></a><br/></td></tr>
<tr class="separator:aa94eb78df478944c1b62a1cc5f5fbd54"><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>Optimized implementation of a vector of bits. This is more-or-less like java.util.BitSet, but also includes the following: </p>
<ul>
<li>
a count() method, which efficiently computes the number of one bits; </li>
<li>
optimized read from and write to disk; </li>
<li>
inlinable get() method; </li>
<li>
store and load, as bit set or d-gaps, depending on sparseness; </li>
</ul>
<p>Definition at line <a class="el" href="_bit_vector_8cs_source.html#l00036">36</a> of file <a class="el" href="_bit_vector_8cs_source.html">BitVector.cs</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a0ebf42699795da69472b255e21b9e9fb"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Lucene.Net.Util.BitVector.BitVector </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>n</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Constructs a vector capable of holding <code>n</code> bits. </p>
<p>Definition at line <a class="el" href="_bit_vector_8cs_source.html#l00044">44</a> of file <a class="el" href="_bit_vector_8cs_source.html">BitVector.cs</a>.</p>
</div>
</div>
<a class="anchor" id="afdcbc057149773bdb0e06c1305c6ef96"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Lucene.Net.Util.BitVector.BitVector </td>
<td>(</td>
<td class="paramtype"><a class="el" href="_syns2_index_8cs.html#aada057080323f6e867d8f9c189276716">Directory</a>&#160;</td>
<td class="paramname"><em>d</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">System.String&#160;</td>
<td class="paramname"><em>name</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Constructs a bit vector from the file <code>name</code> in Directory <code>d</code>, as written by the <a class="el" href="class_lucene_1_1_net_1_1_util_1_1_bit_vector.html#a9595c45f2f8038225cd472dda027a95c" title="Writes this vector to the file name in Directory d, in a format that can be read by the constructor B...">Write</a> method. </p>
<p>Definition at line <a class="el" href="_bit_vector_8cs_source.html#l00241">241</a> of file <a class="el" href="_bit_vector_8cs_source.html">BitVector.cs</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="ac066e860c21effe4c1968fc27e88303e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Lucene.Net.Util.BitVector.Clear </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>bit</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets the value of <code>bit</code> to zero. </p>
<p>Definition at line <a class="el" href="_bit_vector_8cs_source.html#l00102">102</a> of file <a class="el" href="_bit_vector_8cs_source.html">BitVector.cs</a>.</p>
</div>
</div>
<a class="anchor" id="abd024c86a9b82d44874c550ed0424e77"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">System.Object Lucene.Net.Util.BitVector.Clone </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="_bit_vector_8cs_source.html#l00058">58</a> of file <a class="el" href="_bit_vector_8cs_source.html">BitVector.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a71f4dab63bbad5fa643990525c347ce9"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int Lucene.Net.Util.BitVector.Count </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the total number of one bits in this vector. This is efficiently computed and cached, so that, if the vector is not changed, no recomputation is done for repeated calls. </p>
<p>Definition at line <a class="el" href="_bit_vector_8cs_source.html#l00133">133</a> of file <a class="el" href="_bit_vector_8cs_source.html">BitVector.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a4f9f8be4f1fe9677e1a2ef09f8d9955a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Lucene.Net.Util.BitVector.Get </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>bit</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns <code>true</code> if <code>bit</code> is one and <code>false</code> if it is zero. </p>
<p>Definition at line <a class="el" href="_bit_vector_8cs_source.html#l00115">115</a> of file <a class="el" href="_bit_vector_8cs_source.html">BitVector.cs</a>.</p>
</div>
</div>
<a class="anchor" id="ab212e904ff78ce45351da30ce7c691f2"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Lucene.Net.Util.BitVector.GetAndSet </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>bit</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets the value of <code>bit</code> to true, and returns true if bit was already set </p>
<p>Definition at line <a class="el" href="_bit_vector_8cs_source.html#l00081">81</a> of file <a class="el" href="_bit_vector_8cs_source.html">BitVector.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a85419024ee1b63b04c7187d0f01cb1d1"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int Lucene.Net.Util.BitVector.GetRecomputedCount </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>For testing </p>
<p>Definition at line <a class="el" href="_bit_vector_8cs_source.html#l00151">151</a> of file <a class="el" href="_bit_vector_8cs_source.html">BitVector.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a3d5832568c1ef85e9fdc22efc1534d82"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Lucene.Net.Util.BitVector.Set </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>bit</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets the value of <code>bit</code> to one. </p>
<p>Definition at line <a class="el" href="_bit_vector_8cs_source.html#l00068">68</a> of file <a class="el" href="_bit_vector_8cs_source.html">BitVector.cs</a>.</p>
</div>
</div>
<a class="anchor" id="afb2115e306a192ddbecba493afba9bef"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int Lucene.Net.Util.BitVector.Size </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the number of bits in this vector. This is also one greater than the number of the largest valid bit number. </p>
<p>Definition at line <a class="el" href="_bit_vector_8cs_source.html#l00124">124</a> of file <a class="el" href="_bit_vector_8cs_source.html">BitVector.cs</a>.</p>
</div>
</div>
<a class="anchor" id="aa94eb78df478944c1b62a1cc5f5fbd54"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="class_lucene_1_1_net_1_1_util_1_1_bit_vector.html">BitVector</a> Lucene.Net.Util.BitVector.Subset </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>start</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>end</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Retrieve a subset of this <a class="el" href="class_lucene_1_1_net_1_1_util_1_1_bit_vector.html" title="Optimized implementation of a vector of bits. This is more-or-less like java.util.BitSet, but also includes the following: a count() method, which efficiently computes the number of one bits; optimized read from and write to disk; inlinable get() method; store and load, as bit set or d-gaps, depending on sparseness; ">BitVector</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">start</td><td>starting index, inclusive </td></tr>
<tr><td class="paramname">end</td><td>ending index, exclusive </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>subset </dd></dl>
<p>Definition at line <a class="el" href="_bit_vector_8cs_source.html#l00295">295</a> of file <a class="el" href="_bit_vector_8cs_source.html">BitVector.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a9595c45f2f8038225cd472dda027a95c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Lucene.Net.Util.BitVector.Write </td>
<td>(</td>
<td class="paramtype"><a class="el" href="_syns2_index_8cs.html#aada057080323f6e867d8f9c189276716">Directory</a>&#160;</td>
<td class="paramname"><em>d</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">System.String&#160;</td>
<td class="paramname"><em>name</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Writes this vector to the file <code>name</code> in Directory <code>d</code>, in a format that can be read by the constructor BitVector(Directory, String). </p>
<p>Definition at line <a class="el" href="_bit_vector_8cs_source.html#l00167">167</a> of file <a class="el" href="_bit_vector_8cs_source.html">BitVector.cs</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>core/Util/<a class="el" href="_bit_vector_8cs_source.html">BitVector.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>