Data::Stream::Bulk::Filter(3pm) User Contributed Perl Documentation Data::Stream::Bulk::Filter(3pm)NAME
Data::Stream::Bulk::Filter - Streamed filtering (block oriented)
VERSION
version 0.11
SYNOPSIS
use Data::Stream::Bulk::Filter;
Data::Stream::Bulk::Filter->new(
filter => sub { ... },
stream => $stream,
);
DESCRIPTION
This class implements filtering of streams.
ATTRIBUTES
filter
The code reference to apply to each block.
The block is passed to the filter both in $_ and as the first argument.
The return value should be an array reference. If no true value is returned the output stream does not end, but instead an empty block
is substituted (the parent stream controls when the stream is depleted).
stream
The stream to be filtered
METHODS
is_done
loaded
Delegated to "stream"
next
Calls "next" on "stream" and applies "filter" if a block was returned.
AUTHOR
Yuval Kogman <nothingmuch@woobling.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Yuval Kogman.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-02-14 Data::Stream::Bulk::Filter(3pm)
Check Out this Related Man Page
Data::Stream::Bulk::Util(3pm) User Contributed Perl Documentation Data::Stream::Bulk::Util(3pm)NAME
Data::Stream::Bulk::Util - Utility functions for Data::Stream::Bulk
VERSION
version 0.11
SYNOPSIS
use Data::Stream::Bulk::Util qw(array);
use namespace::clean;
# Wrap a list in L<Data::Stream::Bulk::Array>
return bulk(qw(foo bar gorch baz));
# return an empty resultset
return nil();
DESCRIPTION
This module exports convenience functions for use with Data::Stream::Bulk.
EXPORTS
Sub::Exporter is used to create the "import" routine, and all of its aliasing/currying goodness is of course supported.
nil Creates a new Data::Stream::Bulk::Nil object.
Takes no arguments.
bulk @items
Creates a new Data::Stream::Bulk::Array wrapping @items.
cat @streams
Concatenate several streams together.
Returns "nil" if no arguments are provided.
filter { ... } $stream
Calls "filter" on $stream with the provided filter.
unique $stream
Filter the stream to remove duplicates.
Note that memory use may potentially scale to O(k) where k is the number of distinct items, because this is implemented in terms of a
seen hash.
In the future this will be optimized to be iterative for sorted streams.
References are keyed by their refaddr (see "id" in Hash::Util::FieldHash).
AUTHOR
Yuval Kogman <nothingmuch@woobling.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Yuval Kogman.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-02-14 Data::Stream::Bulk::Util(3pm)
Is there any possibility that a Stream Read and Write queues will interchange messages of any kind. If so what are the different possiblites and under what circumstances ?
Thanks in advance. (4 Replies)
I have a stream of data come to a server and store in a file (datafile). This stream of data contain a lot of information. Data could come in every second or different frequency of times.
I like to retrieve a certain text string as the data come in. All data information will come with the... (1 Reply)
Hi,
I need to filter and store the files ends with log extension in the array and need to write the file names in the array to a file.
I need to use array to derive this solution. Please help me out.
Thanks (2 Replies)
Under smit, one has to manually select each fix with F7. there 9000 fixes left to be marked. How Can I manually install/Mark all of these without SMIT.
---------- Post updated at 02:29 PM ---------- Previous update was at 01:15 PM ----------
From the command line
instfix -T -d... (4 Replies)
Dear All,
Could you help me how to put to the next line if I have pattern below in Perl language.
Data-123 Linux MacOSData-124 windows FreeBSDData-125 OpenBSD NetBSD
I would the output below:
Data-123 Linux MacOS
Data-124 windows FreeBSD
Data-125 OpenBSD NetBSD
... (2 Replies)
I am filtering the value of Server status from a file and am storing it in a temp file which I compare later to exit with appropriate status. I am wondering if I can directly output the value of Server status as an array element and then compare the value of elements to get the right exit status
... (2 Replies)
I'm trying to write a script that can compile my students' homework submissions in bulk. My students' c code is buried in a file path that looks like this:
./Homework\ X/Doe, John/Submission\ Attachments
Where I'm struggling is determining how to navigate to each of the submission attachment... (11 Replies)
Hi All,
i have a log file .i want to cut and filter using some conditions in PHP
condition 1:first i want to filter the datas having "P12345"
condition 2:cut the session ID and time stamp(i.e 77087432)for all user id "P12345"
P123456_77087432:INFO: login
P123456_77087432:INFO:UpdateInfo o... (5 Replies)
Hi All, :D
Actullay I am looking for a smart way :b: to parse files in a directory whose count is around 2000000 :eek: in a single day.
Find is working with me but taking a lot of times :confused:, sometimes even a day which is not helping me.:wall:
So anyone can help me know a smart... (5 Replies)
Hello,
I have a question on how to filter the data on multiple columns. The problem is I have one table with 25 columns, 4500 rows. I need to filter out the data based on some codes like 'XXXX', I have 25 codes to check on that table. My requirement is that which ever row has this code I... (1 Reply)