all_frontend_sparse_on_disk_functions.c File Reference


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

Function Documentation

Datum closeServerConn ( PG_FUNCTION_ARGS   ) 

Sends a close msg to the server.

Returns:
success

Datum function_noop ( PG_FUNCTION_ARGS   ) 

Implements noop.

Parameters:
[in] integer to simulate single entity read but without more operation
Returns:
the input parameter

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.

Parameters:
[in] integer to simulate single entity read but without more operation
Returns:
ack

Datum getEntityLabel ( PG_FUNCTION_ARGS   ) 

Retrieves class of the entity.

Parameters:
[in] id entity id
Returns:
class of the entity

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.

Parameters:
[in] eps eps value of the entity
[in] w feature vector of the entity in binary format
Returns:
class of the entity

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.

Parameters:
[in] eps eps value of the entity
[in] w feature vector of the entity in binary format
Returns:
class of the entity

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.

Parameters:
[in] eps eps value of the entity
[in] w feature vector of the entity in text format
Returns:
class of the entity

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.

Parameters:
[in] w feature vector of the entity in binary format
Returns:
class of the entity

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.

Parameters:
[in] w feature vector of the entity in binary format
Returns:
class of the entity

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.

Parameters:
[in] w feature vector of the entity in text format
Returns:
class of the entity

Datum getServerId ( PG_FUNCTION_ARGS   ) 

Retrieves server id from the server.

Returns:
id of the server if server is up, -1 otherwise

Datum getView ( PG_FUNCTION_ARGS   ) 

Retrieves number of entities that belong to the class 1.

Returns:
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.

Parameters:
[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


Variable Documentation

char buf_in_functions[BUFFER_SIZE]

PG_MODULE_MAGIC

int view_id = 0


Generated on Wed Dec 15 10:46:16 2010 for Hazy_System by  doxygen 1.4.7