PGROUTING
3.2
|
Go to the source code of this file.
Functions | |
bool | column_found (int colNumber) |
Function will check whether the colNumber represent any specific column or NULL (SPI_ERROR_NOATTRIBUTE). More... | |
void | pgr_check_any_integer_type (Column_info_t info) |
The function check whether column type is ANY-INTEGER or not. More... | |
void | pgr_check_any_integerarray_type (Column_info_t info) |
The function check whether column type is ANY-INTEGER-ARRAY or not. More... | |
void | pgr_check_any_numerical_type (Column_info_t info) |
The function check whether column type is ANY-NUMERICAL. More... | |
void | pgr_check_boolean_type (Column_info_t info) |
void | pgr_check_char_type (Column_info_t info) |
The function check whether column type is CHAR or not. More... | |
void | pgr_check_text_type (Column_info_t info) |
The function check whether column type is TEXT or not. More... | |
void | pgr_fetch_column_info (Column_info_t info[], int info_size) |
Function tells expected type of each column and then check the correspondence type of each column. More... | |
int64_t | pgr_SPI_getBigInt (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info) |
Function returns the value of specified column in integer type. More... | |
int64_t * | pgr_SPI_getBigIntArr (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info, uint64_t *the_size) |
Function returns the values of specified columns in array. More... | |
char | pgr_SPI_getChar (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info, bool strict, char default_value) |
Function return the value of specified column in char type. More... | |
double | pgr_SPI_getFloat8 (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info) |
Function returns the value of specified column in double type. More... | |
char * | pgr_SPI_getText (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info) |
Function returns the string representation of the value of specified column. More... | |
bool column_found | ( | int | colNumber | ) |
Function will check whether the colNumber represent any specific column or NULL (SPI_ERROR_NOATTRIBUTE).
[in] | colNumber | Column number (count starts at 1). |
Definition at line 36 of file get_check_data.c.
Referenced by fetch_basic_edge(), fetch_column_info(), fetch_costFlow_edge(), fetch_edge(), fetch_edge_with_xy(), fetch_pd_orders(), fetch_point(), fetch_restriction(), fetch_vehicles(), and pgr_fetch_row().
void pgr_check_any_integer_type | ( | Column_info_t | info | ) |
The function check whether column type is ANY-INTEGER or not.
Where ANY-INTEGER is SQL type: SMALLINT, INTEGER, BIGINT
[in] | info | contain column information. |
ERROR | Unexpected Column type. Expected column type is ANY-INTEGER. |
Definition at line 127 of file get_check_data.c.
References Column_info_t::name, and Column_info_t::type.
Referenced by pgr_fetch_column_info().
void pgr_check_any_integerarray_type | ( | Column_info_t | info | ) |
The function check whether column type is ANY-INTEGER-ARRAY or not.
Where ANY-INTEGER-ARRAY is SQL type: SMALLINT[], INTEGER[], BIGINT[]
[in] | info | contain column information. |
ERROR | Unexpected Column type. Expected column type is ANY-INTEGER-ARRAY. |
Definition at line 138 of file get_check_data.c.
References Column_info_t::name, and Column_info_t::type.
Referenced by pgr_fetch_column_info().
void pgr_check_any_numerical_type | ( | Column_info_t | info | ) |
The function check whether column type is ANY-NUMERICAL.
Where ANY-NUMERICAL is SQL type: SMALLINT, INTEGER, BIGINT, REAL, FLOAT
[in] | info | contain column information. |
ERROR | Unexpected Column type. Expected column type is ANY-NUMERICAL. |
Definition at line 148 of file get_check_data.c.
References Column_info_t::name, and Column_info_t::type.
Referenced by pgr_fetch_column_info().
void pgr_check_boolean_type | ( | Column_info_t | info | ) |
void pgr_check_char_type | ( | Column_info_t | info | ) |
The function check whether column type is CHAR or not.
Where CHAR is SQL type: CHARACTER
[in] | info | contain column information. |
ERROR | Unexpected Column type. Expected column type is CHAR. |
Definition at line 113 of file get_check_data.c.
References Column_info_t::name, and Column_info_t::type.
Referenced by pgr_fetch_column_info().
void pgr_check_text_type | ( | Column_info_t | info | ) |
The function check whether column type is TEXT or not.
Where TEXT is SQL type: TEXT
[in] | info | contain column information. |
ERROR | Unexpected Column type. Expected column type is TEXT. |
Definition at line 120 of file get_check_data.c.
References Column_info_t::name, and Column_info_t::type.
Referenced by pgr_fetch_column_info().
void pgr_fetch_column_info | ( | Column_info_t | info[], |
int | info_size | ||
) |
Function tells expected type of each column and then check the correspondence type of each column.
[in] | info[] | contain one or more column information. |
[in] | info_size | number of columns. |
ERROR | Unknown type of column. |
Definition at line 78 of file get_check_data.c.
References ANY_INTEGER, ANY_INTEGER_ARRAY, ANY_NUMERICAL, CHAR1, fetch_column_info(), pgr_check_any_integer_type(), pgr_check_any_integerarray_type(), pgr_check_any_numerical_type(), pgr_check_char_type(), pgr_check_text_type(), and TEXT.
Referenced by get_combinations_2_columns(), get_edges_5_columns(), get_edges_9_columns(), get_edges_basic(), get_edges_costFlow(), get_edges_flow(), pgr_get_coordinates(), pgr_get_delauny(), pgr_get_matrixRows(), pgr_get_pd_orders_general(), pgr_get_points(), pgr_get_restrictions(), pgr_get_vehicles_general(), and pgr_point_input().
int64_t pgr_SPI_getBigInt | ( | HeapTuple * | tuple, |
TupleDesc * | tupdesc, | ||
Column_info_t | info | ||
) |
Function returns the value of specified column in integer type.
[in] | tuple | input row to be examined. |
[in] | tupdesc | input row description. |
[in] | info | contain column information. |
ERROR | Unexpected Column type. Expected column type is ANY-INTEGER. |
ERROR | When value of column is NULL. |
Definition at line 216 of file get_check_data.c.
References Column_info_t::colNumber, Column_info_t::name, PGR_DBG, and Column_info_t::type.
Referenced by fetch_basic_edge(), fetch_combination(), fetch_costFlow_edge(), fetch_edge(), fetch_edge_with_xy(), fetch_pd_orders(), fetch_point(), fetch_restriction(), fetch_vehicles(), and pgr_fetch_row().
int64_t* pgr_SPI_getBigIntArr | ( | HeapTuple * | tuple, |
TupleDesc * | tupdesc, | ||
Column_info_t | info, | ||
uint64_t * | the_size | ||
) |
Function returns the values of specified columns in array.
[in] | tuple | input row to be examined. |
[in] | tupdesc | input row description. |
[in] | info | contain column information. |
[out] | the_size | number of element in array. |
ERROR | No elements found in ARRAY. |
ERROR | Unexpected Column type. Expected column type is ANY-INTEGER-ARRAY. |
ERROR | NULL value found in Array. |
Definition at line 196 of file get_check_data.c.
References Column_info_t::colNumber, and pgr_get_bigIntArray().
Referenced by fetch_restriction().
char pgr_SPI_getChar | ( | HeapTuple * | tuple, |
TupleDesc * | tupdesc, | ||
Column_info_t | info, | ||
bool | strict, | ||
char | default_value | ||
) |
Function return the value of specified column in char type.
[in] | tuple | input row to be examined. |
[in] | tupdesc | input row description. |
[in] | info | contain column information. |
[in] | strict | boolean value of strict. |
[in] | default_value | returned when column contain NULL value. |
ERROR | Unexpected Column type. Expected column type is CHAR. |
ERROR | When value of column is NULL. |
Definition at line 170 of file get_check_data.c.
References Column_info_t::colNumber, Column_info_t::name, and Column_info_t::type.
Referenced by fetch_point().
double pgr_SPI_getFloat8 | ( | HeapTuple * | tuple, |
TupleDesc * | tupdesc, | ||
Column_info_t | info | ||
) |
Function returns the value of specified column in double type.
[in] | tuple | input row to be examined. |
[in] | tupdesc | input row description. |
[in] | info | contain column information. |
ERROR | Unexpected Column type. Expected column type is ANY-NUMERICAL. |
ERROR | When value of column is NULL. |
Definition at line 246 of file get_check_data.c.
References Column_info_t::colNumber, Column_info_t::name, PGR_DBG, and Column_info_t::type.
Referenced by fetch_basic_edge(), fetch_costFlow_edge(), fetch_edge(), fetch_edge_with_xy(), fetch_pd_orders(), fetch_point(), fetch_restriction(), fetch_vehicles(), and pgr_fetch_row().
char* pgr_SPI_getText | ( | HeapTuple * | tuple, |
TupleDesc * | tupdesc, | ||
Column_info_t | info | ||
) |
Function returns the string representation of the value of specified column.
[in] | tuple | input row to be examined. |
[in] | tupdesc | input row description. |
[in] | info | contain column information. |
Function returns the string representation of the value of specified column.
Definition at line 293 of file get_check_data.c.
References Column_info_t::colNumber.