gpt4 book ai didi

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

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

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

ZOrderRangeScanUtil.<init>介绍

[英]Constructor for the ZOrderRangeScanUtil.
[中]ZOrderRangeScanUtil的构造函数。

代码示例

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

public ZOrderIndexBigMinAdvancer(
 final byte[] searchMinZOrder, /* the minimum search key (top left) */
 final byte[] searchMaxZOrder, /* the maximum search key (bottom right) */
 final GeoSpatialLiteralExtension<BigdataValue> litExt,
 final int zOrderComponentPos /* position of the zOrder in the index */,
 final GeoSpatialCounters geoSpatialCounters) {
 this.litExt = litExt;
 this.searchMinZOrder = litExt.unpadLeadingZero(searchMinZOrder);
 // this.seachMinLong = litExt.fromZOrderByteArray(this.searchMinZOrder);
 
 this.searchMaxZOrder = litExt.unpadLeadingZero(searchMaxZOrder);
 // this.seachMaxLong = litExt.fromZOrderByteArray(this.searchMaxZOrder);
 
 this.zOrderComponentPos = zOrderComponentPos;
 this.geoSpatialCounters = geoSpatialCounters;
 this.rangeScanUtil = 
   new ZOrderRangeScanUtil(
    this.searchMinZOrder, this.searchMaxZOrder, litExt.getNumDimensions());
 
}

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

public ZOrderIndexBigMinAdvancer(
 final byte[] searchMinZOrder, /* the minimum search key (top left) */
 final byte[] searchMaxZOrder, /* the maximum search key (bottom right) */
 final GeoSpatialLiteralExtension<BigdataValue> litExt,
 final int zOrderComponentPos /* position of the zOrder in the index */,
 final GeoSpatialCounters geoSpatialCounters) {
 this.litExt = litExt;
 this.searchMinZOrder = litExt.unpadLeadingZero(searchMinZOrder);
 // this.seachMinLong = litExt.fromZOrderByteArray(this.searchMinZOrder);
 
 this.searchMaxZOrder = litExt.unpadLeadingZero(searchMaxZOrder);
 // this.seachMaxLong = litExt.fromZOrderByteArray(this.searchMaxZOrder);
 
 this.zOrderComponentPos = zOrderComponentPos;
 this.geoSpatialCounters = geoSpatialCounters;
 this.rangeScanUtil = 
   new ZOrderRangeScanUtil(
    this.searchMinZOrder, this.searchMaxZOrder, litExt.getNumDimensions());
 
}

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

new ZOrderRangeScanUtil(searchMinZOrder, searchMaxZOrder, 2 /* numDimensions */);

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

new ZOrderRangeScanUtil(searchMinZOrder, searchMaxZOrder, 2 /* numDimensions */);

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

new ZOrderRangeScanUtil(searchMinZOrder, searchMaxZOrder, 2 /* numDimensions */);

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