1Fsdb::IO::Replayable(3)User Contributed Perl DocumentatioFnsdb::IO::Replayable(3)
2
3
4
6 Fsdb::IO::Replayable - support for buffering fsdb rows
7
9 Buffer and replaying fsdb rows
10
12 new
13 $replayable = new Fsdb::IO::Replayable(-writer_args => \@writer_args,
14 -reader_args => \@reader_args);
15 $writer = $replayable->writer;
16 $replayable->close; # warning: close replayable, NOT writer
17 $reader = $replayable->reader;
18
19 Creates a buffer for Fsdb::IO objects that will run with bounded memory
20 usage. After you close it, you can replay it one or more times by
21 opening readers.
22
23 Arguments to the new method:
24
25 -writer_args => @arref Gives arguments to pass to Fsdb::IO::Writer to
26 make a new stream.
27 -reader_args => @arref Gives arguments to pass to Fsdb::IO::Reader to
28 make a new stream.
29 -tmpdir => $dirname Specifies wher tmpfiles go.
30
31 writer
32 $writer = $replayable->writer;
33
34 Return a fsdb writer object. If the file was written already, resets
35 it for rewriting.
36
37 close
38 $replayable->close;
39
40 Close the replayable for writing. Closes the writer object, if any.
41 Allows reading to start.
42
43 reader
44 $reader = $replayable->reader;
45
46 Return a fsdb reader object to re-read the file. Can be called once.
47
48 The caller is expected to close and discard any readers.
49
50
51
52perl v5.38.0 2023-07-20 Fsdb::IO::Replayable(3)