File Coverage

blib/lib/WARC/Index/File/CDX/Builder.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package WARC::Index::File::CDX::Builder; # -*- CPerl -*-
2              
3 1     1   67553 use strict;
  1         12  
  1         29  
4 1     1   6 use warnings;
  1         2  
  1         84  
5              
6             require WARC::Index::Builder;
7             our @ISA = qw(WARC::Index::Builder);
8              
9             require WARC; *WARC::Index::File::CDX::Builder::VERSION = \$WARC::VERSION;
10              
11             =head1 NAME
12              
13             WARC::Index::File::CDX::Builder - build CDX WARC indexes
14              
15             =head1 SYNOPSIS
16              
17             use WARC::Index;
18              
19             build WARC::Index::File::CDX into => $cdx_file, from => [@files];
20              
21             $builder = build WARC::Index::File::CDX into => $cdx_file;
22             $builder->add($record);
23              
24             =head1 DESCRIPTION
25              
26             The C class provides the implementation
27             for building CDX indexes.
28              
29             =head2 Options for C method when building CDX indexes
30              
31             =over
32              
33             =item C
34              
35             Name of CDX file to write.
36              
37             =item C
38              
39             Array reference of CDX field letters to use, in order. See
40             L for details about supported fields.
41              
42             Default: [qw/N b a m s k r M S V g u/]
43              
44             =back
45              
46             =cut
47              
48             1;
49             __END__