org.apache.lucene.geo.GeoEncodingUtils.computeShift()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(63)

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

GeoEncodingUtils.computeShift介绍

[英]Compute the minimum shift value so that (b>>>shift)-(a>>>shift) is less that ARITY.
[中]计算最小移位值,使(b>>>移位)-(a>>>移位)小于该算术数。

代码示例

代码示例来源:origin: org.apache.lucene/lucene-core

latShift = computeShift(minLat2, maxLat2);
latBase = (int) (minLat2 >>> latShift);
maxLatDelta = (int) (maxLat2 >>> latShift) - latBase + 1;
 maxLon2 += 1L << 32; // wrap
lonShift = computeShift(minLon2, maxLon2);
lonBase = (int) (minLon2 >>> lonShift);
maxLonDelta = (int) (maxLon2 >>> lonShift) - lonBase + 1;

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

latShift = computeShift(minLat2, maxLat2);
latBase = (int) (minLat2 >>> latShift);
maxLatDelta = (int) (maxLat2 >>> latShift) - latBase + 1;
 maxLon2 += 1L << 32; // wrap
lonShift = computeShift(minLon2, maxLon2);
lonBase = (int) (minLon2 >>> lonShift);
maxLonDelta = (int) (maxLon2 >>> lonShift) - lonBase + 1;

相关文章