SparkseePython  6.0.2
Public Member Functions | List of all members
sparksee.Query Class Reference

Query class. More...

Public Member Functions

def set_stream (self, stream, handler)
 Sets a query stream handler. More...
 
def set_dynamic (self, name, value)
 Sets the value for a dynamic paramater. More...
 
def execute (self, stmt, reiterable)
 Executes the given statement. More...
 
def close (self)
 Closes the Query instance. More...
 
def is_closed (self)
 Gets if the Query instance has been closed or not. More...
 

Detailed Description

Query class.

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

Member Function Documentation

def sparksee.Query.close (   self)

Closes the Query instance.

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

def 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.
def 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.
def sparksee.Query.set_dynamic (   self,
  name,
  value 
)

Sets the value for a dynamic paramater.

Parameters
name[in] Parameter name
value[in] Parameter value
def sparksee.Query.set_stream (   self,
  stream,
  handler 
)

Sets a query stream handler.

Query streams handlers are created and destroyed by the caller.

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