lib/Jubatus/Clustering/Client.pm

filter: Statementstmt 86.6% 13 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 90.0% 18 / 20 CC 1 SCAR 0.6
CC
1
Cov
87%
BEGIN
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« lib/Jubatus/Classifier/Client.pm ↑ Summary lib/Jubatus/Common/Client.pm »
1 # This file is auto-generated from clustering.idl(0.4.5-350-g9c67807) with jenerator version 0.4.5-532-g61b108e/develop
2 # *** DO NOT EDIT ***
3  
4 package Jubatus::Clustering::Client;
5  
6 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use autodie;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 0 ▶use AnyEvent::MPRPC;
Subroutine BEGIN: called CC=1 SCAR=2.6
11  
12 use parent 'Jubatus::Common::Client';
13 require Jubatus::Clustering::Types;
14  
15 sub push {
16 my ($self, $points) = @_;
17 return $self->_call("push", Jubatus::Common::TBool->new(), [$points],
18 [Jubatus::Common::TList->new(Jubatus::Common::TDatum->new())]);
19 }
20  
21 sub get_revision {
22 my ($self) = @_;
23 return $self->_call("get_revision", Jubatus::Common::TInt->new(0, 4), [], []);
24 }
25  
26 sub get_core_members {
27 my ($self) = @_;
28 return $self->_call("get_core_members", Jubatus::Common::TList->new(
29 Jubatus::Common::TList->new(Jubatus::Common::TUserDef->new(
30 Jubatus::Clustering::WeightedDatum->new()))), [], []);
31 }
32  
33 sub get_k_center {
34 my ($self) = @_;
35 return $self->_call("get_k_center", Jubatus::Common::TList->new(
36 Jubatus::Common::TDatum->new()), [], []);
37 }
38  
39 sub get_nearest_center {
40 my ($self, $point) = @_;
41 return $self->_call("get_nearest_center", Jubatus::Common::TDatum->new(),
42 [$point], [Jubatus::Common::TDatum->new()]);
43 }
44  
45 sub get_nearest_members {
46 my ($self, $point) = @_;
47 return $self->_call("get_nearest_members", Jubatus::Common::TList->new(
48 Jubatus::Common::TUserDef->new(Jubatus::Clustering::WeightedDatum->new(
49 ))), [$point], [Jubatus::Common::TDatum->new()]);
50 }
51  
52 1;
53  
54 1; # Jubatus::Clustering::Client;
55  
« lib/Jubatus/Classifier/Client.pm ↑ Summary lib/Jubatus/Common/Client.pm »