VoltDB¶
Bases: Spout
__init__(output, state, **kwargs)
¶
Initialize the VoltDB class.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
output |
BatchOutput
|
An instance of the BatchOutput class for saving the data. |
required |
state |
State
|
An instance of the State class for maintaining the state. |
required |
**kwargs |
Additional keyword arguments. |
{}
|
Using geniusrise to invoke via command line¶
genius VoltDB rise \
batch \
--output_s3_bucket my_bucket \
--output_s3_folder s3/folder \
none \
fetch \
--args host=localhost port=21212 username=myuser password=<PASSWORD>
Using geniusrise to invoke via YAML file¶
fetch(host, port, username, password)
¶
📖 Fetch data from a VoltDB database and save it in batch.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
host |
str
|
The VoltDB host. |
required |
port |
int
|
The VoltDB port. |
required |
username |
str
|
The VoltDB username. |
required |
password |
str
|
The VoltDB password. |
required |
Raises:
Type | Description |
---|---|
Exception
|
If unable to connect to the VoltDB server or execute the query. |