A builder for fluent configuration of graph options;

See Also:

Methods

Graph\Options

build

( )

Constructs a graph options object that can be used to construct a cluster with graph support.

Returns:
Type Details
Graph\Options
See Also:
Graph\Options\Builder

withGraphLanguage

( string $language )

Dse\Set the graph language. Default: “gremlin-groovy”

Parameters:
Name Type Details
$language string

Dse\Graph language

Returns:
Type Details
Options\Builder

self

Graph\Options\Builder

withGraphSource

( string $source )

Dse\Set the graph source. This should use the default: “g” unless running analytics (OLAP) query then it should use “a”.

Parameters:
Name Type Details
$source string

Dse\Graph source

Returns:
Type Details
Options\Builder

self

Graph\Options\Builder

withGraphName

( string $name )

Dse\Set the graph name. This is required unless a per query graph name is used.

Parameters:
Name Type Details
$name string

Dse\Graph name

Returns:
Type Details
Options\Builder

self

Graph\Options\Builder

withReadConsistency

( int $consistency )

Dse\Set the read consistency of graph queries. Default: Dse::CONSISTENCY_ONE

Parameters:
Name Type Details
$consistency int

Read consistency

Returns:
Type Details
Options\Builder

self

Graph\Options\Builder

withWriteConsistency

( int $consistency )

Dse\Set the write consistency of graph queries. Default: Dse::CONSISTENCY_QUORUM

Parameters:
Name Type Details
$consistency int

Write consistency

Returns:
Type Details
Options\Builder

self

Graph\Options\Builder

withRequestTimeout

( double $request_timeout )

Dse\Set the request time of graph queries in seconds. Default: 0 (no timeout)

Parameters:
Name Type Details
$request_timeout double

Request timeout in seconds

Returns:
Type Details
Options\Builder

self