PostgreSQL Source Code
git master
|
#include "postgres.h"
#include <limits.h>
#include "_int.h"
#include "catalog/pg_type.h"
#include "common/int.h"
#include "lib/qunique.h"
Go to the source code of this file.
Functions | |
bool | inner_int_contains (ArrayType *a, ArrayType *b) |
bool | inner_int_overlap (ArrayType *a, ArrayType *b) |
ArrayType * | inner_int_union (ArrayType *a, ArrayType *b) |
ArrayType * | inner_int_inter (ArrayType *a, ArrayType *b) |
void | rt__int_size (ArrayType *a, float *size) |
static int | isort_cmp (const void *a, const void *b, void *arg) |
bool | isort (int32 *a, int len) |
ArrayType * | new_intArrayType (int num) |
ArrayType * | resize_intArrayType (ArrayType *a, int num) |
ArrayType * | copy_intArrayType (ArrayType *a) |
int | internal_size (int *a, int len) |
ArrayType * | _int_unique (ArrayType *r) |
void | gensign (BITVECP sign, int *a, int len, int siglen) |
int32 | intarray_match_first (ArrayType *a, int32 elem) |
ArrayType * | intarray_add_elem (ArrayType *a, int32 elem) |
ArrayType * | intarray_concat_arrays (ArrayType *a, ArrayType *b) |
ArrayType * | int_to_intset (int32 elem) |
int | compASC (const void *a, const void *b) |
int | compDESC (const void *a, const void *b) |
Definition at line 311 of file _int_tool.c.
References ARRNELEMS, ARRPTR, isort_cmp(), qunique_arg(), and resize_intArrayType().
Referenced by g_int_union(), inner_int_union(), intset_subtract(), intset_union_elem(), and uniq().
int compASC | ( | const void * | a, |
const void * | b | ||
) |
int compDESC | ( | const void * | a, |
const void * | b | ||
) |
Definition at line 404 of file _int_tool.c.
References a, b, and pg_cmp_s32().
Definition at line 281 of file _int_tool.c.
References a, ARRNELEMS, ARRPTR, and new_intArrayType().
Referenced by g_int_picksplit(), and inner_int_union().
void gensign | ( | BITVECP | sign, |
int * | a, | ||
int | len, | ||
int | siglen | ||
) |
Definition at line 323 of file _int_tool.c.
Definition at line 15 of file _int_tool.c.
References a, ARRNELEMS, ARRPTR, b, i, and j.
Referenced by _int_contains(), and g_int_consistent().
Definition at line 136 of file _int_tool.c.
References a, ARRISEMPTY, ARRNELEMS, ARRPTR, b, i, j, Min, new_intArrayType(), pfree(), and resize_intArrayType().
Referenced by _int_inter(), and g_int_picksplit().
Definition at line 50 of file _int_tool.c.
References a, ARRNELEMS, ARRPTR, b, i, and j.
Referenced by _int_overlap(), and g_int_consistent().
Definition at line 79 of file _int_tool.c.
References _int_unique(), a, ARRISEMPTY, ARRNELEMS, ARRPTR, b, CHECKARRVALID, copy_intArrayType(), i, j, new_intArrayType(), and resize_intArrayType().
Referenced by _int_union(), g_int_penalty(), and g_int_picksplit().
Definition at line 386 of file _int_tool.c.
References ARRPTR, and new_intArrayType().
Referenced by intset().
Definition at line 352 of file _int_tool.c.
References a, ARRNELEMS, ARRPTR, CHECKARRVALID, and new_intArrayType().
Referenced by intarray_push_elem(), and intset_union_elem().
Definition at line 369 of file _int_tool.c.
References a, ARRNELEMS, ARRPTR, b, CHECKARRVALID, and new_intArrayType().
Referenced by intarray_push_array().
Definition at line 336 of file _int_tool.c.
References a, ARRNELEMS, ARRPTR, CHECKARRVALID, and i.
Referenced by idx().
int internal_size | ( | int * | a, |
int | len | ||
) |
Definition at line 293 of file _int_tool.c.
References a, i, len, and size.
Referenced by g_int_compress(), and g_int_decompress().
Definition at line 212 of file _int_tool.c.
References a, isort_cmp(), len, and qsort_arg().
|
static |
ArrayType* new_intArrayType | ( | int | num | ) |
Definition at line 222 of file _int_tool.c.
References ARR_DIMS, ARR_ELEMTYPE, ARR_LBOUND, ARR_NDIM, ARR_OVERHEAD_NONULLS, Assert, construct_empty_array(), ArrayType::dataoffset, palloc0(), and SET_VARSIZE.
Referenced by copy_intArrayType(), g_int_decompress(), g_int_union(), inner_int_inter(), inner_int_union(), int_to_intset(), intarray_add_elem(), intarray_concat_arrays(), intset_subtract(), and subarray().
Definition at line 250 of file _int_tool.c.
References a, ARR_DATA_OFFSET, ARR_DIMS, ARR_NDIM, ARRNELEMS, Assert, construct_empty_array(), i, repalloc(), and SET_VARSIZE.
Referenced by _int_unique(), g_int_compress(), inner_int_inter(), inner_int_union(), intarray_del_elem(), and intset_subtract().
void rt__int_size | ( | ArrayType * | a, |
float * | size | ||
) |
Definition at line 184 of file _int_tool.c.
References a, ARRNELEMS, and size.
Referenced by g_int_penalty(), and g_int_picksplit().