Documentation
¶
Index ¶
- Variables
- func IsValidSortDirection(direction SortDirection) bool
- func ToArray(iterator Iterator) (*values.Array, error)
- func ToHashTable(iterator Iterator) (map[uint64]core.Value, error)
- func ToMap(iterator Iterator) (map[string]core.Value, error)
- func ToSlice(iterator Iterator) ([]core.Value, error)
- type ArrayIterator
- type Collection
- type Comparator
- type FilterIterator
- type FilterPredicate
- type GroupIterator
- type GroupKey
- type HTMLNodeIterator
- type Iterable
- type IterableExpression
- type Iterator
- type LimitIterator
- type MapIterator
- type ObjectIterator
- type Reducer
- type Reducible
- type ReducibleExpression
- type SliceIterator
- type SortDirection
- type SortIterator
- type Sorter
- type UniqueIterator
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrExhausted = core.Error(core.ErrInvalidOperation, "iterator has been exhausted")
)
Functions ¶
func IsValidSortDirection ¶
func IsValidSortDirection(direction SortDirection) bool
Types ¶
type ArrayIterator ¶
type ArrayIterator struct {
// contains filtered or unexported fields
}
func NewArrayIterator ¶
func NewArrayIterator(input *values.Array) *ArrayIterator
func (*ArrayIterator) HasNext ¶
func (iterator *ArrayIterator) HasNext() bool
type Collection ¶
type FilterIterator ¶
type FilterIterator struct {
// contains filtered or unexported fields
}
func NewFilterIterator ¶
func NewFilterIterator(src Iterator, predicate FilterPredicate) (*FilterIterator, error)
func (*FilterIterator) HasNext ¶
func (iterator *FilterIterator) HasNext() bool
type GroupIterator ¶
type GroupIterator struct {
// contains filtered or unexported fields
}
func NewGroupIterator ¶
func NewGroupIterator( src Iterator, keys ...GroupKey, ) (*GroupIterator, error)
func (*GroupIterator) HasNext ¶
func (iterator *GroupIterator) HasNext() bool
type HTMLNodeIterator ¶
type HTMLNodeIterator struct {
// contains filtered or unexported fields
}
func NewHTMLNodeIterator ¶
func NewHTMLNodeIterator(input values.HTMLNode) *HTMLNodeIterator
func (*HTMLNodeIterator) HasNext ¶
func (iterator *HTMLNodeIterator) HasNext() bool
type IterableExpression ¶
type LimitIterator ¶
type LimitIterator struct {
// contains filtered or unexported fields
}
func NewLimitIterator ¶
func NewLimitIterator(src Iterator, count, offset int) (*LimitIterator, error)
func (*LimitIterator) HasNext ¶
func (i *LimitIterator) HasNext() bool
type MapIterator ¶
type MapIterator struct {
// contains filtered or unexported fields
}
func NewMapIterator ¶
func NewMapIterator(input map[string]core.Value) *MapIterator
func (*MapIterator) HasNext ¶
func (iterator *MapIterator) HasNext() bool
type ObjectIterator ¶
type ObjectIterator struct {
// contains filtered or unexported fields
}
func NewObjectIterator ¶
func NewObjectIterator(input *values.Object) *ObjectIterator
func (*ObjectIterator) HasNext ¶
func (iterator *ObjectIterator) HasNext() bool
type ReducibleExpression ¶
type SliceIterator ¶
type SliceIterator struct {
// contains filtered or unexported fields
}
func NewSliceIterator ¶
func NewSliceIterator(input []core.Value) *SliceIterator
func (*SliceIterator) HasNext ¶
func (iterator *SliceIterator) HasNext() bool
type SortDirection ¶
type SortDirection int
const ( SortDirectionAsc SortDirection = 1 SortDirectionDesc SortDirection = -1 )
func SortDirectionFromString ¶
func SortDirectionFromString(str string) SortDirection
type SortIterator ¶
type SortIterator struct {
// contains filtered or unexported fields
}
func NewSortIterator ¶
func NewSortIterator( src Iterator, comparators ...*Sorter, ) (*SortIterator, error)
func (*SortIterator) HasNext ¶
func (iterator *SortIterator) HasNext() bool
type Sorter ¶
type Sorter struct {
// contains filtered or unexported fields
}
func NewSorter ¶
func NewSorter(fn Comparator, direction SortDirection) (*Sorter, error)
type UniqueIterator ¶
type UniqueIterator struct {
// contains filtered or unexported fields
}
func NewUniqueIterator ¶
func NewUniqueIterator(src Iterator) (*UniqueIterator, error)
func (*UniqueIterator) HasNext ¶
func (iterator *UniqueIterator) HasNext() bool
Click to show internal directories.
Click to hide internal directories.