line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package AnyEvent::Groonga::Result; |
2
|
6
|
|
|
6
|
|
689
|
use strict; |
|
6
|
|
|
|
|
13
|
|
|
6
|
|
|
|
|
261
|
|
3
|
6
|
|
|
6
|
|
36
|
use warnings; |
|
6
|
|
|
|
|
13
|
|
|
6
|
|
|
|
|
229
|
|
4
|
6
|
|
|
6
|
|
32
|
use base qw( Class::Accessor::Fast ); |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
7673
|
|
5
|
6
|
|
|
6
|
|
288225
|
use AnyEvent::Groonga::Result::Select; |
|
6
|
|
|
|
|
23
|
|
|
6
|
|
|
|
|
106
|
|
6
|
6
|
|
|
6
|
|
12089
|
use Data::Dumper; |
|
6
|
|
|
|
|
83176
|
|
|
6
|
|
|
|
|
571
|
|
7
|
6
|
|
|
6
|
|
89
|
use Encode; |
|
6
|
|
|
|
|
13
|
|
|
6
|
|
|
|
|
1388
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
__PACKAGE__->mk_accessors($_) for qw( data posted_command ); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub new { |
12
|
0
|
|
|
0
|
1
|
|
my $class = shift; |
13
|
0
|
|
|
|
|
|
my $self = $class->SUPER::new( {@_} ); |
14
|
0
|
0
|
0
|
|
|
|
if ( $self->posted_command and ( $self->posted_command eq 'select' ) ) { |
15
|
0
|
|
|
|
|
|
return AnyEvent::Groonga::Result::Select->new( data => $self->data ); |
16
|
|
|
|
|
|
|
} |
17
|
0
|
|
|
|
|
|
return $self; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub dump { |
21
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
22
|
|
|
|
|
|
|
{ |
23
|
6
|
|
|
6
|
|
35
|
no warnings 'redefine'; |
|
6
|
|
|
|
|
12
|
|
|
6
|
|
|
|
|
1723
|
|
|
0
|
|
|
|
|
|
|
24
|
0
|
|
|
0
|
|
|
local *Data::Dumper::qquote = sub { return shift; }; |
|
0
|
|
|
|
|
|
|
25
|
0
|
|
|
|
|
|
local $Data::Dumper::Useperl = 1; |
26
|
|
|
|
|
|
|
|
27
|
0
|
|
|
|
|
|
return encode( "utf8", decode( "utf8", Dumper( $self->data ) ) ); |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub status { |
32
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
33
|
0
|
|
|
|
|
|
my $status = $self->data->[0]->[0]; |
34
|
0
|
0
|
|
|
|
|
return $status ? 0 : 1; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub start_time { |
38
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
39
|
0
|
|
|
|
|
|
return $self->data->[0]->[1]; |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
sub elapsed { |
43
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
44
|
0
|
|
|
|
|
|
return $self->data->[0]->[2]; |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
sub body { |
48
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
49
|
0
|
|
|
|
|
|
return $self->data->[1]; |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
1; |
53
|
|
|
|
|
|
|
__END__ |