gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-18 16:35:31 24 4
gpt4 key购买 nike

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

ZOrderRangeScanUtil.isInSearchRange介绍

[英]Checks if the dividing record passed as arguments is in the multi-dimensional search range defined by this class.
[中]检查作为参数传递的分割记录是否在此类定义的多维搜索范围内。

代码示例

代码示例来源: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

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

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

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

代码示例来源: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-core

litExt.toZOrderByteArray(zOrderIv.getDelegate());
final boolean inRange = rangeScanUtil.isInSearchRange(dividingRecord);

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

litExt.toZOrderByteArray(zOrderIv.getDelegate());
final boolean inRange = rangeScanUtil.isInSearchRange(dividingRecord);

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

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

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