| class | method | description | Input example | Output example |
| AggregationResult | $object = get($type) | Returns the aggregation result | ||
| Container | create_index($column_name, $index_type) | Creates a specified type of index on the specified Column | ||
| drop_index($colum_name, $index_type) | Removes the specified type of index among indexes on the specified Column | |||
| flush() | Writes the results of earlier updates to a non-volatile storage medium, such as SSD, so as to prevent the data loss even if all cluster nodes stop suddenly | |||
| $flag = put($row) | Newly creates or update a Row | $row = [1, "val"] | ||
| $query = query($query_string) | Creates a query to execute the specified TQL statement | |||
| type | Read-only attribute | |||
| abort() | Rolls back the result of the current transaction and starts a new transaction in the manual commit mode | |||
| commit() | Commits the result of the current transaction and start a new transaction in the manual commit mode | |||
| set_auto_commit($enabled) | Change the setting of the commit mode | |||
| $row = get($key, $for_update) | Returns the content of a Row corresponding to Row key | [1, "val"] | ||
| $flag = remove($key) | Deletes a Row corresponding to Row key | |||
| close() | ||||
| GSException | is_timeout | Read-only attribute | ||
| $size = get_error_stack_size() | Returns the stack size of last error information related to specified resource | |||
| $code = get_error_code($stack_index) | Returns the error code of last error related to specified resource | |||
| $message = get_message($stack_index) | Returns the message of last error related to specified resource | |||
| $location = get_location($stack_index) | Returns the error location of the internal module to the message of last error related to specified resource | |||
| Query | $row_set = fetch($for_update=0) | Executes a specified query with the specified option and returns a set of Rows as an execution result | ||
| $row_set = get_row_set() | Returns RowSet as the latest result | |||
| set_fetch_options($limit) | Sets an fetch option for a result acquisition | |||
| close() | ||||
| RowSet | remove() | Deletes the Row at the current cursor position | ||
| $object = next() | Moves the cursor to the next element in a object set and returns the object at the moved position | [1, "val"] | ||
| type | Read-only attribute | |||
| size | Read-only attribute | |||
| $flag = has_next() | Returns whether a Row set has at least one Row ahead of the current cursor position | |||
| update($row) | Updates the values except a Row key of the Row at the cursor position, using the specified Row object | $row = [1, "val"] | ||
| close() | ||||
| Store | $container = put_container($container_info, $modifiable=0) | Newly creates or update a Container with the specified Container properties | ||
| $container = get_container($name) | Get a Container instance whose rows can be processed using a Row object | |||
| drop_container($name) | Delete a Container with the specified name | |||
| $container_info = get_container_info($name) | Get information related to a Container with the specified name | |||
| close($allRelated=0) | ||||
| StoreFactory | $store_factory = get_instance() | Returns a default StoreFactory instance | ||
| $store = get_store($props) | Returns
a Store with the specified properties In that, props is: - host: A destination host name - port: A destination port number - cluster_name: A cluster name - username: A user name - password: A password for user authentication - notification_member: A list of address and port pairs in cluster - notification_provider: A URL of address provider Note: If this host is multicast address, host/port means notificationAddress/notificationPort for C Client. |
$conf
= {"host" => $ARGV[0], "port" => int($ARGV[1]), "cluster_name" => $ARGV[2], "username" => $ARGV[3], "password" => $ARGV[4]} |
||
| $version = get_version() | Returns the current version of client | |||
| ContainerInfo | $container_info = new($name, $column_info_list, $type, $row_key, $expiration) | Constructor | $column_info_list = [["ts", $griddb_perl::GS_TYPE_TIMESTAMP], ["val", $griddb_perl::GS_TYPE_LONG]] |
|
| name | attribute | |||
| column_info_list | attribute | [["ts",
$griddb_perl::GS_TYPE_TIMESTAMP], ["val", $griddb_perl::GS_TYPE_LONG]] |
[["ts",
$griddb_perl::GS_TYPE_TIMESTAMP], ["val", $griddb_perl::GS_TYPE_LONG]] |
|
| type | attribute | |||
| row_key | attribute | |||
| expiration | attribute | |||
| ExpirationInfo | $expiration_info = new($time, $unit, $division_count) | Constructor | ||
| time | attribute | |||
| unit | attribute | |||
| division_count | attribute | |||
| TimestampUtils | $timestamp_millis = get_time_millis($timestamp) | Caluculate integer-type timestamp in millisecond from second | ||