The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

DDC::Client::Distributed - DDC Query utilities: client for distributed server

SYNOPSIS

 ##========================================================================
 ## PRELIMINARIES

 use DDC::Client;
 use DDC::Client::Distributed;

 ##========================================================================
 ## Constructors etc

 $dc = $CLASS_OR_OBJ->new(%args);

 ##========================================================================
 ## Querying

 $buf  = $dc->queryRaw($query_string);
 $hits = $dc->query($query_string);

 ## ... or any DDC::Client method ...

DESCRIPTION

Globals

Variable: @ISA

DDC::Client::Distributed inherits from DDC::Client7.

Constructors etc

new
 $dc = $CLASS_OR_OBJ->new(%args);
%args:
   (
    start=>$hit_start_index,     ##-- default=0,
    limit=>$hit_limit_index,     ##-- default=10,
    timeout=>$hit_timeout_index, ##-- default=60
    connect=>\%connectArgs,      ##-- see DDC::Client->new(), IO::Socket::INET->new()
   )

Querying

query
 $buf = $dc->queryRaw($query_string);

Send a query string to the selected server and returns the raw result buffer.

query
 $hits = $dc->query($query_string);

Send a query string to the selected server and parses the result into a list of hits.

AUTHOR

Bryan Jurish <moocow@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2006-2016 by Bryan Jurish

This package is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.14.2 or, at your option, any later version of Perl 5 you may have available.