Functions | |
int | write_func (message_data msg, int msg_size, int *label) |
Writes the given msg to the server and retrieves integer from the received msg. | |
PG_FUNCTION_INFO_V1 (getEntityLabel) | |
Datum | getEntityLabel (PG_FUNCTION_ARGS) |
Retrieves class of the entity. | |
PG_FUNCTION_INFO_V1 (getView) | |
Datum | getView (PG_FUNCTION_ARGS) |
Retrieves number of entities that belong to the class 1. | |
PG_FUNCTION_INFO_V1 (getServerId) | |
Datum | getServerId (PG_FUNCTION_ARGS) |
Retrieves server id from the server. | |
PG_FUNCTION_INFO_V1 (closeServerConn) | |
Datum | closeServerConn (PG_FUNCTION_ARGS) |
Sends a close msg to the server. | |
PG_FUNCTION_INFO_V1 (getEntityLabelWithSQL_Text) | |
Datum | getEntityLabelWithSQL_Text (PG_FUNCTION_ARGS) |
Sends eps and feature vector of the entity as a text to the server and retrieves the class of the entity. | |
PG_FUNCTION_INFO_V1 (getEntityLabelWithSQL_Sparse) | |
Datum | getEntityLabelWithSQL_Sparse (PG_FUNCTION_ARGS) |
Sends eps and feature vector of the entity as a binary data to the server and retrieves the class of the entity This method is used for sparse entities. | |
PG_FUNCTION_INFO_V1 (getEntityLabelWithSQL_Dense) | |
Datum | getEntityLabelWithSQL_Dense (PG_FUNCTION_ARGS) |
Sends eps and feature vector of the entity as a binary data to the server and retrieves the class of the entity This method is used for dense entities. | |
PG_FUNCTION_INFO_V1 (getEntityLabelWithSQLNOEPS_Text) | |
Datum | getEntityLabelWithSQLNOEPS_Text (PG_FUNCTION_ARGS) |
Sends feature vector of the entity as a text to the server and retrieves the class of the entity. | |
PG_FUNCTION_INFO_V1 (getEntityLabelWithSQLNOEPS_Dense) | |
Datum | getEntityLabelWithSQLNOEPS_Dense (PG_FUNCTION_ARGS) |
Sends feature vector of the entity as a binary data to the server and retrieves the class of the entity This method is used for dense entities. | |
PG_FUNCTION_INFO_V1 (getEntityLabelWithSQLNOEPS_Sparse) | |
Datum | getEntityLabelWithSQLNOEPS_Sparse (PG_FUNCTION_ARGS) |
Sends feature vector of the entity as a binary data to the server and retrieves the class of the entity This method is used for sparse entities. | |
PG_FUNCTION_INFO_V1 (function_noop) | |
Datum | function_noop (PG_FUNCTION_ARGS) |
Implements noop. | |
PG_FUNCTION_INFO_V1 (function_noop_withserver) | |
Datum | function_noop_withserver (PG_FUNCTION_ARGS) |
Implements noop with server connection Writes the given input to the server and in server, noop occurs and then ack is sent back to here. | |
Variables | |
PG_MODULE_MAGIC | |
char | buf_in_functions [BUFFER_SIZE] |
int | view_id = 0 |
Datum closeServerConn | ( | PG_FUNCTION_ARGS | ) |
Sends a close msg to the server.
Datum function_noop | ( | PG_FUNCTION_ARGS | ) |
Implements noop.
[in] | integer | to simulate single entity read but without more operation |
Datum function_noop_withserver | ( | PG_FUNCTION_ARGS | ) |
Implements noop with server connection Writes the given input to the server and in server, noop occurs and then ack is sent back to here.
[in] | integer | to simulate single entity read but without more operation |
Datum getEntityLabel | ( | PG_FUNCTION_ARGS | ) |
Retrieves class of the entity.
[in] | id | entity id |
Datum getEntityLabelWithSQL_Dense | ( | PG_FUNCTION_ARGS | ) |
Sends eps and feature vector of the entity as a binary data to the server and retrieves the class of the entity This method is used for dense entities.
[in] | eps | eps value of the entity |
[in] | w | feature vector of the entity in binary format |
Datum getEntityLabelWithSQL_Sparse | ( | PG_FUNCTION_ARGS | ) |
Sends eps and feature vector of the entity as a binary data to the server and retrieves the class of the entity This method is used for sparse entities.
[in] | eps | eps value of the entity |
[in] | w | feature vector of the entity in binary format |
Datum getEntityLabelWithSQL_Text | ( | PG_FUNCTION_ARGS | ) |
Sends eps and feature vector of the entity as a text to the server and retrieves the class of the entity.
[in] | eps | eps value of the entity |
[in] | w | feature vector of the entity in text format |
Datum getEntityLabelWithSQLNOEPS_Dense | ( | PG_FUNCTION_ARGS | ) |
Sends feature vector of the entity as a binary data to the server and retrieves the class of the entity This method is used for dense entities.
[in] | w | feature vector of the entity in binary format |
Datum getEntityLabelWithSQLNOEPS_Sparse | ( | PG_FUNCTION_ARGS | ) |
Sends feature vector of the entity as a binary data to the server and retrieves the class of the entity This method is used for sparse entities.
[in] | w | feature vector of the entity in binary format |
Datum getEntityLabelWithSQLNOEPS_Text | ( | PG_FUNCTION_ARGS | ) |
Sends feature vector of the entity as a text to the server and retrieves the class of the entity.
[in] | w | feature vector of the entity in text format |
Datum getServerId | ( | PG_FUNCTION_ARGS | ) |
Retrieves server id from the server.
Datum getView | ( | PG_FUNCTION_ARGS | ) |
Retrieves number of entities that belong to the class 1.
PG_FUNCTION_INFO_V1 | ( | function_noop_withserver | ) |
PG_FUNCTION_INFO_V1 | ( | function_noop | ) |
PG_FUNCTION_INFO_V1 | ( | getEntityLabelWithSQLNOEPS_Sparse | ) |
PG_FUNCTION_INFO_V1 | ( | getEntityLabelWithSQLNOEPS_Dense | ) |
PG_FUNCTION_INFO_V1 | ( | getEntityLabelWithSQLNOEPS_Text | ) |
PG_FUNCTION_INFO_V1 | ( | getEntityLabelWithSQL_Dense | ) |
PG_FUNCTION_INFO_V1 | ( | getEntityLabelWithSQL_Sparse | ) |
PG_FUNCTION_INFO_V1 | ( | getEntityLabelWithSQL_Text | ) |
PG_FUNCTION_INFO_V1 | ( | closeServerConn | ) |
PG_FUNCTION_INFO_V1 | ( | getServerId | ) |
PG_FUNCTION_INFO_V1 | ( | getView | ) |
PG_FUNCTION_INFO_V1 | ( | getEntityLabel | ) |
int write_func | ( | message_data | msg, | |
int | msg_size, | |||
int * | label | |||
) |
Writes the given msg to the server and retrieves integer from the received msg.
[in] | msg | msg to be written to the server |
[in] | msg_size | size of the msg |
[out] | label | integer parsed from the server's incoming msg |
char buf_in_functions[BUFFER_SIZE] |
int view_id = 0 |