smlararrayextract(PG_FUNCTION_ARGS)
{
ArrayType *array;
- int32 *nentries = (int32 *) PG_GETARG_POINTER(1);
+ int32 *nentries = (int32 *) PG_GETARG_POINTER(1);
SimpleArray *sa;
/*
if (sa->nelems == 0 && PG_NARGS() == 3)
{
- switch (PG_GETARG_UINT16(2)) /* StrategyNumber */
+ switch (PG_GETARG_UINT16(2)) /* StrategyNumber */
{
case SmlarOverlapStrategy:
case SmlarSimilarityStrategy:
Datum
smlararrayconsistent(PG_FUNCTION_ARGS)
{
- bool *check = (bool *) PG_GETARG_POINTER(0);
- StrategyNumber strategy = PG_GETARG_UINT16(1);
+ bool *check = (bool *) PG_GETARG_POINTER(0);
+ StrategyNumber strategy = PG_GETARG_UINT16(1);
SimpleArray *sa;
bool res = false;
int i,
cnt = 0;
- bool *recheck = (bool *) PG_GETARG_POINTER(5);
+ bool *recheck = (bool *) PG_GETARG_POINTER(5);
*recheck = true;
switch(getSmlType())
{
- case ST_TFIDF:
+ case ST_TFIDF:
{
- double weight = 0.0, /* exact weight of union */
+ double weight = 0.0, /* exact weight of union */
saSum = 0.0, /* exact length of query */
siSum = 0.0; /* lower limit of length of indexed value */
res = true;
}
break;
- case ST_COSINE:
+ case ST_COSINE:
{
double power;
res = true;
}
break;
- case ST_OVERLAP:
+ case ST_OVERLAP:
if (cnt >= GetSmlarLimit())
res = true;
break;