Data::Stream::Bulk::Array - L wrapper for simple arrays.


Data-Stream-Bulk documentation  | view source Contained in the Data-Stream-Bulk distribution.

Index


NAME

Top

Data::Stream::Bulk::Array - Data::Stream::Bulk wrapper for simple arrays.

SYNOPSIS

Top

    return Data::Stream::Bulk::Array->new(
        array => \@results,
    );

DESCRIPTION

Top

This implementation of the Data::Stream::Bulk api wraps an array.

The use case is to keep the consumer of the data set implementation agnostic so that it can deal with larger data sets if they are encountered, but still retain most of the simplicity when the current data set easily fits in memory.

ATTRIBUTES

Top

array

The array reference to wrap.

METHODS

Top

next

Returns the array reference on the first invocation, and nothing thereafter.

is_done

Returns true if next has been called.

list_cat

Squishes adjacent arrays into a new array.

filter $filter

Immediately applies $filter to the internal array and returns $self.

loaded

Returns true

AUTHOR

Top

Yuval Kogman <nothingmuch@woobling.org>

COPYRIGHT AND LICENSE

Top


Data-Stream-Bulk documentation  | view source Contained in the Data-Stream-Bulk distribution.