Overview

Namespaces

  • predictionio

Classes

  • BaseClient
  • EngineClient
  • EventClient
  • FileExporter

Traits

  • Exporter

Exceptions

  • PredictionIOAPIError
  • Overview
  • Namespace
  • Class

Class EngineClient

Client for connecting to an Engine Instance

predictionio\BaseClient
Extended by predictionio\EngineClient
Namespace: predictionio
Located at predictionio/EngineClient.php
Methods summary
public
# __construct( string $baseUrl = "http://localhost:8000", float $timeout = 0, float $connectTimeout = 5 )

Parameters

$baseUrl
URL to the Engine Instance. Default is localhost:8000.
$timeout

of the request in seconds. Use 0 to wait indefinitely Default is 0.

$connectTimeout

of seconds to wait while trying to connect to a server. Default is 5.

Overrides

predictionio\BaseClient::__construct()
public array
# sendQuery( array $query )

Send prediction query to an Engine Instance

Send prediction query to an Engine Instance

Parameters

$query
Query

Returns

array
JSON response

Throws

predictionio\PredictionIOAPIError
Request error
Methods inherited from predictionio\BaseClient
getStatus(), sendRequest()
Properties inherited from predictionio\BaseClient
$client
PredictionIO API PHP Client API documentation generated by ApiGen