进行集合分块切割或者合并等操作
BucketOperators
01 Syntax
Microsoft.VisualBasic.BucketOperators
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| Split | 1 | Data partitioning function. |
| SplitIterator | 1 | Performance the partitioning operation on the input sequence. |
| Join | 3 | X, .... (这个函数是一个安全的函数,当collection为空值的时候回忽略掉collection, 只返回包含有一个obj元素的列表) |
| Split | 1 | |
| SplitIterator | 1 | |
| Join | 1 |
03 Members
Split``1(
IEnumerable(Of ``0), Int32)Data partitioning function.
Remarks
(将目标集合之中的数据按照partitionSize参数分配到子集合之中, 这个函数之中不能够使用并行化Linq拓展,以保证元素之间的相互原有的顺序, 每一个子集合之中的元素数量为partitionSize)
Type Parameters
| Name | Description |
|---|---|
T |
Parameters
| Name | Type | Description |
|---|---|---|
source | IEnumerable(Of ``0) | - |
partitionSize | Int32 | 每一个子集合之中的元素的数目 |
SplitIterator``1(
IEnumerable(Of ``0), Int32)Performance the partitioning operation on the input sequence.
Remarks
(请注意,这个函数只适用于数量较少的序列。对所输入的序列进行分区操作,partitionSize函数参数是每一个分区里面的元素的数量)
Type Parameters
| Name | Description |
|---|---|
T |
Parameters
| Name | Type | Description |
|---|---|---|
source | IEnumerable(Of ``0) | - |
partitionSize | Int32 | The partition size should be less than the array upbound size |
Join``1(
IEnumerable(Of ``0), IEnumerable(Of ``0))Merge two type specific collection.
Remarks
(函数会忽略掉空的集合,函数会构建一个新的集合,原有的集合不受影响)
Type Parameters
| Name | Description |
|---|---|
T |
Parameters
| Name | Type | Description |
|---|---|---|
source | IEnumerable(Of ``0) | - |
target | IEnumerable(Of ``0) | - |
Join``1(
IEnumerable(Of ``0), ``0)Source list join a new data element.
Type Parameters
| Name | Description |
|---|---|
T |
Parameters
| Name | Type | Description |
|---|---|---|
source | IEnumerable(Of ``0) | - |
data | ``0 | - |
Join``1(
``0, IEnumerable(Of ``0))X, ....
(这个函数是一个安全的函数,当collection为空值的时候回忽略掉collection, 只返回包含有一个obj元素的列表)
Type Parameters
| Name | Description |
|---|---|
T |
Parameters
| Name | Type | Description |
|---|---|---|
obj | ``0 | - |
collection | IEnumerable(Of ``0) | - |
Split(
IEnumerable(Of T), Int32)SplitIterator(
IEnumerable(Of T), Int32)Join(
IEnumerable(Of T), IEnumerable(Of T))