Filename | /usr/share/koha/lib/Koha/QueryParser/Driver/PQF/query_plan/modifier.pm |
Statements | Executed 10 statements in 177µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 18µs | 173µs | BEGIN@2 | Koha::QueryParser::Driver::PQF::query_plan::modifier::
1 | 1 | 1 | 12µs | 24µs | BEGIN@5 | Koha::QueryParser::Driver::PQF::query_plan::modifier::
1 | 1 | 1 | 11µs | 14µs | BEGIN@4 | Koha::QueryParser::Driver::PQF::query_plan::modifier::
0 | 0 | 0 | 0s | 0s | target_syntax | Koha::QueryParser::Driver::PQF::query_plan::modifier::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package Koha::QueryParser::Driver::PQF::query_plan::modifier; | ||||
2 | 3 | 36µs | 2 | 329µs | # spent 173µs (18+156) within Koha::QueryParser::Driver::PQF::query_plan::modifier::BEGIN@2 which was called:
# once (18µs+156µs) by Koha::QueryParser::Driver::PQF::BEGIN@12 at line 2 # spent 173µs making 1 call to Koha::QueryParser::Driver::PQF::query_plan::modifier::BEGIN@2
# spent 156µs making 1 call to base::import |
3 | |||||
4 | 3 | 29µs | 2 | 18µs | # spent 14µs (11+3) within Koha::QueryParser::Driver::PQF::query_plan::modifier::BEGIN@4 which was called:
# once (11µs+3µs) by Koha::QueryParser::Driver::PQF::BEGIN@12 at line 4 # spent 14µs making 1 call to Koha::QueryParser::Driver::PQF::query_plan::modifier::BEGIN@4
# spent 3µs making 1 call to strict::import |
5 | 3 | 110µs | 2 | 37µs | # spent 24µs (12+13) within Koha::QueryParser::Driver::PQF::query_plan::modifier::BEGIN@5 which was called:
# once (12µs+13µs) by Koha::QueryParser::Driver::PQF::BEGIN@12 at line 5 # spent 24µs making 1 call to Koha::QueryParser::Driver::PQF::query_plan::modifier::BEGIN@5
# spent 13µs making 1 call to warnings::import |
6 | |||||
7 | =head1 NAME | ||||
8 | |||||
- - | |||||
23 | sub target_syntax { | ||||
24 | my ($self, $server, $query_plan) = @_; | ||||
25 | my $pqf = ''; | ||||
26 | my @fields; | ||||
27 | |||||
28 | my $attributes = $query_plan->QueryParser->bib1_mapping_by_name('modifier', $self->name, $server); | ||||
29 | $pqf = ($attributes->{'op'} ? $attributes->{'op'} . ' ' : '') . ($self->negate ? '@not @attr 1=_ALLRECORDS @attr 2=103 "" ' : '') . $attributes->{'attr_string'}; | ||||
30 | return $pqf; | ||||
31 | } | ||||
32 | |||||
33 | 1 | 2µs | 1; |