Definition at line 1460 of file gserialized_gist_2d.c.
1470 POSTGIS_DEBUGF(5,
"consider split: dimNum = %d, rightLower = %f, "
1471 "minLeftCount = %d, leftUpper = %f, maxLeftCount = %d ",
1472 dimNum, rightLower, minLeftCount, leftUpper, maxLeftCount);
1480 leftCount = minLeftCount;
1484 if (maxLeftCount <= context->entriesCount / 2)
1485 leftCount = maxLeftCount;
1495 ratio = ((float4) Min(leftCount, rightCount)) /
1500 bool selectthis =
false;
1514 overlap = (leftUpper - rightLower) / range;
1519 else if (context->
dim == dimNum)
1525 if (overlap < context->overlap ||
1526 (overlap == context->
overlap && ratio > context->
ratio))
1549 (range > context->
range &&
1557 context->
first =
false;
1558 context->
ratio = ratio;
1559 context->
range = range;
1563 context->
dim = dimNum;
1564 POSTGIS_DEBUG(5,
"split selected");
static float non_negative(float val)
References ConsiderSplitContext::boundingBox, ConsiderSplitContext::dim, ConsiderSplitContext::entriesCount, ConsiderSplitContext::first, ConsiderSplitContext::leftUpper, LIMIT_RATIO, non_negative(), ConsiderSplitContext::overlap, ConsiderSplitContext::range, ConsiderSplitContext::ratio, and ConsiderSplitContext::rightLower.
Referenced by gserialized_gist_picksplit_2d().