line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
# ABSTRACT: encoded a record as /rdb |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
use Moo::Role; |
5
|
1
|
|
|
1
|
|
647
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
7
|
|
6
|
|
|
|
|
|
|
our $VERSION = '1.03'; # TRIAL |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
use namespace::clean; |
9
|
1
|
|
|
1
|
|
501
|
|
|
1
|
|
|
|
|
21
|
|
|
1
|
|
|
|
|
10
|
|
10
|
|
|
|
|
|
|
|
11
|
3
|
|
|
3
|
|
12
|
|
12
|
3
|
|
|
3
|
|
23
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
my $self = shift; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
$self->say( join( "\t", @{ $self->output_fields } ) ); |
20
|
|
|
|
|
|
|
$self->say( join( "\t", @{ $self->output_types }{ @{ $self->output_fields } } ) ); |
21
|
1
|
|
|
1
|
0
|
3
|
} |
22
|
|
|
|
|
|
|
|
23
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
21
|
|
24
|
1
|
|
|
|
|
951
|
|
|
1
|
|
|
|
|
21
|
|
|
1
|
|
|
|
|
22
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
my $self = shift; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
no warnings 'uninitialized'; |
31
|
|
|
|
|
|
|
join( "\t", @{ $_[0] }{ @{ $self->output_fields } } ); |
32
|
|
|
|
|
|
|
} |
33
|
3
|
|
|
3
|
0
|
4
|
|
34
|
|
|
|
|
|
|
with 'Data::Record::Serialize::Role::Encode'; |
35
|
1
|
|
|
1
|
|
392
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
103
|
|
36
|
3
|
|
|
|
|
5
|
1; |
|
3
|
|
|
|
|
29
|
|
|
3
|
|
|
|
|
40
|
|
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
# |
39
|
|
|
|
|
|
|
# This file is part of Data-Record-Serialize |
40
|
|
|
|
|
|
|
# |
41
|
|
|
|
|
|
|
# This software is Copyright (c) 2017 by Smithsonian Astrophysical Observatory. |
42
|
|
|
|
|
|
|
# |
43
|
|
|
|
|
|
|
# This is free software, licensed under: |
44
|
|
|
|
|
|
|
# |
45
|
|
|
|
|
|
|
# The GNU General Public License, Version 3, June 2007 |
46
|
|
|
|
|
|
|
# |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=pod |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=for :stopwords Diab Jerius Smithsonian Astrophysical Observatory |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 NAME |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
Data::Record::Serialize::Encode::rdb - encoded a record as /rdb |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 VERSION |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
version 1.03 |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 SYNOPSIS |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
use Data::Record::Serialize; |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
my $s = Data::Record::Serialize->new( encode => 'rdb', ... ); |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
$s->send( \%record ); |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head1 DESCRIPTION |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
B<Data::Record::Serialize::Encode::rdb> encodes a record as |
72
|
|
|
|
|
|
|
L<RDB|http://compbio.soe.ucsc.edu/rdb>. |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
It performs the L<Data::Record::Serialize::Role::Encode> role. |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=for Pod::Coverage setup |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=for Pod::Coverage encode |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=head1 INTERFACE |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
There are no additional attributes which may be passed to |
83
|
|
|
|
|
|
|
L<Data::Record::Serialize-E<gt>new>|Data::Record::Serialize/new>. |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=head1 SUPPORT |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=head2 Bugs |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
Please report any bugs or feature requests to bug-data-record-serialize@rt.cpan.org or through the web interface at: https://rt.cpan.org/Public/Dist/Display.html?Name=Data-Record-Serialize |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=head2 Source |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
Source is available at |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
https://gitlab.com/djerius/data-record-serialize |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
and may be cloned from |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
https://gitlab.com/djerius/data-record-serialize.git |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=head1 SEE ALSO |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
Please see those modules/websites for more information related to this module. |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
=over 4 |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
=item * |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
L<Data::Record::Serialize|Data::Record::Serialize> |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
=back |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
=head1 AUTHOR |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
Diab Jerius <djerius@cpan.org> |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
This software is Copyright (c) 2017 by Smithsonian Astrophysical Observatory. |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
This is free software, licensed under: |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
The GNU General Public License, Version 3, June 2007 |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
=cut |