Documentation
¶
Overview ¶
package organizer tries to introduce a 'generic' method that will allow to reorder any kind of elements that are returning back from a multiple parallel workers. A system of this sort should be able to rebuild order without keepint too many objects in memory and able to work with millions of elements.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Ordered ¶
type Ordered interface {
// Index returns the position of an object in an order.
// It is assumed that indices in the original collection do
// start from 0 and then follow without gaps and duplications.
Index() int
// Unpack takes an object of the same type as the type of the content of the
// ordered object and fills it with the content of the Ordered object.
Unpack(content interface{}) error
}
Ordered is an object that can provide its index number (its position in an order) and unpacking function that allows to unload its content.
Click to show internal directories.
Click to hide internal directories.