Method Create
Create(String, Sort)
Creates an AbstractAllGroupHeadsCollector instance based on the supplied arguments. This factory method decides with implementation is best suited.
Delegates to Create(String, Sort, Int32) with an initialSize of 128.
Declaration
public static AbstractAllGroupHeadsCollector Create(string groupField, Sort sortWithinGroup)
Parameters
Type | Name | Description |
---|---|---|
System.String | groupField | The field to group by |
Sort | sortWithinGroup | The sort within each group |
Returns
Type | Description |
---|---|
AbstractAllGroupHeadsCollector | an AbstractAllGroupHeadsCollector instance based on the supplied arguments |
Create(String, Sort, Int32)
Creates an AbstractAllGroupHeadsCollector instance based on the supplied arguments. This factory method decides with implementation is best suited.
Declaration
public static AbstractAllGroupHeadsCollector Create(string groupField, Sort sortWithinGroup, int initialSize)
Parameters
Type | Name | Description |
---|---|---|
System.String | groupField | The field to group by |
Sort | sortWithinGroup | The sort within each group |
System.Int32 | initialSize | The initial allocation size of the internal int set and group list which should roughly match the total number of expected unique groups. Be aware that the heap usage is 4 bytes * initialSize. |
Returns
Type | Description |
---|---|
AbstractAllGroupHeadsCollector | an AbstractAllGroupHeadsCollector instance based on the supplied arguments |