⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cwp87.htm

📁 Perst开源实时数据库
💻 HTM
字号:
<!-- saved from url=(0007)http:// -->
<HTML><HEAD><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><TITLE>Perst.GenericIndex</TITLE><LINK REL=STYLESHEET HREF="../CommentReport.css" TYPE="text/css"></HEAD><BODY topmargin=0 rightmargin=0 leftmargin=0 style="background-image: url(../titletile.jpg); background-repeat:repeat-x; background-position: 0 0;" ><DIV CLASS="PageHeading">Perst.GenericIndex Interface</DIV><DIV CLASS="Description"> Interface of object index.
Index is used to provide fast access to the object by key. 
Object in the index are stored ordered by key value. 
It is possible to select object using exact value of the key or 
select set of objects which key belongs to the specified interval 
(each boundary can be specified or unspecified and can be inclusive or exclusive)
Key should be of scalar, String, DateTime or peristent object type.
<P></DIV><IMG src="../GradLeft.jpg" width=7 height=378 alt="" border="0" style="position:absolute; left:10; top:18;z-Index:2"><IMG src="../GradTop.jpg" width=352 height=7 alt="" border="0" align="top" style="position:absolute; left:10; top:18; z-index:1"><DIV CLASS="Remarks"><SPAN CLASS="RemarkHdrX">Access: </SPAN>Public</DIV><TABLE CLASS="InfoTable" cellpadding=0 cellspacing=0><TR height=20><TD width=20>&nbsp;</TD><TD valign=top align=left width=9 bgcolor="#cccc66"><IMG SRC="../graycorner.jpg" align=top></TD><TD CLASS="TableLightLabel" WIDTH=206>Members</TD><TD CLASS="TableLightLabel" >Description</TD><TD width=20>&nbsp;</TD></TR><TR height=20><TD width=20>&nbsp;</TD><TD CLASS="TableLightDesc">&nbsp;</TD><TD CLASS="TableLightDesc"><A HREF="CWP88.HTM" TARGET="CNTFRAME">Get</A></TD><TD CLASS="TableLightDesc"> Get object by key (exact match)     
<P></TD><TD width=20>&nbsp;</TD></TR><TR height=20><TD width=20>&nbsp;</TD><TD CLASS="TableLightDesc">&nbsp;</TD><TD CLASS="TableLightDesc"><A HREF="CWP89.HTM" TARGET="CNTFRAME">Get</A></TD><TD CLASS="TableLightDesc"> Get objects which key value belongs to the specified range.
Either from boundary, either till boundary either both of them can be <code>null</code>.
In last case the method returns all objects from the index.
<P></TD><TD width=20>&nbsp;</TD></TR><TR height=20><TD width=20>&nbsp;</TD><TD CLASS="TableLightDesc">&nbsp;</TD><TD CLASS="TableLightDesc"><A HREF="CWP90.HTM" TARGET="CNTFRAME">GetPrefix</A></TD><TD CLASS="TableLightDesc"> Get objects which key starts with specifid prefix.
<P></TD><TD width=20>&nbsp;</TD></TR><TR height=20><TD width=20>&nbsp;</TD><TD CLASS="TableLightDesc">&nbsp;</TD><TD CLASS="TableLightDesc"><A HREF="CWP91.HTM" TARGET="CNTFRAME">PrefixSearch</A></TD><TD CLASS="TableLightDesc"> 
Locate all objects which key is prefix of specified word.
<P></TD><TD width=20>&nbsp;</TD></TR><TR height=20><TD width=20>&nbsp;</TD><TD CLASS="TableLightDesc">&nbsp;</TD><TD CLASS="TableLightDesc"><A HREF="CWP92.HTM" TARGET="CNTFRAME">Size</A></TD><TD CLASS="TableLightDesc"> Get number of objects in the index
<P></TD><TD width=20>&nbsp;</TD></TR><TR height=20><TD width=20>&nbsp;</TD><TD CLASS="TableLightDesc">&nbsp;</TD><TD CLASS="TableLightDesc"><A HREF="CWP93.HTM" TARGET="CNTFRAME">Clear</A></TD><TD CLASS="TableLightDesc"> Remove all objects from the index
<P></TD><TD width=20>&nbsp;</TD></TR><TR height=20><TD width=20>&nbsp;</TD><TD CLASS="TableLightDesc">&nbsp;</TD><TD CLASS="TableLightDesc"><A HREF="CWP94.HTM" TARGET="CNTFRAME">ToArray</A></TD><TD CLASS="TableLightDesc"> Get all objects in the index as array orderd by index key
<P></TD><TD width=20>&nbsp;</TD></TR><TR height=20><TD width=20>&nbsp;</TD><TD CLASS="TableLightDesc">&nbsp;</TD><TD CLASS="TableLightDesc"><A HREF="CWP95.HTM" TARGET="CNTFRAME">ToArray</A></TD><TD CLASS="TableLightDesc"> Get all objects in the index as array of specified type ordered by index key
<P></TD><TD width=20>&nbsp;</TD></TR><TR height=20><TD width=20>&nbsp;</TD><TD CLASS="TableLightDesc">&nbsp;</TD><TD CLASS="TableLightDesc"><A HREF="CWP96.HTM" TARGET="CNTFRAME">GetEnumerator</A></TD><TD CLASS="TableLightDesc">
Get enumerator for traversing objects in ascent order belonging to the specified range. 
You should not update/remove or add members to the index during iteration
<P></TD><TD width=20>&nbsp;</TD></TR><TR height=20><TD width=20>&nbsp;</TD><TD CLASS="TableLightDesc">&nbsp;</TD><TD CLASS="TableLightDesc"><A HREF="CWP97.HTM" TARGET="CNTFRAME">GetEnumerator</A></TD><TD CLASS="TableLightDesc">
Get enumerator for traversing objects in the index with key belonging to the specified range. 
You should not update/remove or add members to the index during iteration
<P></TD><TD width=20>&nbsp;</TD></TR><TR height=20><TD width=20>&nbsp;</TD><TD CLASS="TableLightDesc">&nbsp;</TD><TD CLASS="TableLightDesc"><A HREF="CWP99.HTM" TARGET="CNTFRAME">GetEnumerator</A></TD><TD CLASS="TableLightDesc">
Get enumerator for traversing objects in ascent order which key starts with specified prefix. 
You should not update/remove or add members to the index during iteration
<P></TD><TD width=20>&nbsp;</TD></TR><TR height=20><TD width=20>&nbsp;</TD><TD CLASS="TableLightDesc">&nbsp;</TD><TD CLASS="TableLightDesc"><A HREF="CWP100.HTM" TARGET="CNTFRAME">Range</A></TD><TD CLASS="TableLightDesc">
Get enumerable collection of objects in the index with key belonging to the specified range. 
You should not update/remove or add members to the index during iteration
<P></TD><TD width=20>&nbsp;</TD></TR><TR height=20><TD width=20>&nbsp;</TD><TD CLASS="TableLightDesc">&nbsp;</TD><TD CLASS="TableLightDesc"><A HREF="CWP101.HTM" TARGET="CNTFRAME">Range</A></TD><TD CLASS="TableLightDesc">
Get enumerable ascent ordered collection of objects in the index with key belonging to the specified range. 
You should not update/remove or add members to the index during iteration
<P></TD><TD width=20>&nbsp;</TD></TR><TR height=20><TD width=20>&nbsp;</TD><TD CLASS="TableLightDesc">&nbsp;</TD><TD CLASS="TableLightDesc"><A HREF="CWP102.HTM" TARGET="CNTFRAME">Reverse</A></TD><TD CLASS="TableLightDesc">
Get enumerable collection of objects in descending order
<P></TD><TD width=20>&nbsp;</TD></TR><TR height=20><TD width=20>&nbsp;</TD><TD CLASS="TableLightDesc">&nbsp;</TD><TD CLASS="TableLightDesc"><A HREF="CWP103.HTM" TARGET="CNTFRAME">StartsWith</A></TD><TD CLASS="TableLightDesc">
Get enumerable ascent ordered collection of objects in the index which key starts with specified prefix. 
You should not update/remove or add members to the index during iteration
<P></TD><TD width=20>&nbsp;</TD></TR><TR height=20><TD width=20>&nbsp;</TD><TD CLASS="TableLightDesc">&nbsp;</TD><TD CLASS="TableLightDesc"><A HREF="CWP104.HTM" TARGET="CNTFRAME">GetDictionaryEnumerator</A></TD><TD CLASS="TableLightDesc">
Get enumerator for traversing all entries in the index 
You should not update/remove or add members to the index during iteration
<P></TD><TD width=20>&nbsp;</TD></TR><TR height=20><TD width=20>&nbsp;</TD><TD CLASS="TableLightDesc">&nbsp;</TD><TD CLASS="TableLightDesc"><A HREF="CWP105.HTM" TARGET="CNTFRAME">GetDictionaryEnumerator</A></TD><TD CLASS="TableLightDesc">
Get enumerator for traversing entries in the index with key belonging to the specified range. 
You should not update/remove or add members to the index during iteration
<P></TD><TD width=20>&nbsp;</TD></TR><TR height=20><TD width=20>&nbsp;</TD><TD CLASS="TableLightDesc">&nbsp;</TD><TD CLASS="TableLightDesc"><A HREF="CWP106.HTM" TARGET="CNTFRAME">KeyType</A></TD><TD CLASS="TableLightDesc">
Get type of index key
<P></TD><TD width=20>&nbsp;</TD></TR><TR height=20><TD width=20>&nbsp;</TD><TD CLASS="TableLightDesc">&nbsp;</TD><TD CLASS="TableLightDesc"><A HREF="CWP108.HTM" TARGET="CNTFRAME">this</A></TD><TD CLASS="TableLightDesc"> Access element by key
<P></TD><TD width=20>&nbsp;</TD></TR><TR height=20><TD width=20>&nbsp;</TD><TD CLASS="TableLightDesc">&nbsp;</TD><TD CLASS="TableLightDesc"><A HREF="CWP108.HTM" TARGET="CNTFRAME">this</A></TD><TD CLASS="TableLightDesc"> Get objects which key value belongs to the specified range.
<P></TD><TD width=20>&nbsp;</TD></TR><TR height=20><TD width=20>&nbsp;</TD><TD CLASS="TableLightDesc">&nbsp;</TD><TD CLASS="TableLightDesc"><A HREF="CWP111.HTM" TARGET="CNTFRAME">Get</A></TD><TD CLASS="TableLightDesc"> Get object by key (exact match)     
<P></TD><TD width=20>&nbsp;</TD></TR><TR height=20><TD width=20>&nbsp;</TD><TD CLASS="TableLightDesc">&nbsp;</TD><TD CLASS="TableLightDesc"><A HREF="CWP112.HTM" TARGET="CNTFRAME">Get</A></TD><TD CLASS="TableLightDesc"> Get objects which key value belongs to the specified inclusive range.
Either from boundary, either till boundary either both of them can be <code>null</code>.
In last case the method returns all objects from the index.
<P></TD><TD width=20>&nbsp;</TD></TR><TR height=20><TD width=20>&nbsp;</TD><TD CLASS="TableLightDesc">&nbsp;</TD><TD CLASS="TableLightDesc"><A HREF="CWP113.HTM" TARGET="CNTFRAME">GetEnumerator</A></TD><TD CLASS="TableLightDesc">
Get enumerator for traversing objects in the index with key belonging to the specified range. 
You should not update/remove or add members to the index during iteration
<P></TD><TD width=20>&nbsp;</TD></TR><TR height=20><TD width=20>&nbsp;</TD><TD CLASS="TableLightDesc">&nbsp;</TD><TD CLASS="TableLightDesc"><A HREF="CWP114.HTM" TARGET="CNTFRAME">GetEnumerator</A></TD><TD CLASS="TableLightDesc">
Get enumerator for traversing objects in ascent order belonging to the specified range. 
You should not update/remove or add members to the index during iteration
<P></TD><TD width=20>&nbsp;</TD></TR><TR height=20><TD width=20>&nbsp;</TD><TD CLASS="TableLightDesc">&nbsp;</TD><TD CLASS="TableLightDesc"><A HREF="CWP115.HTM" TARGET="CNTFRAME">Range</A></TD><TD CLASS="TableLightDesc">
Get enumerable collection of objects in the index with key belonging to the specified range. 
You should not update/remove or add members to the index during iteration
<P></TD><TD width=20>&nbsp;</TD></TR><TR height=20><TD width=20>&nbsp;</TD><TD CLASS="TableLightDesc">&nbsp;</TD><TD CLASS="TableLightDesc"><A HREF="CWP116.HTM" TARGET="CNTFRAME">Range</A></TD><TD CLASS="TableLightDesc">
Get enumerable ascent ordered collection of objects in the index with key belonging to the specified range. 
You should not update/remove or add members to the index during iteration
<P></TD><TD width=20>&nbsp;</TD></TR><TR height=20><TD width=20>&nbsp;</TD><TD CLASS="TableLightDesc">&nbsp;</TD><TD CLASS="TableLightDesc"><A HREF="CWP117.HTM" TARGET="CNTFRAME">GetAt</A></TD><TD CLASS="TableLightDesc">&nbsp;</TD><TD width=20>&nbsp;</TD></TR><TR height=20><TD width=20>&nbsp;</TD><TD CLASS="TableLightDesc">&nbsp;</TD><TD CLASS="TableLightDesc"><A HREF="CWP118.HTM" TARGET="CNTFRAME">GetDictionaryEnumerator</A></TD><TD CLASS="TableLightDesc">
Get dictionary enumerator of objects in the index starting with specified position.
This methid is efficient only for random access indices
You should not update/remove or add members to the index during iteration
<P></TD><TD width=20>&nbsp;</TD></TR></TABLE></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -