Eneboo - Documentación para desarrolladores
Clases | 'defines' | 'typedefs' | Funciones
Referencia del Archivo src/libpq/include/utils/array.h
#include "fmgr.h"

Ir al código fuente de este archivo.

Clases

struct  ArrayType
struct  ArrayBuildState
struct  ArrayMetaState
struct  ArrayMapState

'defines'

#define ARRAY_ELEMS_CHUNKSIZE   64
#define DatumGetArrayTypeP(X)   ((ArrayType *) PG_DETOAST_DATUM(X))
#define DatumGetArrayTypePCopy(X)   ((ArrayType *) PG_DETOAST_DATUM_COPY(X))
#define PG_GETARG_ARRAYTYPE_P(n)   DatumGetArrayTypeP(PG_GETARG_DATUM(n))
#define PG_GETARG_ARRAYTYPE_P_COPY(n)   DatumGetArrayTypePCopy(PG_GETARG_DATUM(n))
#define PG_RETURN_ARRAYTYPE_P(x)   PG_RETURN_POINTER(x)
#define ARR_SIZE(a)   (((ArrayType *) (a))->size)
#define ARR_NDIM(a)   (((ArrayType *) (a))->ndim)
#define ARR_ELEMTYPE(a)   (((ArrayType *) (a))->elemtype)
#define ARR_DIMS(a)   ((int *) (((char *) (a)) + sizeof(ArrayType)))
#define ARR_LBOUND(a)
#define ARR_OVERHEAD(n)   (MAXALIGN(sizeof(ArrayType) + 2 * sizeof(int) * (n)))
#define ARR_DATA_PTR(a)   (((char *) (a)) + ARR_OVERHEAD(ARR_NDIM(a)))

'typedefs'

typedef struct ArrayBuildState ArrayBuildState
typedef struct ArrayMetaState ArrayMetaState
typedef struct ArrayMapState ArrayMapState

Funciones

Datum array_in (PG_FUNCTION_ARGS)
Datum array_out (PG_FUNCTION_ARGS)
Datum array_recv (PG_FUNCTION_ARGS)
Datum array_send (PG_FUNCTION_ARGS)
Datum array_eq (PG_FUNCTION_ARGS)
Datum array_ne (PG_FUNCTION_ARGS)
Datum array_lt (PG_FUNCTION_ARGS)
Datum array_gt (PG_FUNCTION_ARGS)
Datum array_le (PG_FUNCTION_ARGS)
Datum array_ge (PG_FUNCTION_ARGS)
Datum btarraycmp (PG_FUNCTION_ARGS)
Datum array_dims (PG_FUNCTION_ARGS)
Datum array_lower (PG_FUNCTION_ARGS)
Datum array_upper (PG_FUNCTION_ARGS)
Datum array_type_coerce (PG_FUNCTION_ARGS)
Datum array_type_length_coerce (PG_FUNCTION_ARGS)
Datum array_length_coerce (PG_FUNCTION_ARGS)
Datum array_larger (PG_FUNCTION_ARGS)
Datum array_smaller (PG_FUNCTION_ARGS)
Datum array_ref (ArrayType *array, int nSubscripts, int *indx, int arraylen, int elmlen, bool elmbyval, char elmalign, bool *isNull)
ArrayTypearray_set (ArrayType *array, int nSubscripts, int *indx, Datum dataValue, int arraylen, int elmlen, bool elmbyval, char elmalign, bool *isNull)
ArrayTypearray_get_slice (ArrayType *array, int nSubscripts, int *upperIndx, int *lowerIndx, int arraylen, int elmlen, bool elmbyval, char elmalign, bool *isNull)
ArrayTypearray_set_slice (ArrayType *array, int nSubscripts, int *upperIndx, int *lowerIndx, ArrayType *srcArray, int arraylen, int elmlen, bool elmbyval, char elmalign, bool *isNull)
Datum array_map (FunctionCallInfo fcinfo, Oid inpType, Oid retType, ArrayMapState *amstate)
ArrayTypeconstruct_array (Datum *elems, int nelems, Oid elmtype, int elmlen, bool elmbyval, char elmalign)
ArrayTypeconstruct_md_array (Datum *elems, int ndims, int *dims, int *lbs, Oid elmtype, int elmlen, bool elmbyval, char elmalign)
void deconstruct_array (ArrayType *array, Oid elmtype, int elmlen, bool elmbyval, char elmalign, Datum **elemsp, int *nelemsp)
ArrayBuildStateaccumArrayResult (ArrayBuildState *astate, Datum dvalue, bool disnull, Oid element_type, MemoryContext rcontext)
Datum makeArrayResult (ArrayBuildState *astate, MemoryContext rcontext)
Datum makeMdArrayResult (ArrayBuildState *astate, int ndims, int *dims, int *lbs, MemoryContext rcontext)
int ArrayGetOffset (int n, int *dim, int *lb, int *indx)
int ArrayGetOffset0 (int n, int *tup, int *scale)
int ArrayGetNItems (int ndims, int *dims)
void mda_get_range (int n, int *span, int *st, int *endp)
void mda_get_prod (int n, int *range, int *prod)
void mda_get_offset_values (int n, int *dist, int *prod, int *span)
int mda_next_tuple (int n, int *curr, int *span)
Datum array_push (PG_FUNCTION_ARGS)
Datum array_cat (PG_FUNCTION_ARGS)
ArrayTypecreate_singleton_array (FunctionCallInfo fcinfo, Oid element_type, Datum element, int ndims)

Documentación de los 'defines'

#define ARR_DATA_PTR (   a)    (((char *) (a)) + ARR_OVERHEAD(ARR_NDIM(a)))
#define ARR_DIMS (   a)    ((int *) (((char *) (a)) + sizeof(ArrayType)))
#define ARR_ELEMTYPE (   a)    (((ArrayType *) (a))->elemtype)
#define ARR_LBOUND (   a)
Valor:
((int *) (((char *) (a)) + sizeof(ArrayType) + \
                                  (sizeof(int) * ARR_NDIM(a))))
#define ARR_NDIM (   a)    (((ArrayType *) (a))->ndim)
#define ARR_OVERHEAD (   n)    (MAXALIGN(sizeof(ArrayType) + 2 * sizeof(int) * (n)))
#define ARR_SIZE (   a)    (((ArrayType *) (a))->size)
#define ARRAY_ELEMS_CHUNKSIZE   64
#define DatumGetArrayTypeP (   X)    ((ArrayType *) PG_DETOAST_DATUM(X))
#define DatumGetArrayTypePCopy (   X)    ((ArrayType *) PG_DETOAST_DATUM_COPY(X))
#define PG_GETARG_ARRAYTYPE_P (   n)    DatumGetArrayTypeP(PG_GETARG_DATUM(n))
#define PG_GETARG_ARRAYTYPE_P_COPY (   n)    DatumGetArrayTypePCopy(PG_GETARG_DATUM(n))
#define PG_RETURN_ARRAYTYPE_P (   x)    PG_RETURN_POINTER(x)

Documentación de los 'typedefs'

typedef struct ArrayMapState ArrayMapState

Documentación de las funciones

ArrayBuildState* accumArrayResult ( ArrayBuildState astate,
Datum  dvalue,
bool  disnull,
Oid  element_type,
MemoryContext  rcontext 
)
Datum array_cat ( PG_FUNCTION_ARGS  )
Datum array_dims ( PG_FUNCTION_ARGS  )
Datum array_eq ( PG_FUNCTION_ARGS  )
Datum array_ge ( PG_FUNCTION_ARGS  )
ArrayType* array_get_slice ( ArrayType array,
int  nSubscripts,
int upperIndx,
int lowerIndx,
int  arraylen,
int  elmlen,
bool  elmbyval,
char  elmalign,
bool isNull 
)
Datum array_gt ( PG_FUNCTION_ARGS  )
Datum array_in ( PG_FUNCTION_ARGS  )
Datum array_larger ( PG_FUNCTION_ARGS  )
Datum array_le ( PG_FUNCTION_ARGS  )
Datum array_length_coerce ( PG_FUNCTION_ARGS  )
Datum array_lower ( PG_FUNCTION_ARGS  )
Datum array_lt ( PG_FUNCTION_ARGS  )
Datum array_map ( FunctionCallInfo  fcinfo,
Oid  inpType,
Oid  retType,
ArrayMapState amstate 
)
Datum array_ne ( PG_FUNCTION_ARGS  )
Datum array_out ( PG_FUNCTION_ARGS  )
Datum array_push ( PG_FUNCTION_ARGS  )
Datum array_recv ( PG_FUNCTION_ARGS  )
Datum array_ref ( ArrayType array,
int  nSubscripts,
int indx,
int  arraylen,
int  elmlen,
bool  elmbyval,
char  elmalign,
bool isNull 
)
Datum array_send ( PG_FUNCTION_ARGS  )
ArrayType* array_set ( ArrayType array,
int  nSubscripts,
int indx,
Datum  dataValue,
int  arraylen,
int  elmlen,
bool  elmbyval,
char  elmalign,
bool isNull 
)
ArrayType* array_set_slice ( ArrayType array,
int  nSubscripts,
int upperIndx,
int lowerIndx,
ArrayType srcArray,
int  arraylen,
int  elmlen,
bool  elmbyval,
char  elmalign,
bool isNull 
)
Datum array_smaller ( PG_FUNCTION_ARGS  )
Datum array_type_coerce ( PG_FUNCTION_ARGS  )
Datum array_type_length_coerce ( PG_FUNCTION_ARGS  )
Datum array_upper ( PG_FUNCTION_ARGS  )
int ArrayGetNItems ( int  ndims,
int dims 
)
int ArrayGetOffset ( int  n,
int dim,
int lb,
int indx 
)
int ArrayGetOffset0 ( int  n,
int tup,
int scale 
)
Datum btarraycmp ( PG_FUNCTION_ARGS  )
ArrayType* construct_array ( Datum elems,
int  nelems,
Oid  elmtype,
int  elmlen,
bool  elmbyval,
char  elmalign 
)
ArrayType* construct_md_array ( Datum elems,
int  ndims,
int dims,
int lbs,
Oid  elmtype,
int  elmlen,
bool  elmbyval,
char  elmalign 
)
ArrayType* create_singleton_array ( FunctionCallInfo  fcinfo,
Oid  element_type,
Datum  element,
int  ndims 
)
void deconstruct_array ( ArrayType array,
Oid  elmtype,
int  elmlen,
bool  elmbyval,
char  elmalign,
Datum **  elemsp,
int nelemsp 
)
Datum makeArrayResult ( ArrayBuildState astate,
MemoryContext  rcontext 
)
Datum makeMdArrayResult ( ArrayBuildState astate,
int  ndims,
int dims,
int lbs,
MemoryContext  rcontext 
)
void mda_get_offset_values ( int  n,
int dist,
int prod,
int span 
)
void mda_get_prod ( int  n,
int range,
int prod 
)
void mda_get_range ( int  n,
int span,
int st,
int endp 
)
int mda_next_tuple ( int  n,
int curr,
int span 
)
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'