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

📄 cwp4195.htm

📁 Perst开源实时数据库
💻 HTM
字号:
<!-- saved from url=(0007)http:// -->
<HTML><HEAD><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><TITLE>Perst.SortedCollection</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.SortedCollection Interface</DIV><DIV CLASS="Description">
Interface of sorted collection.
Sorted collections keeps in members in order specified by comparator.
Members in the collections can be located using key or range of keys.
The SortedCollection is efficient container of objects for in-memory databases.
For databases which size is significatly larger than size of page pool, operation with SortedList
can cause trashing and so very bad performance. Unlike other index structures SortedCollection
doesn't store values of keys and so search in the collection requires fetching of its members.
<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="CWP4196.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="CWP4196.HTM" TARGET="CNTFRAME">this</A></TD><TD CLASS="TableLightDesc"> Access elements by key 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="CWP4199.HTM" TARGET="CNTFRAME">Get</A></TD><TD CLASS="TableLightDesc">
Get member with specified 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="CWP4200.HTM" TARGET="CNTFRAME">Get</A></TD><TD CLASS="TableLightDesc">
Get members 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 collection.
<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="CWP4201.HTM" TARGET="CNTFRAME">Get</A></TD><TD CLASS="TableLightDesc">
Get members 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 collection.
<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="CWP4202.HTM" TARGET="CNTFRAME">Add</A></TD><TD CLASS="TableLightDesc">
Add new member to collection
<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="CWP4203.HTM" TARGET="CNTFRAME">Contains</A></TD><TD CLASS="TableLightDesc">
Check if collections contains specified member
<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="CWP4204.HTM" TARGET="CNTFRAME">Remove</A></TD><TD CLASS="TableLightDesc">
Remove member from collection
<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="CWP4205.HTM" TARGET="CNTFRAME">Size</A></TD><TD CLASS="TableLightDesc">
Get number of objects in the collection
<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="CWP4206.HTM" TARGET="CNTFRAME">Clear</A></TD><TD CLASS="TableLightDesc">
Remove all objects from the collection
<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="CWP4207.HTM" TARGET="CNTFRAME">ToArray</A></TD><TD CLASS="TableLightDesc">
Get all objects in the index as array 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="CWP4208.HTM" TARGET="CNTFRAME">ToArray</A></TD><TD CLASS="TableLightDesc"> Get all objects in the index as array of specified type 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="CWP4209.HTM" TARGET="CNTFRAME">GetEnumerator</A></TD><TD CLASS="TableLightDesc">
Get iterator for traversing collection members  with key belonging 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="CWP4210.HTM" TARGET="CNTFRAME">GetEnumerator</A></TD><TD CLASS="TableLightDesc">
Get iterator for traversing collection members  with key belonging 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="CWP4211.HTM" TARGET="CNTFRAME">Range</A></TD><TD CLASS="TableLightDesc">
Get enumerable set of collection members with key belonging 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="CWP4212.HTM" TARGET="CNTFRAME">Range</A></TD><TD CLASS="TableLightDesc">
Get enumerable set of collection members with key belonging 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="CWP4213.HTM" TARGET="CNTFRAME">GetComparator</A></TD><TD CLASS="TableLightDesc">
Get comparator used in this collection
<P></TD><TD width=20>&nbsp;</TD></TR></TABLE></BODY></HTML>

⌨️ 快捷键说明

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