gpt4 book ai didi

com.bigdata.service.geospatial.ZOrderRangeScanUtil.calculateBigMin()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-18 15:55:31 29 4
gpt4 key购买 nike

本文整理了Java中com.bigdata.service.geospatial.ZOrderRangeScanUtil.calculateBigMin()方法的一些代码示例,展示了ZOrderRangeScanUtil.calculateBigMin()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZOrderRangeScanUtil.calculateBigMin()方法的具体详情如下:
包路径:com.bigdata.service.geospatial.ZOrderRangeScanUtil
类名称:ZOrderRangeScanUtil
方法名:calculateBigMin

ZOrderRangeScanUtil.calculateBigMin介绍

[英]Returns the BIGMIN, i.e. the next relevant value in the search range. The value is returned as unsigned, which needs to be converted into two's complement prior to appending as a key (see GeoSpatialLiteralExtension for details). This method implements the BIGMIN decision table as provided in http://www.vision-tools.com/h-tropf/multidimensionalrangequery.pdf, see page 76.
[中]返回BIGMIN,即搜索范围内的下一个相关值。该值返回为unsigned,在作为键追加之前,需要将其转换为2的补码(有关详细信息,请参阅GeospatialTeralExtension)。此方法实现了中提供的BIGMIN决策表http://www.vision-tools.com/h-tropf/multidimensionalrangequery.pdf,见第76页。

代码示例

代码示例来源:origin: blazegraph/database

/**
* Test for BigMin calculation in a three-dimensional setting.
*/
public void testBigMinCalculation3Dim() {
 
 final byte[] searchMinZOrder = /* 19 */
   { Byte.valueOf("00000000",2), Byte.valueOf("00000000",2), Byte.valueOf("00010011",2) };
 final byte[] searchMaxZOrder = /* 23 */
   { Byte.valueOf("00000000",2), Byte.valueOf("00000000",2), Byte.valueOf("00010111",2) };
 final ZOrderRangeScanUtil rangeScanUtil = 
    new ZOrderRangeScanUtil(searchMinZOrder, searchMaxZOrder, 3 /* numDimensions */);
 // the following record is not in range for dimension two (has value 0 in that dimension)
 final byte[] dividingRecord = /* 21 */
   { Byte.valueOf("00000000",2), Byte.valueOf("00000000",2), Byte.valueOf("00010101",2) };
 assertFalse(rangeScanUtil.isInSearchRange(dividingRecord));
 
 final byte[] bigMinAct = rangeScanUtil.calculateBigMin(dividingRecord);
 assertTrue(rangeScanUtil.isInSearchRange(bigMinAct));
 assertEquals(searchMaxZOrder, bigMinAct); /* the big min is the max zOrder value */
}

代码示例来源:origin: com.blazegraph/bigdata-rdf-test

/**
* Test for BigMin calculation in a three-dimensional setting.
*/
public void testBigMinCalculation3Dim() {
 
 final byte[] searchMinZOrder = /* 19 */
   { Byte.valueOf("00000000",2), Byte.valueOf("00000000",2), Byte.valueOf("00010011",2) };
 final byte[] searchMaxZOrder = /* 23 */
   { Byte.valueOf("00000000",2), Byte.valueOf("00000000",2), Byte.valueOf("00010111",2) };
 final ZOrderRangeScanUtil rangeScanUtil = 
    new ZOrderRangeScanUtil(searchMinZOrder, searchMaxZOrder, 3 /* numDimensions */);
 // the following record is not in range for dimension two (has value 0 in that dimension)
 final byte[] dividingRecord = /* 21 */
   { Byte.valueOf("00000000",2), Byte.valueOf("00000000",2), Byte.valueOf("00010101",2) };
 assertFalse(rangeScanUtil.isInSearchRange(dividingRecord));
 
 final byte[] bigMinAct = rangeScanUtil.calculateBigMin(dividingRecord);
 assertTrue(rangeScanUtil.isInSearchRange(bigMinAct));
 assertEquals(searchMaxZOrder, bigMinAct); /* the big min is the max zOrder value */
}

代码示例来源:origin: blazegraph/database

/**
* Test for BigMin calculation in a three-dimensional setting.
*/
public void testBigMinCalculation3Dim() {
 
 final byte[] searchMinZOrder = /* 19 */
   { Byte.valueOf("00000000",2), Byte.valueOf("00000000",2), Byte.valueOf("00010011",2) };
 final byte[] searchMaxZOrder = /* 23 */
   { Byte.valueOf("00000000",2), Byte.valueOf("00000000",2), Byte.valueOf("00010111",2) };
 final ZOrderRangeScanUtil rangeScanUtil = 
    new ZOrderRangeScanUtil(searchMinZOrder, searchMaxZOrder, 3 /* numDimensions */);
 // the following record is not in range for dimension two (has value 0 in that dimension)
 final byte[] dividingRecord = /* 21 */
   { Byte.valueOf("00000000",2), Byte.valueOf("00000000",2), Byte.valueOf("00010101",2) };
 assertFalse(rangeScanUtil.isInSearchRange(dividingRecord));
 
 final byte[] bigMinAct = rangeScanUtil.calculateBigMin(dividingRecord);
 assertTrue(rangeScanUtil.isInSearchRange(bigMinAct));
 assertEquals(searchMaxZOrder, bigMinAct); /* the big min is the max zOrder value */
}

代码示例来源:origin: blazegraph/database

final byte[] bigMinAct1 = rangeScanUtil.calculateBigMin(divRecord1);
assertEquals(bigMinExp1, bigMinAct1);
assertFalse(rangeScanUtil.isInSearchRange(divRecord1));
final byte[] bigMinAct2 = rangeScanUtil.calculateBigMin(divRecord2);
assertEquals(bigMinExp2, bigMinAct2);
assertFalse(rangeScanUtil.isInSearchRange(divRecord2));
final byte[] bigMinAct3 = rangeScanUtil.calculateBigMin(divRecord3);
assertEquals(bigMinExp3, bigMinAct3);
assertFalse(rangeScanUtil.isInSearchRange(divRecord3));
final byte[] bigMinAct4 = rangeScanUtil.calculateBigMin(divRecord4);
assertEquals(bigMinExp4, bigMinAct4);
assertFalse(rangeScanUtil.isInSearchRange(divRecord4));
final byte[] bigMinAct5 = rangeScanUtil.calculateBigMin(divRecord5);
assertEquals(bigMinExp5, bigMinAct5);
assertFalse(rangeScanUtil.isInSearchRange(divRecord5));
final byte[] bigMinAct6 = rangeScanUtil.calculateBigMin(divRecord6);
assertEquals(bigMinExp6, bigMinAct6);
assertFalse(rangeScanUtil.isInSearchRange(divRecord6));
final byte[] bigMinAct7 = rangeScanUtil.calculateBigMin(divRecord7);
assertEquals(bigMinExp7, bigMinAct7);
assertFalse(rangeScanUtil.isInSearchRange(divRecord7));
final byte[] bigMinAct8 = rangeScanUtil.calculateBigMin(divRecord8);

代码示例来源:origin: com.blazegraph/bigdata-rdf-test

final byte[] bigMinAct1 = rangeScanUtil.calculateBigMin(divRecord1);
assertEquals(bigMinExp1, bigMinAct1);
assertFalse(rangeScanUtil.isInSearchRange(divRecord1));
final byte[] bigMinAct2 = rangeScanUtil.calculateBigMin(divRecord2);
assertEquals(bigMinExp2, bigMinAct2);
assertFalse(rangeScanUtil.isInSearchRange(divRecord2));
final byte[] bigMinAct3 = rangeScanUtil.calculateBigMin(divRecord3);
assertEquals(bigMinExp3, bigMinAct3);
assertFalse(rangeScanUtil.isInSearchRange(divRecord3));
final byte[] bigMinAct4 = rangeScanUtil.calculateBigMin(divRecord4);
assertEquals(bigMinExp4, bigMinAct4);
assertFalse(rangeScanUtil.isInSearchRange(divRecord4));
final byte[] bigMinAct5 = rangeScanUtil.calculateBigMin(divRecord5);
assertEquals(bigMinExp5, bigMinAct5);
assertFalse(rangeScanUtil.isInSearchRange(divRecord5));
final byte[] bigMinAct6 = rangeScanUtil.calculateBigMin(divRecord6);
assertEquals(bigMinExp6, bigMinAct6);
assertFalse(rangeScanUtil.isInSearchRange(divRecord6));
final byte[] bigMinAct7 = rangeScanUtil.calculateBigMin(divRecord7);
assertEquals(bigMinExp7, bigMinAct7);
assertFalse(rangeScanUtil.isInSearchRange(divRecord7));
final byte[] bigMinAct8 = rangeScanUtil.calculateBigMin(divRecord8);

代码示例来源:origin: com.blazegraph/bigdata-core

final byte[] bigMin = rangeScanUtil.calculateBigMin(dividingRecord);

代码示例来源:origin: blazegraph/database

final byte[] bigMin = rangeScanUtil.calculateBigMin(dividingRecord);

代码示例来源:origin: blazegraph/database

final byte[] bigMinAct1 = rangeScanUtil.calculateBigMin(divRecord1);
assertEquals(bigMinExp1, bigMinAct1);
assertFalse(rangeScanUtil.isInSearchRange(divRecord1));
final byte[] bigMinAct2 = rangeScanUtil.calculateBigMin(divRecord2);
assertEquals(bigMinExp2, bigMinAct2);
assertFalse(rangeScanUtil.isInSearchRange(divRecord2));
final byte[] bigMinAct3 = rangeScanUtil.calculateBigMin(divRecord3);
assertEquals(bigMinExp3, bigMinAct3);
assertFalse(rangeScanUtil.isInSearchRange(divRecord3));
final byte[] bigMinAct4 = rangeScanUtil.calculateBigMin(divRecord4);
assertEquals(bigMinExp4, bigMinAct4);
assertFalse(rangeScanUtil.isInSearchRange(divRecord4));
final byte[] bigMinAct5 = rangeScanUtil.calculateBigMin(divRecord5);
assertEquals(bigMinExp5, bigMinAct5);
assertFalse(rangeScanUtil.isInSearchRange(divRecord5));
final byte[] bigMinAct6 = rangeScanUtil.calculateBigMin(divRecord6);
assertEquals(bigMinExp6, bigMinAct6);
assertFalse(rangeScanUtil.isInSearchRange(divRecord6));
final byte[] bigMinAct7 = rangeScanUtil.calculateBigMin(divRecord7);
assertEquals(bigMinExp7, bigMinAct7);
assertFalse(rangeScanUtil.isInSearchRange(divRecord7));
final byte[] bigMinAct8 = rangeScanUtil.calculateBigMin(divRecord8);

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com