line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Neo4j::Bolt::Node; |
2
|
|
|
|
|
|
|
# ABSTRACT: Representation of Neo4j Node |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
$Neo4j::Bolt::Node::VERSION = '0.40'; |
5
|
|
|
|
|
|
|
|
6
|
6
|
|
|
6
|
|
43
|
use strict; |
|
6
|
|
|
|
|
14
|
|
|
6
|
|
|
|
|
262
|
|
7
|
6
|
|
|
6
|
|
35
|
use warnings; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
747
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub as_simple { |
10
|
2
|
|
|
2
|
1
|
132
|
my ($self) = @_; |
11
|
|
|
|
|
|
|
|
12
|
2
|
100
|
|
|
|
10
|
my %simple = defined $self->{properties} ? %{$self->{properties}} : (); |
|
1
|
|
|
|
|
4
|
|
13
|
2
|
|
|
|
|
5
|
$simple{_node} = $self->{id}; |
14
|
2
|
100
|
|
|
|
8
|
$simple{_labels} = defined $self->{labels} ? $self->{labels} : []; |
15
|
2
|
|
|
|
|
11
|
return \%simple; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
1; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
__END__ |