SparkseePython3 6.1.0
sparksee.Query Class Reference

Query class. More...

Public Member Functions

 set_stream (self, stream, handler)
 Sets a query stream handler Query streams handlers are created and destroyed by the caller.
 set_dynamic (self, name, value)
 Sets the value for a dynamic paramater.
 execute (self, stmt, reiterable)
 Executes the given statement.
 close (self)
 Closes the Query instance.
 is_closed (self)
 Gets if the Query instance has been closed or not.

Detailed Description

Query class.

Author
Sparsity Technologies http://www.sparsity-technologies.com

Member Function Documentation

◆ close()

sparksee.Query.close ( self)

Closes the Query instance.

It must be called to ensure the integrity of all data.

◆ execute()

sparksee.Query.execute ( self,
stmt,
reiterable )

Executes the given statement.

Parameters
stmt[in] Query statement.
reiterable[in] Whether we want the resultset to be reiterable or not
Returns
A ResultSet instance with the contents of the result of the query.

◆ is_closed()

sparksee.Query.is_closed ( self)

Gets if the Query instance has been closed or not.

See also
close()
Returns
TRUE if the Query instance has been closed, FALSE otherwise.

◆ set_dynamic()

sparksee.Query.set_dynamic ( self,
name,
value )

Sets the value for a dynamic paramater.

Parameters
name[in] Parameter name
value[in] Parameter value

◆ set_stream()

sparksee.Query.set_stream ( self,
stream,
handler )

Sets a query stream handler Query streams handlers are created and destroyed by the caller.

DeprecatedQueryStreams should be handled by a QueryStreamManager setup at database level instead.

Parameters
stream[in] The stream name
handler[in] Query stream handler
Returns
The previous handler, or NULL if it does not exists