DBIx-BatchChunker

 view release on metacpan or  search on metacpan

lib/DBIx/BatchChunker/LoopState.pm  view on Meta::CPAN

    default  => sub { time() },
);

# Backwards-compatibility
*timer = \&chunk_timer;

sub _mark_chunk_timer { shift->chunk_timer(time); }

#pod =head2 start
#pod
#pod The real start ID that the loop is currently on.  May continue to exist within iterations
#pod if chunk resizing is trying to find a valid range.  Otherwise, this value will become
#pod undef when a chunk is finally processed.
#pod
#pod =cut

has start => (
    is       => 'rw',
    isa      => Maybe[UnsignedInt],
    lazy     => 1,
    default  => sub { shift->batch_chunker->min_id },

lib/DBIx/BatchChunker/LoopState.pm  view on Meta::CPAN

Epoch timer for the start of the entire operation.

=head2 chunk_timer

Epoch timer for the start of each chunk.

=for Pod::Coverage timer

=head2 start

The real start ID that the loop is currently on.  May continue to exist within iterations
if chunk resizing is trying to find a valid range.  Otherwise, this value will become
undef when a chunk is finally processed.

=head2 end

The real end ID that the loop is currently looking at.  This is always redefined at the
beginning of the loop.

=head2 prev_end



( run in 1.893 second using v1.01-cache-2.11-cpan-71847e10f99 )