| 1 | package AtteanX::Plan::LDF::Triple::EnterCache; | ||
| 2 | 9 | ▶ | use v5.14; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 9 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 9 | our $AUTHORITY = 'cpan:KJETILK'; | |
| 6 | 9 | our $VERSION = '0.002'; | |
| 7 | |||
| 8 | 9 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 9 | ▶ | use Class::Method::Modifiers; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 9 | ▶ | use Attean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 9 | ▶ | use Carp; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 9 | ▶ | use namespace::clean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | |||
| 14 | 9 | extends 'AtteanX::Plan::LDF::Triple'; | |
| 15 | |||
| 16 | 0 | ▶ | around 'impl' => sub { |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 17 | 0 | my $orig = shift; | |
| 18 | 0 | my @params = @_; | |
| 19 | 0 | my $self = shift; | |
| 20 | 0 | my $model = shift; | |
| 21 | 0 | $model->publisher->publish('prefetch.triplepattern', $self->tuples_string); | |
| 22 | 0 | return $orig->(@params); | |
| 23 | 9 | }; | |
| 24 | |||
| 25 | 0 | ▶ | around 'plan_as_string' => sub { |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 26 | 0 | my $orig = shift; | |
| 27 | 0 | return $orig->(@_) . ' (publish)'; | |
| 28 | 9 | }; | |
| 29 | |||
| 30 | 9 | 1; | |