| Line |
Stmt Id |
Pos |
Tree |
Symbol |
Tests |
Code |
|
39
|
3220
|
1665
-
1666
|
Literal
|
<nosymbol>
|
|
0
|
|
39
|
3221
|
1670
-
1671
|
Literal
|
<nosymbol>
|
|
7
|
|
39
|
3222
|
1695
-
1709
|
Select
|
org.locationtech.geomesa.utils.geohash.GeoHash.base32
|
|
GeoHash.base32
|
|
39
|
3223
|
1695
-
1715
|
Select
|
scala.collection.SeqLike.toSeq
|
|
scala.Predef.augmentString(GeoHash.base32).toSeq
|
|
39
|
3224
|
1682
-
1716
|
Apply
|
scala.collection.generic.GenTraversableFactory.fill
|
|
scala.collection.immutable.List.fill[Seq[Char]](i)(scala.Predef.augmentString(GeoHash.base32).toSeq)
|
|
39
|
3225
|
1676
-
1676
|
TypeApply
|
scala.collection.immutable.IndexedSeq.canBuildFrom
|
|
immutable.this.IndexedSeq.canBuildFrom[List[Seq[Char]]]
|
|
39
|
3226
|
1664
-
1717
|
ApplyToImplicitArgs
|
scala.collection.TraversableLike.map
|
|
scala.Predef.intWrapper(0).to(7).map[List[Seq[Char]], scala.collection.immutable.IndexedSeq[List[Seq[Char]]]](((i: Int) => scala.collection.immutable.List.fill[Seq[Char]](i)(scala.Predef.augmentString(GeoHash.base32).toSeq)))(immutable.this.IndexedSeq.canBuildFrom[List[Seq[Char]]])
|
|
40
|
3227
|
1741
-
1742
|
Literal
|
<nosymbol>
|
|
0
|
|
40
|
3228
|
1746
-
1747
|
Literal
|
<nosymbol>
|
|
4
|
|
40
|
3229
|
1771
-
1784
|
Apply
|
scala.collection.generic.GenericCompanion.apply
|
|
scala.collection.Seq.apply[Char]('0', '1')
|
|
40
|
3230
|
1758
-
1785
|
Apply
|
scala.collection.generic.GenTraversableFactory.fill
|
|
scala.collection.immutable.List.fill[Seq[Char]](i)(scala.collection.Seq.apply[Char]('0', '1'))
|
|
40
|
3231
|
1752
-
1752
|
TypeApply
|
scala.collection.immutable.IndexedSeq.canBuildFrom
|
|
immutable.this.IndexedSeq.canBuildFrom[List[Seq[Char]]]
|
|
40
|
3232
|
1740
-
1786
|
ApplyToImplicitArgs
|
scala.collection.TraversableLike.map
|
|
scala.Predef.intWrapper(0).to(4).map[List[Seq[Char]], scala.collection.immutable.IndexedSeq[List[Seq[Char]]]](((i: Int) => scala.collection.immutable.List.fill[Seq[Char]](i)(scala.collection.Seq.apply[Char]('0', '1'))))(immutable.this.IndexedSeq.canBuildFrom[List[Seq[Char]]])
|
|
53
|
3233
|
2336
-
2353
|
Select
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.ResolutionRange.maxBitsResolution
|
|
ResolutionRange.this.maxBitsResolution
|
|
53
|
3234
|
2315
-
2353
|
Apply
|
scala.Int.>=
|
|
ResolutionRange.this.minBitsResolution.>=(ResolutionRange.this.maxBitsResolution)
|
|
53
|
3237
|
2311
-
2311
|
Literal
|
<nosymbol>
|
|
()
|
|
53
|
3238
|
2311
-
2311
|
Block
|
<nosymbol>
|
|
()
|
|
54
|
3235
|
2361
-
2467
|
Throw
|
<nosymbol>
|
|
throw new scala.`package`.IllegalArgumentException("Minimum resolution must be strictly greater than maximum resolution.")
|
|
54
|
3236
|
2361
-
2467
|
Block
|
<nosymbol>
|
|
throw new scala.`package`.IllegalArgumentException("Minimum resolution must be strictly greater than maximum resolution.")
|
|
57
|
3239
|
2605
-
2709
|
Apply
|
java.lang.String.+
|
|
"{".+(ResolutionRange.this.minBitsResolution.toString()).+(", +").+(ResolutionRange.this.numBitsIncrement).+("..., ").+(ResolutionRange.this.maxBitsResolution.toString()).+("}")
|
|
59
|
3240
|
2741
-
2742
|
Literal
|
<nosymbol>
|
|
1
|
|
59
|
3241
|
2746
-
2762
|
Select
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.ResolutionRange.numBitsIncrement
|
|
ResolutionRange.this.numBitsIncrement
|
|
59
|
3242
|
2741
-
2762
|
Apply
|
scala.Int.<<
|
|
1.<<(ResolutionRange.this.numBitsIncrement)
|
|
62
|
3243
|
2850
-
2851
|
Literal
|
<nosymbol>
|
|
0
|
|
62
|
3244
|
2853
-
2867
|
Select
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.ResolutionRange.getNumChildren
|
|
ResolutionRange.this.getNumChildren
|
|
62
|
3261
|
2873
-
2873
|
TypeApply
|
scala.collection.immutable.IndexedSeq.canBuildFrom
|
|
immutable.this.IndexedSeq.canBuildFrom[scala.collection.BitSet]
|
|
65
|
3245
|
3026
-
3042
|
Select
|
scala.runtime.RichInt.toBinaryString
|
|
scala.Predef.intWrapper(i).toBinaryString
|
|
67
|
3246
|
3058
-
3059
|
Literal
|
<nosymbol>
|
|
0
|
|
67
|
3247
|
3061
-
3077
|
Select
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.ResolutionRange.numBitsIncrement
|
|
ResolutionRange.this.numBitsIncrement
|
|
67
|
3259
|
3111
-
3275
|
Block
|
<nosymbol>
|
|
{
val c: Char = if (j.<(bitString.length()))
bitString.charAt(j)
else
'0';
if (c.==('1'))
bs.+(oldPrecision.+(bitString.length()).-(1).-(j))
else
bs
}
|
|
67
|
3260
|
3052
-
3285
|
Apply
|
scala.collection.TraversableOnce.foldLeft
|
|
scala.`package`.Range.apply(0, ResolutionRange.this.numBitsIncrement).foldLeft[scala.collection.BitSet](parent)(((x0$1: scala.collection.BitSet, x1$1: Int) => scala.Tuple2.apply[scala.collection.BitSet, Int](x0$1, x1$1) match {
case (_1: scala.collection.BitSet, _2: Int)(scala.collection.BitSet, Int)((bs @ _), (j @ _)) => {
val c: Char = if (j.<(bitString.length()))
bitString.charAt(j)
else
'0';
if (c.==('1'))
bs.+(oldPrecision.+(bitString.length()).-(1).-(j))
else
bs
}
}))
|
|
68
|
3248
|
3140
-
3156
|
Apply
|
java.lang.String.length
|
|
bitString.length()
|
|
68
|
3249
|
3136
-
3156
|
Apply
|
scala.Int.<
|
|
j.<(bitString.length())
|
|
68
|
3250
|
3158
-
3177
|
Apply
|
java.lang.String.charAt
|
|
bitString.charAt(j)
|
|
68
|
3251
|
3158
-
3177
|
Block
|
java.lang.String.charAt
|
|
bitString.charAt(j)
|
|
68
|
3252
|
3183
-
3186
|
Literal
|
<nosymbol>
|
|
'0'
|
|
68
|
3253
|
3183
-
3186
|
Block
|
<nosymbol>
|
|
'0'
|
|
69
|
3254
|
3201
-
3209
|
Apply
|
scala.Char.==
|
|
c.==('1')
|
|
69
|
3255
|
3217
-
3256
|
Apply
|
scala.Int.-
|
|
oldPrecision.+(bitString.length()).-(1).-(j)
|
|
69
|
3256
|
3211
-
3257
|
Apply
|
scala.collection.SetLike.+
|
|
bs.+(oldPrecision.+(bitString.length()).-(1).-(j))
|
|
69
|
3257
|
3211
-
3257
|
Block
|
scala.collection.SetLike.+
|
|
bs.+(oldPrecision.+(bitString.length()).-(1).-(j))
|
|
70
|
3258
|
3273
-
3275
|
Ident
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.ResolutionRange.bs
|
|
bs
|
|
72
|
3262
|
2844
-
3300
|
Select
|
scala.collection.TraversableOnce.toList
|
|
scala.`package`.Range.apply(0, ResolutionRange.this.getNumChildren).map[scala.collection.BitSet, scala.collection.immutable.IndexedSeq[scala.collection.BitSet]](((i: Int) => {
val bitString: String = scala.Predef.intWrapper(i).toBinaryString;
scala.`package`.Range.apply(0, ResolutionRange.this.numBitsIncrement).foldLeft[scala.collection.BitSet](parent)(((x0$1: scala.collection.BitSet, x1$1: Int) => scala.Tuple2.apply[scala.collection.BitSet, Int](x0$1, x1$1) match {
case (_1: scala.collection.BitSet, _2: Int)(scala.collection.BitSet, Int)((bs @ _), (j @ _)) => {
val c: Char = if (j.<(bitString.length()))
bitString.charAt(j)
else
'0';
if (c.==('1'))
bs.+(oldPrecision.+(bitString.length()).-(1).-(j))
else
bs
}
}))
}))(immutable.this.IndexedSeq.canBuildFrom[scala.collection.BitSet]).toList
|
|
77
|
3263
|
3379
-
3381
|
Literal
|
<nosymbol>
|
|
45
|
|
78
|
3264
|
3418
-
3420
|
Literal
|
<nosymbol>
|
|
1L
|
|
78
|
3265
|
3455
-
3456
|
Literal
|
<nosymbol>
|
|
1
|
|
78
|
3266
|
3458
-
3459
|
Literal
|
<nosymbol>
|
|
2
|
|
78
|
3267
|
3424
-
3467
|
Select
|
scala.Int.toLong
|
|
GeohashUtils.this.maxRealisticGeoHashPrecision.+(1)./(2).toLong
|
|
78
|
3268
|
3418
-
3467
|
Apply
|
scala.Long.<<
|
|
1L.<<(GeohashUtils.this.maxRealisticGeoHashPrecision.+(1)./(2).toLong)
|
|
79
|
3269
|
3517
-
3547
|
Select
|
scala.Long.toDouble
|
|
GeohashUtils.this.numDistinctGridPoints.toDouble
|
|
79
|
3270
|
3498
-
3548
|
Apply
|
org.locationtech.jts.geom.PrecisionModel.<init>
|
|
new org.locationtech.jts.geom.PrecisionModel(GeohashUtils.this.numDistinctGridPoints.toDouble)
|
|
82
|
3271
|
3650
-
3671
|
Select
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.defaultPrecisionModel
|
|
GeohashUtils.this.defaultPrecisionModel
|
|
82
|
3272
|
3673
-
3677
|
Literal
|
<nosymbol>
|
|
4326
|
|
82
|
3273
|
3630
-
3678
|
Apply
|
org.locationtech.jts.geom.GeometryFactory.<init>
|
|
new org.locationtech.jts.geom.GeometryFactory(GeohashUtils.this.defaultPrecisionModel, 4326)
|
|
102
|
3274
|
4719
-
4736
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.getCentroid
|
|
GeohashUtils.this.getCentroid(geom)
|
|
103
|
3275
|
4785
-
4809
|
Apply
|
org.locationtech.jts.geom.Geometry.getEnvelopeInternal
|
|
geom.getEnvelopeInternal()
|
|
103
|
3276
|
4751
-
4810
|
Apply
|
org.locationtech.jts.geom.GeometryFactory.toGeometry
|
|
GeohashUtils.this.defaultGeometryFactory.toGeometry(geom.getEnvelopeInternal())
|
|
106
|
3277
|
4930
-
4959
|
Select
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.ResolutionRange.minBitsResolution
|
|
resolutions.minBitsResolution
|
|
106
|
3278
|
4961
-
4982
|
TypeApply
|
scala.Option.empty
|
|
scala.Option.empty[org.locationtech.geomesa.utils.geohash.GeoHash]
|
|
106
|
3279
|
4929
-
4983
|
Apply
|
scala.Tuple2.apply
|
|
scala.Tuple2.apply[Int, Option[org.locationtech.geomesa.utils.geohash.GeoHash]](resolutions.minBitsResolution, scala.Option.empty[org.locationtech.geomesa.utils.geohash.GeoHash])
|
|
106
|
3290
|
4901
-
5160
|
Apply
|
scala.collection.IterableLike.foldRight
|
|
resolutions.range.foldRight[(Int, Option[org.locationtech.geomesa.utils.geohash.GeoHash])](scala.Tuple2.apply[Int, Option[org.locationtech.geomesa.utils.geohash.GeoHash]](resolutions.minBitsResolution, scala.Option.empty[org.locationtech.geomesa.utils.geohash.GeoHash]))(((x0$1: Int, x1$1: (Int, Option[org.locationtech.geomesa.utils.geohash.GeoHash])) => scala.Tuple2.apply[Int, (Int, Option[org.locationtech.geomesa.utils.geohash.GeoHash])](x0$1, x1$1) match {
case (_1: Int, _2: (Int, Option[org.locationtech.geomesa.utils.geohash.GeoHash]))(Int, (Int, Option[org.locationtech.geomesa.utils.geohash.GeoHash]))((bits @ _), (orig @ (_1: Int, _2: Option[org.locationtech.geomesa.utils.geohash.GeoHash])(Int, Option[org.locationtech.geomesa.utils.geohash.GeoHash])((res @ _), _))) => {
val gh: org.locationtech.geomesa.utils.geohash.GeoHash = GeoHash.apply(centroid.getX(), centroid.getY(), bits);
if (geohash.this.GeoHash.toGeometry(gh).contains(env).&&(bits.>=(res)))
scala.Tuple2.apply[Int, Some[org.locationtech.geomesa.utils.geohash.GeoHash]](bits, scala.Some.apply[org.locationtech.geomesa.utils.geohash.GeoHash](gh))
else
orig
}
}))
|
|
106
|
3291
|
4888
-
4898
|
Ident
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.ghOpt
|
|
ghOpt
|
|
107
|
3289
|
5019
-
5154
|
Block
|
<nosymbol>
|
|
{
val gh: org.locationtech.geomesa.utils.geohash.GeoHash = GeoHash.apply(centroid.getX(), centroid.getY(), bits);
if (geohash.this.GeoHash.toGeometry(gh).contains(env).&&(bits.>=(res)))
scala.Tuple2.apply[Int, Some[org.locationtech.geomesa.utils.geohash.GeoHash]](bits, scala.Some.apply[org.locationtech.geomesa.utils.geohash.GeoHash](gh))
else
orig
}
|
|
108
|
3280
|
5047
-
5060
|
Apply
|
org.locationtech.jts.geom.Point.getX
|
|
centroid.getX()
|
|
108
|
3281
|
5062
-
5075
|
Apply
|
org.locationtech.jts.geom.Point.getY
|
|
centroid.getY()
|
|
108
|
3282
|
5039
-
5082
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeoHash.apply
|
|
GeoHash.apply(centroid.getX(), centroid.getY(), bits)
|
|
109
|
3283
|
5115
-
5126
|
Apply
|
scala.Int.>=
|
|
bits.>=(res)
|
|
109
|
3284
|
5095
-
5126
|
Apply
|
scala.Boolean.&&
|
|
geohash.this.GeoHash.toGeometry(gh).contains(env).&&(bits.>=(res))
|
|
109
|
3285
|
5135
-
5143
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[org.locationtech.geomesa.utils.geohash.GeoHash](gh)
|
|
109
|
3286
|
5128
-
5144
|
Apply
|
scala.Tuple2.apply
|
|
scala.Tuple2.apply[Int, Some[org.locationtech.geomesa.utils.geohash.GeoHash]](bits, scala.Some.apply[org.locationtech.geomesa.utils.geohash.GeoHash](gh))
|
|
109
|
3287
|
5128
-
5144
|
Block
|
scala.Tuple2.apply
|
|
scala.Tuple2.apply[Int, Some[org.locationtech.geomesa.utils.geohash.GeoHash]](bits, scala.Some.apply[org.locationtech.geomesa.utils.geohash.GeoHash](gh))
|
|
109
|
3288
|
5150
-
5154
|
Ident
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.orig
|
|
orig
|
|
113
|
3292
|
5246
-
5259
|
Apply
|
org.locationtech.jts.geom.Point.getX
|
|
centroid.getX()
|
|
113
|
3293
|
5261
-
5274
|
Apply
|
org.locationtech.jts.geom.Point.getY
|
|
centroid.getY()
|
|
113
|
3294
|
5276
-
5305
|
Select
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.ResolutionRange.minBitsResolution
|
|
resolutions.minBitsResolution
|
|
113
|
3295
|
5238
-
5306
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeoHash.apply
|
|
GeoHash.apply(centroid.getX(), centroid.getY(), resolutions.minBitsResolution)
|
|
113
|
3296
|
5222
-
5307
|
Apply
|
scala.Option.getOrElse
|
|
ghOpt.getOrElse[org.locationtech.geomesa.utils.geohash.GeoHash](GeoHash.apply(centroid.getX(), centroid.getY(), resolutions.minBitsResolution))
|
|
114
|
3297
|
5337
-
5357
|
Select
|
scala.Boolean.unary_!
|
|
gh.geom.equals(env).unary_!
|
|
114
|
3298
|
5316
-
5357
|
Apply
|
scala.Boolean.&&
|
|
geohash.this.GeoHash.toGeometry(gh).contains(env).unary_!.&&(gh.geom.equals(env).unary_!)
|
|
114
|
3301
|
5312
-
5312
|
Literal
|
<nosymbol>
|
|
()
|
|
114
|
3302
|
5312
-
5312
|
Block
|
<nosymbol>
|
|
()
|
|
115
|
3299
|
5365
-
5517
|
Throw
|
<nosymbol>
|
|
throw new scala.`package`.Exception("ERROR: Could not find a suitable ".+(resolutions.minBitsResolution).+("-bit MBR for the target geometry: ").+(geom))
|
|
115
|
3300
|
5365
-
5517
|
Block
|
<nosymbol>
|
|
throw new scala.`package`.Exception("ERROR: Could not find a suitable ".+(resolutions.minBitsResolution).+("-bit MBR for the target geometry: ").+(geom))
|
|
129
|
3303
|
5783
-
5802
|
Apply
|
org.locationtech.geomesa.utils.geotools.Conversions.RichGeometry.safeCentroid
|
|
org.locationtech.geomesa.utils.geotools.Conversions.RichGeometry(geom).safeCentroid()
|
|
130
|
3304
|
5850
-
5857
|
Apply
|
org.locationtech.jts.geom.Point.getX
|
|
pt.getX()
|
|
130
|
3305
|
5859
-
5866
|
Apply
|
org.locationtech.jts.geom.Point.getY
|
|
pt.getY()
|
|
130
|
3306
|
5835
-
5867
|
Apply
|
org.locationtech.jts.geom.Coordinate.<init>
|
|
new org.locationtech.jts.geom.Coordinate(pt.getX(), pt.getY())
|
|
130
|
3307
|
5807
-
5868
|
Apply
|
org.locationtech.jts.geom.GeometryFactory.createPoint
|
|
geom.getFactory().createPoint(new org.locationtech.jts.geom.Coordinate(pt.getX(), pt.getY()))
|
|
163
|
3308
|
7321
-
7337
|
Select
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.DecompositionCandidate.areaOutside
|
|
than.areaOutside
|
|
163
|
3309
|
7307
-
7337
|
Apply
|
scala.Double.>
|
|
DecompositionCandidate.this.areaOutside.>(than.areaOutside)
|
|
163
|
3310
|
7339
-
7343
|
Literal
|
<nosymbol>
|
|
true
|
|
163
|
3311
|
7339
-
7343
|
Block
|
<nosymbol>
|
|
true
|
|
165
|
3312
|
7384
-
7400
|
Select
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.DecompositionCandidate.areaOutside
|
|
than.areaOutside
|
|
165
|
3313
|
7369
-
7400
|
Apply
|
scala.Double.==
|
|
DecompositionCandidate.this.areaOutside.==(than.areaOutside)
|
|
165
|
3314
|
7402
-
7418
|
Apply
|
scala.Double.<
|
|
DecompositionCandidate.this.area.<(than.area)
|
|
165
|
3315
|
7402
-
7418
|
Block
|
scala.Double.<
|
|
DecompositionCandidate.this.area.<(than.area)
|
|
165
|
3318
|
7365
-
7437
|
If
|
<nosymbol>
|
|
if (DecompositionCandidate.this.areaOutside.==(than.areaOutside))
DecompositionCandidate.this.area.<(than.area)
else
false
|
|
166
|
3316
|
7432
-
7437
|
Literal
|
<nosymbol>
|
|
false
|
|
166
|
3317
|
7432
-
7437
|
Block
|
<nosymbol>
|
|
false
|
|
223
|
3319
|
9936
-
9945
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.DecompositionCandidate.isLT
|
|
a.isLT(b)
|
|
245
|
3320
|
11101
-
11154
|
Apply
|
scala.Option.getOrElse
|
|
geomCatcher.opt[Double](targetGeom.getArea()).getOrElse[Double](0.0)
|
|
246
|
3321
|
11187
-
11242
|
Apply
|
scala.Option.getOrElse
|
|
geomCatcher.opt[Double](targetGeom.getLength()).getOrElse[Double](0.0)
|
|
253
|
3322
|
11469
-
11542
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.PolygonDecompositionCandidate.<init>
|
|
new GeohashUtils.this.PolygonDecompositionCandidate(gh, multipoly, targetArea, resolutions)
|
|
253
|
3323
|
11469
-
11542
|
Block
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.PolygonDecompositionCandidate.<init>
|
|
new GeohashUtils.this.PolygonDecompositionCandidate(gh, multipoly, targetArea, resolutions)
|
|
255
|
3327
|
11596
-
11725
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.PolygonDecompositionCandidate.<init>
|
|
new GeohashUtils.this.PolygonDecompositionCandidate(gh, new org.locationtech.jts.geom.MultiPolygon(scala.Array.apply[org.locationtech.jts.geom.Polygon](polygon)((ClassTag.apply[org.locationtech.jts.geom.Polygon](classOf[org.locationtech.jts.geom.Polygon]): scala.reflect.ClassTag[org.locationtech.jts.geom.Polygon])), polygon.getFactory()), targetArea, resolutions)
|
|
255
|
3328
|
11596
-
11725
|
Block
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.PolygonDecompositionCandidate.<init>
|
|
new GeohashUtils.this.PolygonDecompositionCandidate(gh, new org.locationtech.jts.geom.MultiPolygon(scala.Array.apply[org.locationtech.jts.geom.Polygon](polygon)((ClassTag.apply[org.locationtech.jts.geom.Polygon](classOf[org.locationtech.jts.geom.Polygon]): scala.reflect.ClassTag[org.locationtech.jts.geom.Polygon])), polygon.getFactory()), targetArea, resolutions)
|
|
256
|
3324
|
11664
-
11678
|
ApplyToImplicitArgs
|
scala.Array.apply
|
|
scala.Array.apply[org.locationtech.jts.geom.Polygon](polygon)((ClassTag.apply[org.locationtech.jts.geom.Polygon](classOf[org.locationtech.jts.geom.Polygon]): scala.reflect.ClassTag[org.locationtech.jts.geom.Polygon]))
|
|
256
|
3325
|
11680
-
11698
|
Apply
|
org.locationtech.jts.geom.Geometry.getFactory
|
|
polygon.getFactory()
|
|
256
|
3326
|
11647
-
11699
|
Apply
|
org.locationtech.jts.geom.MultiPolygon.<init>
|
|
new org.locationtech.jts.geom.MultiPolygon(scala.Array.apply[org.locationtech.jts.geom.Polygon](polygon)((ClassTag.apply[org.locationtech.jts.geom.Polygon](classOf[org.locationtech.jts.geom.Polygon]): scala.reflect.ClassTag[org.locationtech.jts.geom.Polygon])), polygon.getFactory())
|
|
258
|
3332
|
11779
-
11954
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.LineDecompositionCandidate.<init>
|
|
new GeohashUtils.this.LineDecompositionCandidate(gh, new org.locationtech.jts.geom.MultiLineString(scala.Array.apply[org.locationtech.jts.geom.LineString](line)((ClassTag.apply[org.locationtech.jts.geom.LineString](classOf[org.locationtech.jts.geom.LineString]): scala.reflect.ClassTag[org.locationtech.jts.geom.LineString])), line.getFactory()), targetLength, resolutions)
|
|
258
|
3333
|
11779
-
11954
|
Block
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.LineDecompositionCandidate.<init>
|
|
new GeohashUtils.this.LineDecompositionCandidate(gh, new org.locationtech.jts.geom.MultiLineString(scala.Array.apply[org.locationtech.jts.geom.LineString](line)((ClassTag.apply[org.locationtech.jts.geom.LineString](classOf[org.locationtech.jts.geom.LineString]): scala.reflect.ClassTag[org.locationtech.jts.geom.LineString])), line.getFactory()), targetLength, resolutions)
|
|
259
|
3329
|
11897
-
11908
|
ApplyToImplicitArgs
|
scala.Array.apply
|
|
scala.Array.apply[org.locationtech.jts.geom.LineString](line)((ClassTag.apply[org.locationtech.jts.geom.LineString](classOf[org.locationtech.jts.geom.LineString]): scala.reflect.ClassTag[org.locationtech.jts.geom.LineString]))
|
|
259
|
3330
|
11910
-
11925
|
Apply
|
org.locationtech.jts.geom.Geometry.getFactory
|
|
line.getFactory()
|
|
259
|
3331
|
11877
-
11926
|
Apply
|
org.locationtech.jts.geom.MultiLineString.<init>
|
|
new org.locationtech.jts.geom.MultiLineString(scala.Array.apply[org.locationtech.jts.geom.LineString](line)((ClassTag.apply[org.locationtech.jts.geom.LineString](classOf[org.locationtech.jts.geom.LineString]): scala.reflect.ClassTag[org.locationtech.jts.geom.LineString])), line.getFactory())
|
|
261
|
3334
|
12008
-
12080
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.LineDecompositionCandidate.<init>
|
|
new GeohashUtils.this.LineDecompositionCandidate(gh, multiLine, targetLength, resolutions)
|
|
261
|
3335
|
12008
-
12080
|
Block
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.LineDecompositionCandidate.<init>
|
|
new GeohashUtils.this.LineDecompositionCandidate(gh, multiLine, targetLength, resolutions)
|
|
263
|
3336
|
12134
-
12201
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.PointDecompositionCandidate.<init>
|
|
new GeohashUtils.this.PointDecompositionCandidate(gh, point, targetArea, resolutions)
|
|
263
|
3337
|
12134
-
12201
|
Block
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.PointDecompositionCandidate.<init>
|
|
new GeohashUtils.this.PointDecompositionCandidate(gh, point, targetArea, resolutions)
|
|
265
|
3338
|
12296
-
12396
|
Throw
|
<nosymbol>
|
|
throw new scala.`package`.Exception(scala.StringContext.apply("Unsupported Geometry type for decomposition: ", "").s(targetGeom.getClass().getName()))
|
|
265
|
3339
|
12296
-
12396
|
Block
|
<nosymbol>
|
|
throw new scala.`package`.Exception(scala.StringContext.apply("Unsupported Geometry type for decomposition: ", "").s(targetGeom.getClass().getName()))
|
|
272
|
3340
|
12612
-
12637
|
Apply
|
scala.Int.>
|
|
candidates.size.>(maxSize)
|
|
272
|
3341
|
12639
-
12693
|
Throw
|
<nosymbol>
|
|
throw new scala.`package`.Exception("Too many candidates upon entry.")
|
|
272
|
3342
|
12639
-
12693
|
Block
|
<nosymbol>
|
|
throw new scala.`package`.Exception("Too many candidates upon entry.")
|
|
273
|
3361
|
12705
-
13887
|
Block
|
<nosymbol>
|
|
{
val candidate: org.locationtech.geomesa.utils.geohash.GeohashUtils.DecompositionCandidate = candidates.apply(0);
val childResolution: Int = candidate.gh.prec.+(resolutions.numBitsIncrement);
val candidateBitSet: scala.collection.BitSet = candidate.gh.bitset;
val children: List[org.locationtech.geomesa.utils.geohash.GeohashUtils.DecompositionCandidate] = resolutions.getNextChildren(candidateBitSet, candidate.gh.prec).map[org.locationtech.geomesa.utils.geohash.GeohashUtils.DecompositionCandidate, List[org.locationtech.geomesa.utils.geohash.GeohashUtils.DecompositionCandidate]](((childBitSet: scala.collection.BitSet) => createDecompositionCandidate(GeoHash.apply(childBitSet, childResolution))))(immutable.this.List.canBuildFrom[org.locationtech.geomesa.utils.geohash.GeohashUtils.DecompositionCandidate]).filter(((child: org.locationtech.geomesa.utils.geohash.GeohashUtils.DecompositionCandidate) => child.intersectsTarget));
val newCandidates: List[org.locationtech.geomesa.utils.geohash.GeohashUtils.DecompositionCandidate] = candidates.tail.++[org.locationtech.geomesa.utils.geohash.GeohashUtils.DecompositionCandidate, List[org.locationtech.geomesa.utils.geohash.GeohashUtils.DecompositionCandidate]](children)(immutable.this.List.canBuildFrom[org.locationtech.geomesa.utils.geohash.GeohashUtils.DecompositionCandidate]).sortWith({
((a: org.locationtech.geomesa.utils.geohash.GeohashUtils.DecompositionCandidate, b: org.locationtech.geomesa.utils.geohash.GeohashUtils.DecompositionCandidate) => GeohashUtils.this.decompositionCandidateSorter(a, b))
});
if (newCandidates.size.<=(maxSize).&&(childResolution.<=(resolutions.maxBitsResolution)))
decomposeStep(newCandidates)
else
candidates
}
|
|
277
|
3343
|
13007
-
13020
|
Apply
|
scala.collection.LinearSeqOptimized.apply
|
|
candidates.apply(0)
|
|
278
|
3344
|
13075
-
13103
|
Select
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.ResolutionRange.numBitsIncrement
|
|
resolutions.numBitsIncrement
|
|
278
|
3345
|
13057
-
13103
|
Apply
|
scala.Int.+
|
|
candidate.gh.prec.+(resolutions.numBitsIncrement)
|
|
281
|
3346
|
13211
-
13230
|
Select
|
org.locationtech.geomesa.utils.geohash.GeoHash.bitset
|
|
candidate.gh.bitset
|
|
282
|
3347
|
13328
-
13345
|
Select
|
org.locationtech.geomesa.utils.geohash.GeoHash.prec
|
|
candidate.gh.prec
|
|
282
|
3350
|
13350
-
13350
|
TypeApply
|
scala.collection.immutable.List.canBuildFrom
|
|
immutable.this.List.canBuildFrom[org.locationtech.geomesa.utils.geohash.GeohashUtils.DecompositionCandidate]
|
|
283
|
3348
|
13409
-
13446
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeoHash.apply
|
|
GeoHash.apply(childBitSet, childResolution)
|
|
283
|
3349
|
13380
-
13447
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.createDecompositionCandidate
|
|
createDecompositionCandidate(GeoHash.apply(childBitSet, childResolution))
|
|
284
|
3351
|
13283
-
13498
|
Apply
|
scala.collection.TraversableLike.filter
|
|
resolutions.getNextChildren(candidateBitSet, candidate.gh.prec).map[org.locationtech.geomesa.utils.geohash.GeohashUtils.DecompositionCandidate, List[org.locationtech.geomesa.utils.geohash.GeohashUtils.DecompositionCandidate]](((childBitSet: scala.collection.BitSet) => createDecompositionCandidate(GeoHash.apply(childBitSet, childResolution))))(immutable.this.List.canBuildFrom[org.locationtech.geomesa.utils.geohash.GeohashUtils.DecompositionCandidate]).filter(((child: org.locationtech.geomesa.utils.geohash.GeohashUtils.DecompositionCandidate) => child.intersectsTarget))
|
|
287
|
3352
|
13626
-
13626
|
TypeApply
|
scala.collection.immutable.List.canBuildFrom
|
|
immutable.this.List.canBuildFrom[org.locationtech.geomesa.utils.geohash.GeohashUtils.DecompositionCandidate]
|
|
287
|
3353
|
13648
-
13676
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.decompositionCandidateSorter
|
|
GeohashUtils.this.decompositionCandidateSorter(a, b)
|
|
287
|
3354
|
13609
-
13677
|
Apply
|
scala.collection.SeqLike.sortWith
|
|
candidates.tail.++[org.locationtech.geomesa.utils.geohash.GeohashUtils.DecompositionCandidate, List[org.locationtech.geomesa.utils.geohash.GeohashUtils.DecompositionCandidate]](children)(immutable.this.List.canBuildFrom[org.locationtech.geomesa.utils.geohash.GeohashUtils.DecompositionCandidate]).sortWith({
((a: org.locationtech.geomesa.utils.geohash.GeohashUtils.DecompositionCandidate, b: org.locationtech.geomesa.utils.geohash.GeohashUtils.DecompositionCandidate) => GeohashUtils.this.decompositionCandidateSorter(a, b))
})
|
|
290
|
3355
|
13781
-
13810
|
Select
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.ResolutionRange.maxBitsResolution
|
|
resolutions.maxBitsResolution
|
|
290
|
3356
|
13762
-
13810
|
Apply
|
scala.Int.<=
|
|
childResolution.<=(resolutions.maxBitsResolution)
|
|
290
|
3357
|
13726
-
13811
|
Apply
|
scala.Boolean.&&
|
|
newCandidates.size.<=(maxSize).&&(childResolution.<=(resolutions.maxBitsResolution))
|
|
291
|
3358
|
13825
-
13853
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.decomposeStep
|
|
decomposeStep(newCandidates)
|
|
291
|
3359
|
13825
-
13853
|
Block
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.decomposeStep
|
|
decomposeStep(newCandidates)
|
|
292
|
3360
|
13869
-
13879
|
Ident
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.candidates
|
|
candidates
|
|
297
|
3362
|
13981
-
14031
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.getMinimumBoundingGeohash
|
|
GeohashUtils.this.getMinimumBoundingGeohash(targetGeom, resolutions)
|
|
298
|
3363
|
14055
-
14090
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.createDecompositionCandidate
|
|
createDecompositionCandidate(ghMBR)
|
|
301
|
3364
|
14198
-
14216
|
Apply
|
scala.collection.immutable.List.apply
|
|
scala.collection.immutable.List.apply[org.locationtech.geomesa.utils.geohash.GeohashUtils.DecompositionCandidate](candidateMBR)
|
|
301
|
3365
|
14184
-
14217
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.decomposeStep
|
|
decomposeStep(scala.collection.immutable.List.apply[org.locationtech.geomesa.utils.geohash.GeohashUtils.DecompositionCandidate](candidateMBR))
|
|
304
|
3366
|
14308
-
14317
|
Select
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.DecompositionCandidate.gh
|
|
keeper.gh
|
|
304
|
3367
|
14290
-
14290
|
TypeApply
|
scala.collection.immutable.List.canBuildFrom
|
|
immutable.this.List.canBuildFrom[org.locationtech.geomesa.utils.geohash.GeoHash]
|
|
304
|
3368
|
14254
-
14325
|
Select
|
scala.collection.immutable.List.toList
|
|
keepers.withFilter(((check$ifrefutable$1: org.locationtech.geomesa.utils.geohash.GeohashUtils.DecompositionCandidate) => (check$ifrefutable$1: org.locationtech.geomesa.utils.geohash.GeohashUtils.DecompositionCandidate @unchecked) match {
case (keeper @ (_: org.locationtech.geomesa.utils.geohash.GeohashUtils.DecompositionCandidate)) => true
case _ => false
})).map[org.locationtech.geomesa.utils.geohash.GeoHash, List[org.locationtech.geomesa.utils.geohash.GeoHash]](((keeper: org.locationtech.geomesa.utils.geohash.GeohashUtils.DecompositionCandidate) => keeper.gh))(immutable.this.List.canBuildFrom[org.locationtech.geomesa.utils.geohash.GeoHash]).toList
|
|
308
|
3369
|
14478
-
14488
|
Ident
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.targetGeom
|
|
targetGeom
|
|
309
|
3370
|
14553
-
14563
|
Ident
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.targetGeom
|
|
targetGeom
|
|
310
|
3371
|
14595
-
14624
|
Apply
|
scala.Int.<
|
|
targetGeom.getNumPoints().<(100)
|
|
310
|
3372
|
14628
-
14638
|
Ident
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.targetGeom
|
|
targetGeom
|
|
311
|
3373
|
14670
-
14699
|
Apply
|
scala.Int.<
|
|
targetGeom.getNumPoints().<(100)
|
|
311
|
3374
|
14703
-
14713
|
Ident
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.targetGeom
|
|
targetGeom
|
|
312
|
3375
|
14778
-
14799
|
Apply
|
org.locationtech.jts.geom.Geometry.convexHull
|
|
targetGeom.convexHull()
|
|
312
|
3376
|
14778
-
14799
|
Block
|
org.locationtech.jts.geom.Geometry.convexHull
|
|
targetGeom.convexHull()
|
|
327
|
3377
|
15617
-
15636
|
Apply
|
scala.Double./
|
|
lon.+(180)./(360.0)
|
|
327
|
3378
|
15646
-
15650
|
Literal
|
<nosymbol>
|
|
-360
|
|
327
|
3379
|
15615
-
15657
|
Select
|
scala.Int.toDouble
|
|
scala.Predef.doubleWrapper(lon.+(180)./(360.0)).floor.*(-360).toInt.toDouble
|
|
330
|
3380
|
15770
-
15777
|
Select
|
org.locationtech.jts.geom.Coordinate.x
|
|
coord.x
|
|
330
|
3381
|
15748
-
15778
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.degreesLonTranslation
|
|
degreesLonTranslation(coord.x)
|
|
330
|
3382
|
15738
-
15778
|
Apply
|
scala.Double.+
|
|
coord.x.+(degreesLonTranslation(coord.x))
|
|
330
|
3383
|
15780
-
15787
|
Select
|
org.locationtech.jts.geom.Coordinate.y
|
|
coord.y
|
|
330
|
3384
|
15723
-
15788
|
Apply
|
org.locationtech.jts.geom.Coordinate.<init>
|
|
new org.locationtech.jts.geom.Coordinate(coord.x.+(degreesLonTranslation(coord.x)), coord.y)
|
|
334
|
3385
|
15896
-
15919
|
Apply
|
org.locationtech.jts.geom.Geometry.getCoordinates
|
|
geometry.getCoordinates()
|
|
334
|
3386
|
15929
-
15946
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.translateCoord
|
|
translateCoord(c)
|
|
334
|
3387
|
15923
-
15923
|
ApplyToImplicitArgs
|
scala.Array.canBuildFrom
|
|
scala.this.Array.canBuildFrom[org.locationtech.jts.geom.Coordinate]((ClassTag.apply[org.locationtech.jts.geom.Coordinate](classOf[org.locationtech.jts.geom.Coordinate]): scala.reflect.ClassTag[org.locationtech.jts.geom.Coordinate]))
|
|
334
|
3388
|
15896
-
15947
|
ApplyToImplicitArgs
|
scala.collection.TraversableLike.map
|
|
scala.Predef.refArrayOps[org.locationtech.jts.geom.Coordinate](geometry.getCoordinates()).map[org.locationtech.jts.geom.Coordinate, Array[org.locationtech.jts.geom.Coordinate]](((c: org.locationtech.jts.geom.Coordinate) => translateCoord(c)))(scala.this.Array.canBuildFrom[org.locationtech.jts.geom.Coordinate]((ClassTag.apply[org.locationtech.jts.geom.Coordinate](classOf[org.locationtech.jts.geom.Coordinate]): scala.reflect.ClassTag[org.locationtech.jts.geom.Coordinate])))
|
|
334
|
3389
|
15859
-
15948
|
Apply
|
org.locationtech.jts.geom.GeometryFactory.createPolygon
|
|
GeohashUtils.this.defaultGeometryFactory.createPolygon(scala.Predef.refArrayOps[org.locationtech.jts.geom.Coordinate](geometry.getCoordinates()).map[org.locationtech.jts.geom.Coordinate, Array[org.locationtech.jts.geom.Coordinate]](((c: org.locationtech.jts.geom.Coordinate) => translateCoord(c)))(scala.this.Array.canBuildFrom[org.locationtech.jts.geom.Coordinate]((ClassTag.apply[org.locationtech.jts.geom.Coordinate](classOf[org.locationtech.jts.geom.Coordinate]): scala.reflect.ClassTag[org.locationtech.jts.geom.Coordinate]))))
|
|
337
|
3390
|
16056
-
16079
|
Apply
|
org.locationtech.jts.geom.Geometry.getCoordinates
|
|
geometry.getCoordinates()
|
|
337
|
3391
|
16089
-
16106
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.translateCoord
|
|
translateCoord(c)
|
|
337
|
3392
|
16083
-
16083
|
ApplyToImplicitArgs
|
scala.Array.canBuildFrom
|
|
scala.this.Array.canBuildFrom[org.locationtech.jts.geom.Coordinate]((ClassTag.apply[org.locationtech.jts.geom.Coordinate](classOf[org.locationtech.jts.geom.Coordinate]): scala.reflect.ClassTag[org.locationtech.jts.geom.Coordinate]))
|
|
337
|
3393
|
16056
-
16107
|
ApplyToImplicitArgs
|
scala.collection.TraversableLike.map
|
|
scala.Predef.refArrayOps[org.locationtech.jts.geom.Coordinate](geometry.getCoordinates()).map[org.locationtech.jts.geom.Coordinate, Array[org.locationtech.jts.geom.Coordinate]](((c: org.locationtech.jts.geom.Coordinate) => translateCoord(c)))(scala.this.Array.canBuildFrom[org.locationtech.jts.geom.Coordinate]((ClassTag.apply[org.locationtech.jts.geom.Coordinate](classOf[org.locationtech.jts.geom.Coordinate]): scala.reflect.ClassTag[org.locationtech.jts.geom.Coordinate])))
|
|
337
|
3394
|
16016
-
16108
|
Apply
|
org.locationtech.jts.geom.GeometryFactory.createLineString
|
|
GeohashUtils.this.defaultGeometryFactory.createLineString(scala.Predef.refArrayOps[org.locationtech.jts.geom.Coordinate](geometry.getCoordinates()).map[org.locationtech.jts.geom.Coordinate, Array[org.locationtech.jts.geom.Coordinate]](((c: org.locationtech.jts.geom.Coordinate) => translateCoord(c)))(scala.this.Array.canBuildFrom[org.locationtech.jts.geom.Coordinate]((ClassTag.apply[org.locationtech.jts.geom.Coordinate](classOf[org.locationtech.jts.geom.Coordinate]): scala.reflect.ClassTag[org.locationtech.jts.geom.Coordinate]))))
|
|
340
|
3395
|
16197
-
16198
|
Literal
|
<nosymbol>
|
|
0
|
|
340
|
3396
|
16205
-
16230
|
Apply
|
org.locationtech.jts.geom.Geometry.getNumGeometries
|
|
geometry.getNumGeometries()
|
|
340
|
3397
|
16243
-
16267
|
Apply
|
org.locationtech.jts.geom.Geometry.getGeometryN
|
|
geometry.getGeometryN(i)
|
|
340
|
3398
|
16236
-
16236
|
TypeApply
|
scala.collection.immutable.IndexedSeq.canBuildFrom
|
|
immutable.this.IndexedSeq.canBuildFrom[org.locationtech.jts.geom.Geometry]
|
|
340
|
3399
|
16196
-
16269
|
ApplyToImplicitArgs
|
scala.collection.TraversableLike.map
|
|
scala.Predef.intWrapper(0).until(geometry.getNumGeometries()).map[org.locationtech.jts.geom.Geometry, scala.collection.immutable.IndexedSeq[org.locationtech.jts.geom.Geometry]](((i: Int) => geometry.getGeometryN(i)))(immutable.this.IndexedSeq.canBuildFrom[org.locationtech.jts.geom.Geometry])
|
|
341
|
3400
|
16311
-
16358
|
TypeApply
|
scala.Any.asInstanceOf
|
|
translateLineString(c).asInstanceOf[org.locationtech.jts.geom.LineString]
|
|
341
|
3401
|
16304
-
16304
|
TypeApply
|
scala.collection.immutable.IndexedSeq.canBuildFrom
|
|
immutable.this.IndexedSeq.canBuildFrom[org.locationtech.jts.geom.LineString]
|
|
341
|
3402
|
16293
-
16360
|
ApplyToImplicitArgs
|
scala.collection.TraversableLike.map
|
|
coords.map[org.locationtech.jts.geom.LineString, scala.collection.immutable.IndexedSeq[org.locationtech.jts.geom.LineString]](((c: org.locationtech.jts.geom.Geometry) => translateLineString(c).asInstanceOf[org.locationtech.jts.geom.LineString]))(immutable.this.IndexedSeq.canBuildFrom[org.locationtech.jts.geom.LineString])
|
|
342
|
3403
|
16412
-
16430
|
ApplyToImplicitArgs
|
scala.collection.TraversableOnce.toArray
|
|
translated.toArray[org.locationtech.jts.geom.LineString]((ClassTag.apply[org.locationtech.jts.geom.LineString](classOf[org.locationtech.jts.geom.LineString]): scala.reflect.ClassTag[org.locationtech.jts.geom.LineString]))
|
|
342
|
3404
|
16367
-
16431
|
Apply
|
org.locationtech.jts.geom.GeometryFactory.createMultiLineString
|
|
GeohashUtils.this.defaultGeometryFactory.createMultiLineString(translated.toArray[org.locationtech.jts.geom.LineString]((ClassTag.apply[org.locationtech.jts.geom.LineString](classOf[org.locationtech.jts.geom.LineString]): scala.reflect.ClassTag[org.locationtech.jts.geom.LineString])))
|
|
346
|
3405
|
16523
-
16524
|
Literal
|
<nosymbol>
|
|
0
|
|
346
|
3406
|
16531
-
16556
|
Apply
|
org.locationtech.jts.geom.Geometry.getNumGeometries
|
|
geometry.getNumGeometries()
|
|
346
|
3407
|
16569
-
16593
|
Apply
|
org.locationtech.jts.geom.Geometry.getGeometryN
|
|
geometry.getGeometryN(i)
|
|
346
|
3408
|
16562
-
16562
|
TypeApply
|
scala.collection.immutable.IndexedSeq.canBuildFrom
|
|
immutable.this.IndexedSeq.canBuildFrom[org.locationtech.jts.geom.Geometry]
|
|
346
|
3409
|
16522
-
16595
|
ApplyToImplicitArgs
|
scala.collection.TraversableLike.map
|
|
scala.Predef.intWrapper(0).until(geometry.getNumGeometries()).map[org.locationtech.jts.geom.Geometry, scala.collection.immutable.IndexedSeq[org.locationtech.jts.geom.Geometry]](((i: Int) => geometry.getGeometryN(i)))(immutable.this.IndexedSeq.canBuildFrom[org.locationtech.jts.geom.Geometry])
|
|
347
|
3410
|
16637
-
16678
|
TypeApply
|
scala.Any.asInstanceOf
|
|
translatePolygon(c).asInstanceOf[org.locationtech.jts.geom.Polygon]
|
|
347
|
3411
|
16630
-
16630
|
TypeApply
|
scala.collection.immutable.IndexedSeq.canBuildFrom
|
|
immutable.this.IndexedSeq.canBuildFrom[org.locationtech.jts.geom.Polygon]
|
|
347
|
3412
|
16619
-
16680
|
ApplyToImplicitArgs
|
scala.collection.TraversableLike.map
|
|
coords.map[org.locationtech.jts.geom.Polygon, scala.collection.immutable.IndexedSeq[org.locationtech.jts.geom.Polygon]](((c: org.locationtech.jts.geom.Geometry) => translatePolygon(c).asInstanceOf[org.locationtech.jts.geom.Polygon]))(immutable.this.IndexedSeq.canBuildFrom[org.locationtech.jts.geom.Polygon])
|
|
348
|
3413
|
16729
-
16747
|
ApplyToImplicitArgs
|
scala.collection.TraversableOnce.toArray
|
|
translated.toArray[org.locationtech.jts.geom.Polygon]((ClassTag.apply[org.locationtech.jts.geom.Polygon](classOf[org.locationtech.jts.geom.Polygon]): scala.reflect.ClassTag[org.locationtech.jts.geom.Polygon]))
|
|
348
|
3414
|
16687
-
16748
|
Apply
|
org.locationtech.jts.geom.GeometryFactory.createMultiPolygon
|
|
GeohashUtils.this.defaultGeometryFactory.createMultiPolygon(translated.toArray[org.locationtech.jts.geom.Polygon]((ClassTag.apply[org.locationtech.jts.geom.Polygon](classOf[org.locationtech.jts.geom.Polygon]): scala.reflect.ClassTag[org.locationtech.jts.geom.Polygon])))
|
|
352
|
3415
|
16862
-
16885
|
Apply
|
org.locationtech.jts.geom.Geometry.getCoordinates
|
|
geometry.getCoordinates()
|
|
352
|
3416
|
16895
-
16912
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.translateCoord
|
|
translateCoord(c)
|
|
352
|
3417
|
16889
-
16889
|
ApplyToImplicitArgs
|
scala.Array.canBuildFrom
|
|
scala.this.Array.canBuildFrom[org.locationtech.jts.geom.Coordinate]((ClassTag.apply[org.locationtech.jts.geom.Coordinate](classOf[org.locationtech.jts.geom.Coordinate]): scala.reflect.ClassTag[org.locationtech.jts.geom.Coordinate]))
|
|
352
|
3418
|
16862
-
16913
|
ApplyToImplicitArgs
|
scala.collection.TraversableLike.map
|
|
scala.Predef.refArrayOps[org.locationtech.jts.geom.Coordinate](geometry.getCoordinates()).map[org.locationtech.jts.geom.Coordinate, Array[org.locationtech.jts.geom.Coordinate]](((c: org.locationtech.jts.geom.Coordinate) => translateCoord(c)))(scala.this.Array.canBuildFrom[org.locationtech.jts.geom.Coordinate]((ClassTag.apply[org.locationtech.jts.geom.Coordinate](classOf[org.locationtech.jts.geom.Coordinate]): scala.reflect.ClassTag[org.locationtech.jts.geom.Coordinate])))
|
|
352
|
3419
|
16822
-
16914
|
Apply
|
org.locationtech.jts.geom.GeometryFactory.createMultiPoint
|
|
GeohashUtils.this.defaultGeometryFactory.createMultiPoint(scala.Predef.refArrayOps[org.locationtech.jts.geom.Coordinate](geometry.getCoordinates()).map[org.locationtech.jts.geom.Coordinate, Array[org.locationtech.jts.geom.Coordinate]](((c: org.locationtech.jts.geom.Coordinate) => translateCoord(c)))(scala.this.Array.canBuildFrom[org.locationtech.jts.geom.Coordinate]((ClassTag.apply[org.locationtech.jts.geom.Coordinate](classOf[org.locationtech.jts.geom.Coordinate]): scala.reflect.ClassTag[org.locationtech.jts.geom.Coordinate]))))
|
|
355
|
3420
|
17029
-
17051
|
Apply
|
org.locationtech.jts.geom.Geometry.getCoordinate
|
|
geometry.getCoordinate()
|
|
355
|
3421
|
17014
-
17052
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.translateCoord
|
|
translateCoord(geometry.getCoordinate())
|
|
355
|
3422
|
16979
-
17053
|
Apply
|
org.locationtech.jts.geom.GeometryFactory.createPoint
|
|
GeohashUtils.this.defaultGeometryFactory.createPoint(translateCoord(geometry.getCoordinate()))
|
|
360
|
3423
|
17180
-
17206
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.translatePolygon
|
|
translatePolygon(geometry)
|
|
360
|
3424
|
17180
-
17206
|
Block
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.translatePolygon
|
|
translatePolygon(geometry)
|
|
361
|
3425
|
17243
-
17272
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.translateLineString
|
|
translateLineString(geometry)
|
|
361
|
3426
|
17243
-
17272
|
Block
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.translateLineString
|
|
translateLineString(geometry)
|
|
362
|
3427
|
17309
-
17343
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.translateMultiLineString
|
|
translateMultiLineString(geometry)
|
|
362
|
3428
|
17309
-
17343
|
Block
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.translateMultiLineString
|
|
translateMultiLineString(geometry)
|
|
363
|
3429
|
17380
-
17411
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.translateMultiPolygon
|
|
translateMultiPolygon(geometry)
|
|
363
|
3430
|
17380
-
17411
|
Block
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.translateMultiPolygon
|
|
translateMultiPolygon(geometry)
|
|
364
|
3431
|
17448
-
17477
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.translateMultiPoint
|
|
translateMultiPoint(geometry)
|
|
364
|
3432
|
17448
-
17477
|
Block
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.translateMultiPoint
|
|
translateMultiPoint(geometry)
|
|
365
|
3433
|
17514
-
17538
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.translatePoint
|
|
translatePoint(geometry)
|
|
365
|
3434
|
17514
-
17538
|
Block
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.translatePoint
|
|
translatePoint(geometry)
|
|
369
|
3443
|
17558
-
18075
|
Apply
|
scala.util.Try.apply
|
|
scala.util.Try.apply[org.locationtech.jts.geom.Geometry]({
val copy: org.locationtech.jts.geom.Geometry = org.locationtech.geomesa.utils.geotools.GeometryUtils.geoFactory.createGeometry(targetGeom);
val withinBoundsGeom: org.locationtech.jts.geom.Geometry = if (targetGeom.getEnvelopeInternal().getMinX().<(-180).||(targetGeom.getEnvelopeInternal().getMaxX().>(180)))
translateGeometry(copy)
else
copy;
org.locationtech.spatial4j.context.jts.JtsSpatialContext.GEO.makeShape(withinBoundsGeom, true, true).getGeom()
})
|
|
372
|
3435
|
17743
-
17794
|
Apply
|
org.locationtech.jts.geom.GeometryFactory.createGeometry
|
|
org.locationtech.geomesa.utils.geotools.GeometryUtils.geoFactory.createGeometry(targetGeom)
|
|
374
|
3436
|
17877
-
17881
|
Literal
|
<nosymbol>
|
|
-180
|
|
374
|
3437
|
17885
-
17929
|
Apply
|
scala.Double.>
|
|
targetGeom.getEnvelopeInternal().getMaxX().>(180)
|
|
374
|
3438
|
17836
-
17929
|
Apply
|
scala.Boolean.||
|
|
targetGeom.getEnvelopeInternal().getMinX().<(-180).||(targetGeom.getEnvelopeInternal().getMaxX().>(180))
|
|
375
|
3439
|
17941
-
17964
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.translateGeometry
|
|
translateGeometry(copy)
|
|
375
|
3440
|
17941
-
17964
|
Block
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.translateGeometry
|
|
translateGeometry(copy)
|
|
377
|
3441
|
17988
-
17992
|
Ident
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.copy
|
|
copy
|
|
379
|
3442
|
18000
-
18069
|
Apply
|
org.locationtech.spatial4j.shape.jts.JtsGeometry.getGeom
|
|
org.locationtech.spatial4j.context.jts.JtsSpatialContext.GEO.makeShape(withinBoundsGeom, true, true).getGeom()
|
|
393
|
3444
|
18549
-
18559
|
Apply
|
org.locationtech.jts.geom.Point.getX
|
|
point.getX()
|
|
393
|
3445
|
18561
-
18571
|
Apply
|
org.locationtech.jts.geom.Point.getY
|
|
point.getY()
|
|
393
|
3446
|
18573
-
18602
|
Select
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.ResolutionRange.maxBitsResolution
|
|
resolutions.maxBitsResolution
|
|
393
|
3447
|
18541
-
18603
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeoHash.apply
|
|
GeoHash.apply(point.getX(), point.getY(), resolutions.maxBitsResolution)
|
|
393
|
3448
|
18536
-
18604
|
Apply
|
scala.collection.immutable.List.apply
|
|
scala.collection.immutable.List.apply[org.locationtech.geomesa.utils.geohash.GeoHash](GeoHash.apply(point.getX(), point.getY(), resolutions.maxBitsResolution))
|
|
393
|
3449
|
18536
-
18604
|
Block
|
scala.collection.immutable.List.apply
|
|
scala.collection.immutable.List.apply[org.locationtech.geomesa.utils.geohash.GeoHash](GeoHash.apply(point.getX(), point.getY(), resolutions.maxBitsResolution))
|
|
394
|
3450
|
18643
-
18644
|
Literal
|
<nosymbol>
|
|
0
|
|
394
|
3451
|
18651
-
18670
|
Apply
|
org.locationtech.jts.geom.GeometryCollection.getNumGeometries
|
|
gc.getNumGeometries()
|
|
394
|
3454
|
18687
-
18687
|
TypeApply
|
scala.collection.immutable.List.canBuildFrom
|
|
immutable.this.List.canBuildFrom[org.locationtech.geomesa.utils.geohash.GeoHash]
|
|
395
|
3452
|
18720
-
18738
|
Apply
|
org.locationtech.jts.geom.GeometryCollection.getGeometryN
|
|
gc.getGeometryN(i)
|
|
395
|
3453
|
18702
-
18771
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.decomposeGeometry
|
|
GeohashUtils.this.decomposeGeometry(gc.getGeometryN(i), maxSize, resolutions, relaxFit)
|
|
396
|
3455
|
18642
-
18788
|
Select
|
scala.collection.SeqLike.distinct
|
|
scala.Predef.intWrapper(0).until(gc.getNumGeometries()).toList.flatMap[org.locationtech.geomesa.utils.geohash.GeoHash, List[org.locationtech.geomesa.utils.geohash.GeoHash]](((i: Int) => GeohashUtils.this.decomposeGeometry(gc.getGeometryN(i), maxSize, resolutions, relaxFit)))(immutable.this.List.canBuildFrom[org.locationtech.geomesa.utils.geohash.GeoHash]).distinct
|
|
396
|
3456
|
18642
-
18788
|
Block
|
scala.collection.SeqLike.distinct
|
|
scala.Predef.intWrapper(0).until(gc.getNumGeometries()).toList.flatMap[org.locationtech.geomesa.utils.geohash.GeoHash, List[org.locationtech.geomesa.utils.geohash.GeoHash]](((i: Int) => GeohashUtils.this.decomposeGeometry(gc.getGeometryN(i), maxSize, resolutions, relaxFit)))(immutable.this.List.canBuildFrom[org.locationtech.geomesa.utils.geohash.GeoHash]).distinct
|
|
397
|
3462
|
18802
-
19031
|
Block
|
<nosymbol>
|
|
{
val safeGeom: org.locationtech.jts.geom.Geometry = GeohashUtils.this.getInternationalDateLineSafeGeometry(targetGeom).getOrElse[org.locationtech.jts.geom.Geometry](targetGeom);
GeohashUtils.this.decomposeGeometry_(if (relaxFit)
GeohashUtils.this.getDecomposableGeometry(safeGeom)
else
safeGeom, maxSize, resolutions)
}
|
|
398
|
3457
|
18828
-
18898
|
Apply
|
scala.util.Try.getOrElse
|
|
GeohashUtils.this.getInternationalDateLineSafeGeometry(targetGeom).getOrElse[org.locationtech.jts.geom.Geometry](targetGeom)
|
|
399
|
3461
|
18907
-
19031
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.decomposeGeometry_
|
|
GeohashUtils.this.decomposeGeometry_(if (relaxFit)
GeohashUtils.this.getDecomposableGeometry(safeGeom)
else
safeGeom, maxSize, resolutions)
|
|
400
|
3458
|
18951
-
18984
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.getDecomposableGeometry
|
|
GeohashUtils.this.getDecomposableGeometry(safeGeom)
|
|
400
|
3459
|
18951
-
18984
|
Block
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.getDecomposableGeometry
|
|
GeohashUtils.this.getDecomposableGeometry(safeGeom)
|
|
401
|
3460
|
19000
-
19008
|
Ident
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.safeGeom
|
|
safeGeom
|
|
427
|
3463
|
19994
-
20035
|
Apply
|
scala.Option.getOrElse
|
|
set.headOption.map[Int](((x$1: String) => x$1.length())).getOrElse[Int](0)
|
|
429
|
3464
|
20059
-
20060
|
Literal
|
<nosymbol>
|
|
0
|
|
430
|
3465
|
20100
-
20109
|
Apply
|
scala.collection.IndexedSeqOptimized.take
|
|
scala.Predef.augmentString(x$2).take(i)
|
|
430
|
3466
|
20099
-
20099
|
TypeApply
|
scala.collection.Seq.canBuildFrom
|
|
collection.this.Seq.canBuildFrom[String]
|
|
430
|
3473
|
20084
-
20084
|
Apply
|
scala.Tuple2.apply
|
|
scala.Tuple2.apply[String, String](hash, newStr)
|
|
430
|
3474
|
20089
-
20089
|
TypeApply
|
scala.collection.Seq.canBuildFrom
|
|
collection.this.Seq.canBuildFrom[(String, String)]
|
|
430
|
3476
|
20089
-
20089
|
TypeApply
|
scala.collection.Seq.canBuildFrom
|
|
collection.this.Seq.canBuildFrom[String]
|
|
430
|
3477
|
20084
-
20200
|
ApplyToImplicitArgs
|
scala.collection.TraversableLike.map
|
|
set.map[String, Seq[String]](((x$2: String) => scala.Predef.augmentString(x$2).take(i)))(collection.this.Seq.canBuildFrom[String]).distinct.map[(String, String), Seq[(String, String)]](((hash: String) => {
val newStr: String = scala.Predef.augmentString(hash).take(i).+(scala.Predef.augmentString("").padTo[Any, scala.collection.immutable.IndexedSeq[Any]](len.-(i), ".")(scala.Predef.fallbackStringCanBuildFrom[Any]).mkString);
scala.Tuple2.apply[String, String](hash, newStr)
}))(collection.this.Seq.canBuildFrom[(String, String)]).map[String, Seq[String]](((x$3: (String, String)) => (x$3: (String, String) @unchecked) match {
case (_1: String, _2: String)(String, String)((hash @ _), (newStr @ _)) => newStr
}))(collection.this.Seq.canBuildFrom[String])
|
|
431
|
3467
|
20150
-
20152
|
Literal
|
<nosymbol>
|
|
""
|
|
431
|
3468
|
20159
-
20166
|
Apply
|
scala.Int.-
|
|
len.-(i)
|
|
431
|
3469
|
20168
-
20171
|
Literal
|
<nosymbol>
|
|
"."
|
|
431
|
3470
|
20158
-
20158
|
TypeApply
|
scala.LowPriorityImplicits.fallbackStringCanBuildFrom
|
|
scala.Predef.fallbackStringCanBuildFrom[Any]
|
|
431
|
3471
|
20150
-
20181
|
Select
|
scala.collection.TraversableOnce.mkString
|
|
scala.Predef.augmentString("").padTo[Any, scala.collection.immutable.IndexedSeq[Any]](len.-(i), ".")(scala.Predef.fallbackStringCanBuildFrom[Any]).mkString
|
|
431
|
3472
|
20135
-
20181
|
Apply
|
java.lang.String.+
|
|
scala.Predef.augmentString(hash).take(i).+(scala.Predef.augmentString("").padTo[Any, scala.collection.immutable.IndexedSeq[Any]](len.-(i), ".")(scala.Predef.fallbackStringCanBuildFrom[Any]).mkString)
|
|
432
|
3475
|
20194
-
20200
|
Ident
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.newStr
|
|
newStr
|
|
432
|
3478
|
20207
-
20218
|
Apply
|
scala.Int.+
|
|
maxSize.+(1)
|
|
432
|
3479
|
20040
-
20219
|
Apply
|
scala.collection.Iterator.take
|
|
scala.Predef.intWrapper(0).to(len).iterator.flatMap[String](((i: Int) => set.map[String, Seq[String]](((x$2: String) => scala.Predef.augmentString(x$2).take(i)))(collection.this.Seq.canBuildFrom[String]).distinct.map[(String, String), Seq[(String, String)]](((hash: String) => {
val newStr: String = scala.Predef.augmentString(hash).take(i).+(scala.Predef.augmentString("").padTo[Any, scala.collection.immutable.IndexedSeq[Any]](len.-(i), ".")(scala.Predef.fallbackStringCanBuildFrom[Any]).mkString);
scala.Tuple2.apply[String, String](hash, newStr)
}))(collection.this.Seq.canBuildFrom[(String, String)]).map[String, Seq[String]](((x$3: (String, String)) => (x$3: (String, String) @unchecked) match {
case (_1: String, _2: String)(String, String)((hash @ _), (newStr @ _)) => newStr
}))(collection.this.Seq.canBuildFrom[String]))).take(maxSize.+(1))
|
|
437
|
3480
|
20317
-
20331
|
Apply
|
org.locationtech.jts.geom.Geometry.buffer
|
|
g.buffer(1.0E-6)
|
|
437
|
3481
|
20317
-
20331
|
Block
|
org.locationtech.jts.geom.Geometry.buffer
|
|
g.buffer(1.0E-6)
|
|
439
|
3482
|
20365
-
20380
|
Apply
|
scala.Double.>
|
|
g.getArea().>(0.0)
|
|
439
|
3483
|
20382
-
20383
|
Ident
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.g
|
|
g
|
|
439
|
3486
|
20361
-
20424
|
If
|
<nosymbol>
|
|
if (g.getArea().>(0.0))
g
else
org.locationtech.geomesa.utils.geotools.Conversions.RichGeometry(g).safeCentroid().buffer(1.0E-6)
|
|
440
|
3484
|
20395
-
20424
|
Apply
|
org.locationtech.jts.geom.Geometry.buffer
|
|
org.locationtech.geomesa.utils.geotools.Conversions.RichGeometry(g).safeCentroid().buffer(1.0E-6)
|
|
440
|
3485
|
20395
-
20424
|
Block
|
org.locationtech.jts.geom.Geometry.buffer
|
|
org.locationtech.geomesa.utils.geotools.Conversions.RichGeometry(g).safeCentroid().buffer(1.0E-6)
|
|
441
|
3492
|
20445
-
20550
|
Block
|
<nosymbol>
|
|
{
val env: org.locationtech.jts.geom.Geometry = g.getEnvelope();
if (env.getArea().>(0.0))
env
else
env.getCentroid().buffer(1.0E-6)
}
|
|
442
|
3487
|
20464
-
20477
|
Apply
|
org.locationtech.jts.geom.Geometry.getEnvelope
|
|
g.getEnvelope()
|
|
443
|
3488
|
20488
-
20505
|
Apply
|
scala.Double.>
|
|
env.getArea().>(0.0)
|
|
443
|
3489
|
20507
-
20510
|
Ident
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.env
|
|
env
|
|
444
|
3490
|
20522
-
20550
|
Apply
|
org.locationtech.jts.geom.Geometry.buffer
|
|
env.getCentroid().buffer(1.0E-6)
|
|
444
|
3491
|
20522
-
20550
|
Block
|
org.locationtech.jts.geom.Geometry.buffer
|
|
env.getCentroid().buffer(1.0E-6)
|
|
498
|
3631
|
23500
-
29720
|
Apply
|
scala.util.Try.apply
|
|
scala.util.Try.apply[Seq[String]]({
val cover: org.locationtech.jts.geom.Geometry = GeohashUtils.this.promoteToRegion(geom);
val maxBits: Int = offset.+(length).*(5);
val minBits: Int = offset.*(5);
val usedBits: Int = length.*(5);
val allResolutions: org.locationtech.geomesa.utils.geohash.GeohashUtils.ResolutionRange = GeohashUtils.this.ResolutionRange.apply(0, java.lang.Math.min(35, maxBits), 1);
val maxKeys: Int = java.lang.Math.min(2.<<(java.lang.Math.min(usedBits, 29)), MAX_KEYS_IN_LIST);
val polyCentroid: org.locationtech.jts.geom.Point = org.locationtech.geomesa.utils.geotools.Conversions.RichGeometry(cover).safeCentroid();
val ghMBR: org.locationtech.geomesa.utils.geohash.GeoHash = GeohashUtils.this.getMinimumBoundingGeohash(geom, allResolutions);
case class BitPrefixes extends AnyRef with Product with Serializable {
<caseaccessor> <paramaccessor> private[this] val prefixes: Seq[String] = _;
<stable> <caseaccessor> <accessor> <paramaccessor> def prefixes: Seq[String] = BitPrefixes.this.prefixes;
def <init>(prefixes: Seq[String]): BitPrefixes = {
BitPrefixes.super.<init>();
()
};
private[this] val hasEverythingPrefix: Boolean = BitPrefixes.this.prefixes.exists(((prefix: String) => prefix.length().<=(minBits)));
<stable> <accessor> def hasEverythingPrefix: Boolean = BitPrefixes.this.hasEverythingPrefix;
private[this] val entailedSize: Int = if (BitPrefixes.this.hasEverythingPrefix)
maxKeys
else
java.lang.Math.min(1.<<(usedBits), BitPrefixes.this.prefixes.foldLeft[Int](0)(((sumSoFar: Int, prefix: String) => sumSoFar.+(1.<<(java.lang.Math.min(usedBits, maxBits.-(prefix.length())))))));
<stable> <accessor> def entailedSize: Int = BitPrefixes.this.entailedSize;
private[this] val usesAll: Boolean = BitPrefixes.this.prefixes.exists(((prefix: String) => prefix.length().<=(minBits))).||(BitPrefixes.this.entailedSize.==(maxKeys));
<stable> <accessor> def usesAll: Boolean = BitPrefixes.this.usesAll;
def hasRoom: Boolean = BitPrefixes.this.entailedSize.<=(maxKeys);
def notDone: Boolean = BitPrefixes.this.usesAll.unary_!.&&(BitPrefixes.this.hasRoom);
def overflowed: Boolean = if (BitPrefixes.this.usesAll)
1.<<(usedBits).>(maxKeys)
else
BitPrefixes.this.entailedSize.>(maxKeys);
def generateAll(prefix: String): Seq[String] = {
val prefixHash: String = GeoHash.fromBinaryString(prefix).hash;
if (prefixHash.length().<(length))
{
val charSeqs: List[Seq[Char]] = GeohashUtils.this.Base32Padding.apply(length.-(prefixHash.length()));
org.locationtech.geomesa.utils.iterators.CartesianProductIterable.apply(charSeqs).toList.map[String, Seq[String]](((x$4: Seq[_]) => prefixHash.+(x$4.mkString)))(immutable.this.List.canBuildFrom[String])
}
else
scala.collection.Seq.apply[String](prefixHash)
};
def generateSome: Seq[String] = BitPrefixes.this.prefixes.foldLeft[scala.collection.immutable.HashSet[String]](scala.collection.immutable.HashSet.apply[String]())(((ghsSoFar: scala.collection.immutable.HashSet[String], prefix: String) => {
val bitsToBoundary: Int = 65.-(prefix.length()).%(5);
val bases: Seq[String] = if (bitsToBoundary.==(0))
scala.collection.Seq.apply[String](prefix)
else
{
val fillers: List[Seq[Char]] = GeohashUtils.this.BinaryPadding.apply(bitsToBoundary);
val result: List[String] = org.locationtech.geomesa.utils.iterators.CartesianProductIterable.apply(fillers).toList.map[String, List[String]](((x$5: Seq[_]) => prefix.+(x$5.mkString)))(immutable.this.List.canBuildFrom[String]);
result
};
bases.foldLeft[scala.collection.immutable.HashSet[String]](ghsSoFar)(((ghs: scala.collection.immutable.HashSet[String], base: String) => {
val baseTrimmed: String = scala.Predef.augmentString(base).drop(minBits);
val newSubs: Seq[String] = BitPrefixes.this.generateAll(baseTrimmed);
ghs.++(newSubs)
}))
})).toSeq;
def toSeq: Seq[String] = if (BitPrefixes.this.usesAll)
BitPrefixes.this.generateAll("")
else
BitPrefixes.this.generateSome;
<synthetic> def copy(prefixes: Seq[String] = prefixes): BitPrefixes = new BitPrefixes(prefixes);
<synthetic> def copy$default$1: Seq[String] = BitPrefixes.this.prefixes;
override <synthetic> def productPrefix: String = "BitPrefixes";
<synthetic> def productArity: Int = 1;
<synthetic> def productElement(x$1: Int): Any = x$1 match {
case 0 => BitPrefixes.this.prefixes
case _ => throw new IndexOutOfBoundsException(x$1.toString())
};
override <synthetic> def productIterator: Iterator[Any] = scala.runtime.ScalaRunTime.typedProductIterator[Any](BitPrefixes.this);
<synthetic> def canEqual(x$1: Any): Boolean = x$1.$isInstanceOf[BitPrefixes]();
override <synthetic> def hashCode(): Int = scala.runtime.ScalaRunTime._hashCode(BitPrefixes.this);
override <synthetic> def toString(): String = scala.runtime.ScalaRunTime._toString(BitPrefixes.this);
override <synthetic> def equals(x$1: Any): Boolean = BitPrefixes.this.eq(x$1.asInstanceOf[Object]).||(x$1 match {
case (_: BitPrefixes) => true
case _ => false
}.&&({
<synthetic> val BitPrefixes$1: BitPrefixes = x$1.asInstanceOf[BitPrefixes];
BitPrefixes.this.prefixes.==(BitPrefixes$1.prefixes).&&(BitPrefixes$1.canEqual(BitPrefixes.this))
}))
};
<synthetic> object BitPrefixes extends scala.runtime.AbstractFunction1[Seq[String],BitPrefixes] with Serializable {
def <init>(): BitPrefixes.type = {
BitPrefixes.super.<init>();
()
};
final override <synthetic> def toString(): String = "BitPrefixes";
case <synthetic> def apply(prefixes: Seq[String]): BitPrefixes = new BitPrefixes(prefixes);
case <synthetic> def unapply(x$0: BitPrefixes): Option[Seq[String]] = if (x$0.==(null))
scala.None
else
Some.apply[Seq[String]](x$0.prefixes)
};
def considerCandidate(candidate: org.locationtech.geomesa.utils.geohash.GeoHash): Seq[String] = {
val bitString: String = candidate.toBinaryString;
if (geom.intersects(candidate.geom).unary_!)
return scala.collection.immutable.Nil
else
();
if (cover.covers(candidate.geom).||(scala.Predef.augmentString(bitString).size.==(maxBits)))
scala.collection.Seq.apply[String](bitString)
else
if (scala.Predef.augmentString(bitString).size.<(maxBits))
{
val gh0: org.locationtech.geomesa.utils.geohash.GeoHash = GeoHash.fromBinaryString(bitString.+("0"));
val gh1: org.locationtech.geomesa.utils.geohash.GeoHash = GeoHash.fromBinaryString(bitString.+("1"));
val d0: Double = java.lang.Math.hypot(gh0.getPoint.getX().-(polyCentroid.getX()), gh0.getPoint.getY().-(polyCentroid.getY()));
val d1: Double = java.lang.Math.hypot(gh1.getPoint.getX().-(polyCentroid.getX()), gh1.getPoint.getY().-(polyCentroid.getY()));
<synthetic> <artifact> private[this] val x$6: (org.locationtech.geomesa.utils.geohash.GeoHash, org.locationtech.geomesa.utils.geohash.GeoHash) = (if (d0.<=(d1))
scala.Tuple2.apply[org.locationtech.geomesa.utils.geohash.GeoHash, org.locationtech.geomesa.utils.geohash.GeoHash](gh0, gh1)
else
scala.Tuple2.apply[org.locationtech.geomesa.utils.geohash.GeoHash, org.locationtech.geomesa.utils.geohash.GeoHash](gh1, gh0): (org.locationtech.geomesa.utils.geohash.GeoHash, org.locationtech.geomesa.utils.geohash.GeoHash) @unchecked) match {
case (_1: org.locationtech.geomesa.utils.geohash.GeoHash, _2: org.locationtech.geomesa.utils.geohash.GeoHash)(org.locationtech.geomesa.utils.geohash.GeoHash, org.locationtech.geomesa.utils.geohash.GeoHash)((firstChild @ _), (secondChild @ _)) => scala.Tuple2.apply[org.locationtech.geomesa.utils.geohash.GeoHash, org.locationtech.geomesa.utils.geohash.GeoHash](firstChild, secondChild)
};
val firstChild: org.locationtech.geomesa.utils.geohash.GeoHash = x$6._1;
val secondChild: org.locationtech.geomesa.utils.geohash.GeoHash = x$6._2;
val firstChildList: Seq[String] = considerCandidate(firstChild);
firstChildList.++[String, Seq[String]](firstChildList.headOption match {
case (value: String)Some[String]((bitStr @ _)) if bitStr.length().<=(minBits) => scala.collection.immutable.Nil
case _ => considerCandidate(secondChild)
})(collection.this.Seq.canBuildFrom[String])
}
else
scala.collection.immutable.Nil
};
val bitPrefixes: BitPrefixes = BitPrefixes.apply(if (ghMBR.prec.<=(maxBits))
considerCandidate(ghMBR)
else
scala.collection.Seq.apply[String](scala.Predef.augmentString(scala.Predef.augmentString(ghMBR.toBinaryString).drop(minBits)).take(usedBits)));
if (bitPrefixes.overflowed)
throw new java.lang.IllegalStateException("Bit prefixes overflowed while calculating unique Geohash substrings in polygon using the following parameters: ".+(scala.StringContext.apply("\\nGeometry: ", " \\nOffset: ", " \\nLength: ", " \\nMax Keys in List: ", "").s(geom, offset, length, MAX_KEYS_IN_LIST)))
else
();
val unDotted: Seq[String] = bitPrefixes.toSeq;
if (includeDots)
if (unDotted.size.<(maxKeys))
{
val keepers: List[String] = GeohashUtils.this.getGeohashStringDottingIterator(unDotted, MAX_KEYS_IN_LIST).take(MAX_KEYS_IN_LIST.+(1)).toList;
if (keepers.size.<=(MAX_KEYS_IN_LIST))
keepers.toSeq
else
scala.collection.Seq.apply[Nothing]()
}
else
scala.collection.Seq.apply[Nothing]()
else
unDotted
})
|
|
500
|
3493
|
23523
-
23544
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.promoteToRegion
|
|
GeohashUtils.this.promoteToRegion(geom)
|
|
503
|
3494
|
23607
-
23628
|
Apply
|
scala.Int.*
|
|
offset.+(length).*(5)
|
|
504
|
3495
|
23647
-
23657
|
Apply
|
scala.Int.*
|
|
offset.*(5)
|
|
505
|
3496
|
23677
-
23687
|
Apply
|
scala.Int.*
|
|
length.*(5)
|
|
506
|
3497
|
23729
-
23730
|
Literal
|
<nosymbol>
|
|
0
|
|
506
|
3498
|
23732
-
23753
|
Apply
|
java.lang.Math.min
|
|
java.lang.Math.min(35, maxBits)
|
|
506
|
3499
|
23755
-
23756
|
Literal
|
<nosymbol>
|
|
1
|
|
506
|
3500
|
23713
-
23757
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.ResolutionRange.apply
|
|
GeohashUtils.this.ResolutionRange.apply(0, java.lang.Math.min(35, maxBits), 1)
|
|
507
|
3501
|
23785
-
23786
|
Literal
|
<nosymbol>
|
|
2
|
|
507
|
3502
|
23790
-
23812
|
Apply
|
java.lang.Math.min
|
|
java.lang.Math.min(usedBits, 29)
|
|
507
|
3503
|
23785
-
23812
|
Apply
|
scala.Int.<<
|
|
2.<<(java.lang.Math.min(usedBits, 29))
|
|
507
|
3504
|
23776
-
23831
|
Apply
|
java.lang.Math.min
|
|
java.lang.Math.min(2.<<(java.lang.Math.min(usedBits, 29)), MAX_KEYS_IN_LIST)
|
|
508
|
3505
|
23855
-
23875
|
Apply
|
org.locationtech.geomesa.utils.geotools.Conversions.RichGeometry.safeCentroid
|
|
org.locationtech.geomesa.utils.geotools.Conversions.RichGeometry(cover).safeCentroid()
|
|
511
|
3506
|
23966
-
24013
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.getMinimumBoundingGeohash
|
|
GeohashUtils.this.getMinimumBoundingGeohash(geom, allResolutions)
|
|
516
|
3507
|
24194
-
24218
|
Apply
|
scala.Int.<=
|
|
prefix.length().<=(minBits)
|
|
516
|
3508
|
24168
-
24219
|
Apply
|
scala.collection.IterableLike.exists
|
|
BitPrefixes.this.prefixes.exists(((prefix: String) => prefix.length().<=(minBits)))
|
|
520
|
3509
|
24323
-
24342
|
Select
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.BitPrefixes.hasEverythingPrefix
|
|
BitPrefixes.this.hasEverythingPrefix
|
|
520
|
3510
|
24344
-
24351
|
Ident
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.maxKeys
|
|
maxKeys
|
|
521
|
3520
|
24365
-
24542
|
Apply
|
java.lang.Math.min
|
|
java.lang.Math.min(1.<<(usedBits), BitPrefixes.this.prefixes.foldLeft[Int](0)(((sumSoFar: Int, prefix: String) => sumSoFar.+(1.<<(java.lang.Math.min(usedBits, maxBits.-(prefix.length())))))))
|
|
521
|
3521
|
24365
-
24542
|
Block
|
java.lang.Math.min
|
|
java.lang.Math.min(1.<<(usedBits), BitPrefixes.this.prefixes.foldLeft[Int](0)(((sumSoFar: Int, prefix: String) => sumSoFar.+(1.<<(java.lang.Math.min(usedBits, maxBits.-(prefix.length())))))))
|
|
522
|
3511
|
24385
-
24398
|
Apply
|
scala.Int.<<
|
|
1.<<(usedBits)
|
|
523
|
3512
|
24428
-
24429
|
Literal
|
<nosymbol>
|
|
0
|
|
523
|
3519
|
24410
-
24541
|
Apply
|
scala.collection.TraversableOnce.foldLeft
|
|
BitPrefixes.this.prefixes.foldLeft[Int](0)(((sumSoFar: Int, prefix: String) => sumSoFar.+(1.<<(java.lang.Math.min(usedBits, maxBits.-(prefix.length()))))))
|
|
524
|
3513
|
24479
-
24480
|
Literal
|
<nosymbol>
|
|
1
|
|
524
|
3514
|
24513
-
24526
|
Apply
|
java.lang.String.length
|
|
prefix.length()
|
|
524
|
3515
|
24503
-
24526
|
Apply
|
scala.Int.-
|
|
maxBits.-(prefix.length())
|
|
524
|
3516
|
24484
-
24527
|
Apply
|
java.lang.Math.min
|
|
java.lang.Math.min(usedBits, maxBits.-(prefix.length()))
|
|
524
|
3517
|
24479
-
24527
|
Apply
|
scala.Int.<<
|
|
1.<<(java.lang.Math.min(usedBits, maxBits.-(prefix.length())))
|
|
524
|
3518
|
24467
-
24528
|
Apply
|
scala.Int.+
|
|
sumSoFar.+(1.<<(java.lang.Math.min(usedBits, maxBits.-(prefix.length()))))
|
|
530
|
3522
|
24768
-
24792
|
Apply
|
scala.Int.<=
|
|
prefix.length().<=(minBits)
|
|
530
|
3524
|
24742
-
24828
|
Apply
|
scala.Boolean.||
|
|
BitPrefixes.this.prefixes.exists(((prefix: String) => prefix.length().<=(minBits))).||(BitPrefixes.this.entailedSize.==(maxKeys))
|
|
531
|
3523
|
24805
-
24828
|
Apply
|
scala.Int.==
|
|
BitPrefixes.this.entailedSize.==(maxKeys)
|
|
534
|
3525
|
24914
-
24937
|
Apply
|
scala.Int.<=
|
|
BitPrefixes.this.entailedSize.<=(maxKeys)
|
|
536
|
3526
|
24971
-
24978
|
Select
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.BitPrefixes.hasRoom
|
|
BitPrefixes.this.hasRoom
|
|
536
|
3527
|
24959
-
24978
|
Apply
|
scala.Boolean.&&
|
|
BitPrefixes.this.usesAll.unary_!.&&(BitPrefixes.this.hasRoom)
|
|
539
|
3528
|
25015
-
25022
|
Select
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.BitPrefixes.usesAll
|
|
BitPrefixes.this.usesAll
|
|
540
|
3529
|
25036
-
25061
|
Apply
|
scala.Int.>
|
|
1.<<(usedBits).>(maxKeys)
|
|
540
|
3530
|
25036
-
25061
|
Block
|
scala.Int.>
|
|
1.<<(usedBits).>(maxKeys)
|
|
542
|
3531
|
25089
-
25111
|
Apply
|
scala.Int.>
|
|
BitPrefixes.this.entailedSize.>(maxKeys)
|
|
542
|
3532
|
25089
-
25111
|
Block
|
scala.Int.>
|
|
BitPrefixes.this.entailedSize.>(maxKeys)
|
|
549
|
3533
|
25338
-
25364
|
Apply
|
scala.Int.<
|
|
prefixHash.length().<(length)
|
|
549
|
3541
|
25366
-
25525
|
Block
|
<nosymbol>
|
|
{
val charSeqs: List[Seq[Char]] = GeohashUtils.this.Base32Padding.apply(length.-(prefixHash.length()));
org.locationtech.geomesa.utils.iterators.CartesianProductIterable.apply(charSeqs).toList.map[String, Seq[String]](((x$4: Seq[_]) => prefixHash.+(x$4.mkString)))(immutable.this.List.canBuildFrom[String])
}
|
|
550
|
3534
|
25416
-
25433
|
Apply
|
java.lang.String.length
|
|
prefixHash.length()
|
|
550
|
3535
|
25407
-
25433
|
Apply
|
scala.Int.-
|
|
length.-(prefixHash.length())
|
|
550
|
3536
|
25393
-
25434
|
Apply
|
scala.collection.SeqLike.apply
|
|
GeohashUtils.this.Base32Padding.apply(length.-(prefixHash.length()))
|
|
551
|
3537
|
25504
-
25514
|
Select
|
scala.collection.TraversableOnce.mkString
|
|
x$4.mkString
|
|
551
|
3538
|
25491
-
25514
|
Apply
|
java.lang.String.+
|
|
prefixHash.+(x$4.mkString)
|
|
551
|
3539
|
25490
-
25490
|
TypeApply
|
scala.collection.immutable.List.canBuildFrom
|
|
immutable.this.List.canBuildFrom[String]
|
|
551
|
3540
|
25445
-
25515
|
ApplyToImplicitArgs
|
scala.collection.immutable.List.map
|
|
org.locationtech.geomesa.utils.iterators.CartesianProductIterable.apply(charSeqs).toList.map[String, Seq[String]](((x$4: Seq[_]) => prefixHash.+(x$4.mkString)))(immutable.this.List.canBuildFrom[String])
|
|
552
|
3542
|
25531
-
25546
|
Apply
|
scala.collection.generic.GenericCompanion.apply
|
|
scala.collection.Seq.apply[String](prefixHash)
|
|
552
|
3543
|
25531
-
25546
|
Block
|
scala.collection.generic.GenericCompanion.apply
|
|
scala.collection.Seq.apply[String](prefixHash)
|
|
565
|
3544
|
26205
-
26222
|
Apply
|
scala.collection.generic.GenericCompanion.apply
|
|
scala.collection.immutable.HashSet.apply[String]()
|
|
567
|
3545
|
26340
-
26364
|
Apply
|
scala.Int.%
|
|
65.-(prefix.length()).%(5)
|
|
569
|
3546
|
26403
-
26422
|
Apply
|
scala.Int.==
|
|
bitsToBoundary.==(0)
|
|
569
|
3547
|
26424
-
26435
|
Apply
|
scala.collection.generic.GenericCompanion.apply
|
|
scala.collection.Seq.apply[String](prefix)
|
|
569
|
3548
|
26424
-
26435
|
Block
|
scala.collection.generic.GenericCompanion.apply
|
|
scala.collection.Seq.apply[String](prefix)
|
|
570
|
3554
|
26453
-
26640
|
Block
|
<nosymbol>
|
|
{
val fillers: List[Seq[Char]] = GeohashUtils.this.BinaryPadding.apply(bitsToBoundary);
val result: List[String] = org.locationtech.geomesa.utils.iterators.CartesianProductIterable.apply(fillers).toList.map[String, List[String]](((x$5: Seq[_]) => prefix.+(x$5.mkString)))(immutable.this.List.canBuildFrom[String]);
result
}
|
|
571
|
3549
|
26483
-
26512
|
Apply
|
scala.collection.SeqLike.apply
|
|
GeohashUtils.this.BinaryPadding.apply(bitsToBoundary)
|
|
572
|
3550
|
26594
-
26604
|
Select
|
scala.collection.TraversableOnce.mkString
|
|
x$5.mkString
|
|
572
|
3551
|
26585
-
26604
|
Apply
|
java.lang.String.+
|
|
prefix.+(x$5.mkString)
|
|
572
|
3552
|
26584
-
26584
|
TypeApply
|
scala.collection.immutable.List.canBuildFrom
|
|
immutable.this.List.canBuildFrom[String]
|
|
572
|
3553
|
26540
-
26605
|
ApplyToImplicitArgs
|
scala.collection.immutable.List.map
|
|
org.locationtech.geomesa.utils.iterators.CartesianProductIterable.apply(fillers).toList.map[String, List[String]](((x$5: Seq[_]) => prefix.+(x$5.mkString)))(immutable.this.List.canBuildFrom[String])
|
|
575
|
3558
|
26651
-
26832
|
Apply
|
scala.collection.TraversableOnce.foldLeft
|
|
bases.foldLeft[scala.collection.immutable.HashSet[String]](ghsSoFar)(((ghs: scala.collection.immutable.HashSet[String], base: String) => {
val baseTrimmed: String = scala.Predef.augmentString(base).drop(minBits);
val newSubs: Seq[String] = BitPrefixes.this.generateAll(baseTrimmed);
ghs.++(newSubs)
}))
|
|
576
|
3555
|
26723
-
26741
|
Apply
|
scala.collection.IndexedSeqOptimized.drop
|
|
scala.Predef.augmentString(base).drop(minBits)
|
|
577
|
3556
|
26768
-
26792
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.BitPrefixes.generateAll
|
|
BitPrefixes.this.generateAll(baseTrimmed)
|
|
578
|
3557
|
26805
-
26819
|
Apply
|
scala.collection.SetLike.++
|
|
ghs.++(newSubs)
|
|
580
|
3559
|
26187
-
26849
|
Select
|
scala.collection.SetLike.toSeq
|
|
BitPrefixes.this.prefixes.foldLeft[scala.collection.immutable.HashSet[String]](scala.collection.immutable.HashSet.apply[String]())(((ghsSoFar: scala.collection.immutable.HashSet[String], prefix: String) => {
val bitsToBoundary: Int = 65.-(prefix.length()).%(5);
val bases: Seq[String] = if (bitsToBoundary.==(0))
scala.collection.Seq.apply[String](prefix)
else
{
val fillers: List[Seq[Char]] = GeohashUtils.this.BinaryPadding.apply(bitsToBoundary);
val result: List[String] = org.locationtech.geomesa.utils.iterators.CartesianProductIterable.apply(fillers).toList.map[String, List[String]](((x$5: Seq[_]) => prefix.+(x$5.mkString)))(immutable.this.List.canBuildFrom[String]);
result
};
bases.foldLeft[scala.collection.immutable.HashSet[String]](ghsSoFar)(((ghs: scala.collection.immutable.HashSet[String], base: String) => {
val baseTrimmed: String = scala.Predef.augmentString(base).drop(minBits);
val newSubs: Seq[String] = BitPrefixes.this.generateAll(baseTrimmed);
ghs.++(newSubs)
}))
})).toSeq
|
|
584
|
3560
|
26902
-
26909
|
Select
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.BitPrefixes.usesAll
|
|
BitPrefixes.this.usesAll
|
|
584
|
3561
|
26911
-
26926
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.BitPrefixes.generateAll
|
|
BitPrefixes.this.generateAll("")
|
|
584
|
3562
|
26911
-
26926
|
Block
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.BitPrefixes.generateAll
|
|
BitPrefixes.this.generateAll("")
|
|
585
|
3563
|
26940
-
26952
|
Select
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.BitPrefixes.generateSome
|
|
BitPrefixes.this.generateSome
|
|
585
|
3564
|
26940
-
26952
|
Block
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.BitPrefixes.generateSome
|
|
BitPrefixes.this.generateSome
|
|
591
|
3565
|
27153
-
27177
|
Select
|
org.locationtech.geomesa.utils.geohash.GeoHash.toBinaryString
|
|
candidate.toBinaryString
|
|
593
|
3566
|
27189
-
27221
|
Select
|
scala.Boolean.unary_!
|
|
geom.intersects(candidate.geom).unary_!
|
|
593
|
3567
|
27230
-
27233
|
Select
|
scala.collection.immutable.Nil
|
|
scala.collection.immutable.Nil
|
|
593
|
3568
|
27223
-
27233
|
Return
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.considerCandidate
|
|
return scala.collection.immutable.Nil
|
|
593
|
3569
|
27185
-
27185
|
Literal
|
<nosymbol>
|
|
()
|
|
593
|
3570
|
27185
-
27185
|
Block
|
<nosymbol>
|
|
()
|
|
595
|
3571
|
27278
-
27303
|
Apply
|
scala.Int.==
|
|
scala.Predef.augmentString(bitString).size.==(maxBits)
|
|
595
|
3572
|
27245
-
27304
|
Apply
|
scala.Boolean.||
|
|
cover.covers(candidate.geom).||(scala.Predef.augmentString(bitString).size.==(maxBits))
|
|
596
|
3573
|
27316
-
27330
|
Apply
|
scala.collection.generic.GenericCompanion.apply
|
|
scala.collection.Seq.apply[String](bitString)
|
|
596
|
3574
|
27316
-
27330
|
Block
|
scala.collection.generic.GenericCompanion.apply
|
|
scala.collection.Seq.apply[String](bitString)
|
|
598
|
3575
|
27358
-
27382
|
Apply
|
scala.Int.<
|
|
scala.Predef.augmentString(bitString).size.<(maxBits)
|
|
598
|
3601
|
27384
-
28513
|
Block
|
<nosymbol>
|
|
{
val gh0: org.locationtech.geomesa.utils.geohash.GeoHash = GeoHash.fromBinaryString(bitString.+("0"));
val gh1: org.locationtech.geomesa.utils.geohash.GeoHash = GeoHash.fromBinaryString(bitString.+("1"));
val d0: Double = java.lang.Math.hypot(gh0.getPoint.getX().-(polyCentroid.getX()), gh0.getPoint.getY().-(polyCentroid.getY()));
val d1: Double = java.lang.Math.hypot(gh1.getPoint.getX().-(polyCentroid.getX()), gh1.getPoint.getY().-(polyCentroid.getY()));
<synthetic> <artifact> private[this] val x$6: (org.locationtech.geomesa.utils.geohash.GeoHash, org.locationtech.geomesa.utils.geohash.GeoHash) = (if (d0.<=(d1))
scala.Tuple2.apply[org.locationtech.geomesa.utils.geohash.GeoHash, org.locationtech.geomesa.utils.geohash.GeoHash](gh0, gh1)
else
scala.Tuple2.apply[org.locationtech.geomesa.utils.geohash.GeoHash, org.locationtech.geomesa.utils.geohash.GeoHash](gh1, gh0): (org.locationtech.geomesa.utils.geohash.GeoHash, org.locationtech.geomesa.utils.geohash.GeoHash) @unchecked) match {
case (_1: org.locationtech.geomesa.utils.geohash.GeoHash, _2: org.locationtech.geomesa.utils.geohash.GeoHash)(org.locationtech.geomesa.utils.geohash.GeoHash, org.locationtech.geomesa.utils.geohash.GeoHash)((firstChild @ _), (secondChild @ _)) => scala.Tuple2.apply[org.locationtech.geomesa.utils.geohash.GeoHash, org.locationtech.geomesa.utils.geohash.GeoHash](firstChild, secondChild)
};
val firstChild: org.locationtech.geomesa.utils.geohash.GeoHash = x$6._1;
val secondChild: org.locationtech.geomesa.utils.geohash.GeoHash = x$6._2;
val firstChildList: Seq[String] = considerCandidate(firstChild);
firstChildList.++[String, Seq[String]](firstChildList.headOption match {
case (value: String)Some[String]((bitStr @ _)) if bitStr.length().<=(minBits) => scala.collection.immutable.Nil
case _ => considerCandidate(secondChild)
})(collection.this.Seq.canBuildFrom[String])
}
|
|
598
|
3604
|
27354
-
28522
|
If
|
<nosymbol>
|
|
if (scala.Predef.augmentString(bitString).size.<(maxBits))
{
val gh0: org.locationtech.geomesa.utils.geohash.GeoHash = GeoHash.fromBinaryString(bitString.+("0"));
val gh1: org.locationtech.geomesa.utils.geohash.GeoHash = GeoHash.fromBinaryString(bitString.+("1"));
val d0: Double = java.lang.Math.hypot(gh0.getPoint.getX().-(polyCentroid.getX()), gh0.getPoint.getY().-(polyCentroid.getY()));
val d1: Double = java.lang.Math.hypot(gh1.getPoint.getX().-(polyCentroid.getX()), gh1.getPoint.getY().-(polyCentroid.getY()));
<synthetic> <artifact> private[this] val x$6: (org.locationtech.geomesa.utils.geohash.GeoHash, org.locationtech.geomesa.utils.geohash.GeoHash) = (if (d0.<=(d1))
scala.Tuple2.apply[org.locationtech.geomesa.utils.geohash.GeoHash, org.locationtech.geomesa.utils.geohash.GeoHash](gh0, gh1)
else
scala.Tuple2.apply[org.locationtech.geomesa.utils.geohash.GeoHash, org.locationtech.geomesa.utils.geohash.GeoHash](gh1, gh0): (org.locationtech.geomesa.utils.geohash.GeoHash, org.locationtech.geomesa.utils.geohash.GeoHash) @unchecked) match {
case (_1: org.locationtech.geomesa.utils.geohash.GeoHash, _2: org.locationtech.geomesa.utils.geohash.GeoHash)(org.locationtech.geomesa.utils.geohash.GeoHash, org.locationtech.geomesa.utils.geohash.GeoHash)((firstChild @ _), (secondChild @ _)) => scala.Tuple2.apply[org.locationtech.geomesa.utils.geohash.GeoHash, org.locationtech.geomesa.utils.geohash.GeoHash](firstChild, secondChild)
};
val firstChild: org.locationtech.geomesa.utils.geohash.GeoHash = x$6._1;
val secondChild: org.locationtech.geomesa.utils.geohash.GeoHash = x$6._2;
val firstChildList: Seq[String] = considerCandidate(firstChild);
firstChildList.++[String, Seq[String]](firstChildList.headOption match {
case (value: String)Some[String]((bitStr @ _)) if bitStr.length().<=(minBits) => scala.collection.immutable.Nil
case _ => considerCandidate(secondChild)
})(collection.this.Seq.canBuildFrom[String])
}
else
scala.collection.immutable.Nil
|
|
603
|
3576
|
27709
-
27724
|
Apply
|
java.lang.String.+
|
|
bitString.+("0")
|
|
603
|
3577
|
27684
-
27725
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeoHash.fromBinaryString
|
|
GeoHash.fromBinaryString(bitString.+("0"))
|
|
604
|
3578
|
27771
-
27786
|
Apply
|
java.lang.String.+
|
|
bitString.+("1")
|
|
604
|
3579
|
27746
-
27787
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeoHash.fromBinaryString
|
|
GeoHash.fromBinaryString(bitString.+("1"))
|
|
605
|
3580
|
27838
-
27855
|
Apply
|
org.locationtech.jts.geom.Point.getX
|
|
polyCentroid.getX()
|
|
605
|
3581
|
27818
-
27855
|
Apply
|
scala.Double.-
|
|
gh0.getPoint.getX().-(polyCentroid.getX())
|
|
605
|
3582
|
27877
-
27894
|
Apply
|
org.locationtech.jts.geom.Point.getY
|
|
polyCentroid.getY()
|
|
605
|
3583
|
27857
-
27894
|
Apply
|
scala.Double.-
|
|
gh0.getPoint.getY().-(polyCentroid.getY())
|
|
605
|
3584
|
27807
-
27895
|
Apply
|
java.lang.Math.hypot
|
|
java.lang.Math.hypot(gh0.getPoint.getX().-(polyCentroid.getX()), gh0.getPoint.getY().-(polyCentroid.getY()))
|
|
606
|
3585
|
27946
-
27963
|
Apply
|
org.locationtech.jts.geom.Point.getX
|
|
polyCentroid.getX()
|
|
606
|
3586
|
27926
-
27963
|
Apply
|
scala.Double.-
|
|
gh1.getPoint.getX().-(polyCentroid.getX())
|
|
606
|
3587
|
27985
-
28002
|
Apply
|
org.locationtech.jts.geom.Point.getY
|
|
polyCentroid.getY()
|
|
606
|
3588
|
27965
-
28002
|
Apply
|
scala.Double.-
|
|
gh1.getPoint.getY().-(polyCentroid.getY())
|
|
606
|
3589
|
27915
-
28003
|
Apply
|
java.lang.Math.hypot
|
|
java.lang.Math.hypot(gh1.getPoint.getX().-(polyCentroid.getX()), gh1.getPoint.getY().-(polyCentroid.getY()))
|
|
607
|
3590
|
28019
-
28019
|
Select
|
scala.Tuple2._1
|
|
x$6._1
|
|
607
|
3591
|
28031
-
28031
|
Select
|
scala.Tuple2._2
|
|
x$6._2
|
|
611
|
3592
|
28143
-
28172
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.considerCandidate
|
|
considerCandidate(firstChild)
|
|
614
|
3593
|
28286
-
28311
|
Select
|
scala.collection.TraversableLike.headOption
|
|
firstChildList.headOption
|
|
614
|
3599
|
28282
-
28282
|
TypeApply
|
scala.collection.Seq.canBuildFrom
|
|
collection.this.Seq.canBuildFrom[String]
|
|
614
|
3600
|
28267
-
28503
|
ApplyToImplicitArgs
|
scala.collection.TraversableLike.++
|
|
firstChildList.++[String, Seq[String]](firstChildList.headOption match {
case (value: String)Some[String]((bitStr @ _)) if bitStr.length().<=(minBits) => scala.collection.immutable.Nil
case _ => considerCandidate(secondChild)
})(collection.this.Seq.canBuildFrom[String])
|
|
615
|
3594
|
28353
-
28377
|
Apply
|
scala.Int.<=
|
|
bitStr.length().<=(minBits)
|
|
615
|
3595
|
28381
-
28384
|
Select
|
scala.collection.immutable.Nil
|
|
scala.collection.immutable.Nil
|
|
615
|
3596
|
28381
-
28384
|
Block
|
scala.collection.immutable.Nil
|
|
scala.collection.immutable.Nil
|
|
617
|
3597
|
28460
-
28490
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.considerCandidate
|
|
considerCandidate(secondChild)
|
|
617
|
3598
|
28460
-
28490
|
Block
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.considerCandidate
|
|
considerCandidate(secondChild)
|
|
619
|
3602
|
28519
-
28522
|
Select
|
scala.collection.immutable.Nil
|
|
scala.collection.immutable.Nil
|
|
619
|
3603
|
28519
-
28522
|
Block
|
scala.collection.immutable.Nil
|
|
scala.collection.immutable.Nil
|
|
624
|
3611
|
28607
-
28744
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.BitPrefixes.apply
|
|
BitPrefixes.apply(if (ghMBR.prec.<=(maxBits))
considerCandidate(ghMBR)
else
scala.collection.Seq.apply[String](scala.Predef.augmentString(scala.Predef.augmentString(ghMBR.toBinaryString).drop(minBits)).take(usedBits)))
|
|
625
|
3605
|
28630
-
28651
|
Apply
|
scala.Int.<=
|
|
ghMBR.prec.<=(maxBits)
|
|
625
|
3606
|
28653
-
28677
|
Apply
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.considerCandidate
|
|
considerCandidate(ghMBR)
|
|
625
|
3607
|
28653
-
28677
|
Block
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.considerCandidate
|
|
considerCandidate(ghMBR)
|
|
626
|
3608
|
28693
-
28742
|
Apply
|
scala.collection.IndexedSeqOptimized.take
|
|
scala.Predef.augmentString(scala.Predef.augmentString(ghMBR.toBinaryString).drop(minBits)).take(usedBits)
|
|
626
|
3609
|
28689
-
28743
|
Apply
|
scala.collection.generic.GenericCompanion.apply
|
|
scala.collection.Seq.apply[String](scala.Predef.augmentString(scala.Predef.augmentString(ghMBR.toBinaryString).drop(minBits)).take(usedBits))
|
|
626
|
3610
|
28689
-
28743
|
Block
|
scala.collection.generic.GenericCompanion.apply
|
|
scala.collection.Seq.apply[String](scala.Predef.augmentString(scala.Predef.augmentString(ghMBR.toBinaryString).drop(minBits)).take(usedBits))
|
|
629
|
3612
|
28777
-
28799
|
Select
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.BitPrefixes.overflowed
|
|
bitPrefixes.overflowed
|
|
629
|
3613
|
28801
-
29050
|
Throw
|
<nosymbol>
|
|
throw new java.lang.IllegalStateException("Bit prefixes overflowed while calculating unique Geohash substrings in polygon using the following parameters: ".+(scala.StringContext.apply("\\nGeometry: ", " \\nOffset: ", " \\nLength: ", " \\nMax Keys in List: ", "").s(geom, offset, length, MAX_KEYS_IN_LIST)))
|
|
629
|
3614
|
28801
-
29050
|
Block
|
<nosymbol>
|
|
throw new java.lang.IllegalStateException("Bit prefixes overflowed while calculating unique Geohash substrings in polygon using the following parameters: ".+(scala.StringContext.apply("\\nGeometry: ", " \\nOffset: ", " \\nLength: ", " \\nMax Keys in List: ", "").s(geom, offset, length, MAX_KEYS_IN_LIST)))
|
|
629
|
3615
|
28773
-
28773
|
Literal
|
<nosymbol>
|
|
()
|
|
629
|
3616
|
28773
-
28773
|
Block
|
<nosymbol>
|
|
()
|
|
634
|
3617
|
29188
-
29205
|
Select
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.BitPrefixes.toSeq
|
|
bitPrefixes.toSeq
|
|
639
|
3618
|
29380
-
29403
|
Apply
|
scala.Int.<
|
|
unDotted.size.<(maxKeys)
|
|
639
|
3626
|
29405
-
29685
|
Block
|
<nosymbol>
|
|
{
val keepers: List[String] = GeohashUtils.this.getGeohashStringDottingIterator(unDotted, MAX_KEYS_IN_LIST).take(MAX_KEYS_IN_LIST.+(1)).toList;
if (keepers.size.<=(MAX_KEYS_IN_LIST))
keepers.toSeq
else
scala.collection.Seq.apply[Nothing]()
}
|
|
639
|
3629
|
29376
-
29696
|
If
|
<nosymbol>
|
|
if (unDotted.size.<(maxKeys))
{
val keepers: List[String] = GeohashUtils.this.getGeohashStringDottingIterator(unDotted, MAX_KEYS_IN_LIST).take(MAX_KEYS_IN_LIST.+(1)).toList;
if (keepers.size.<=(MAX_KEYS_IN_LIST))
keepers.toSeq
else
scala.collection.Seq.apply[Nothing]()
}
else
scala.collection.Seq.apply[Nothing]()
|
|
642
|
3619
|
29578
-
29598
|
Apply
|
scala.Int.+
|
|
MAX_KEYS_IN_LIST.+(1)
|
|
642
|
3620
|
29502
-
29606
|
Select
|
scala.collection.TraversableOnce.toList
|
|
GeohashUtils.this.getGeohashStringDottingIterator(unDotted, MAX_KEYS_IN_LIST).take(MAX_KEYS_IN_LIST.+(1)).toList
|
|
643
|
3621
|
29619
-
29651
|
Apply
|
scala.Int.<=
|
|
keepers.size.<=(MAX_KEYS_IN_LIST)
|
|
643
|
3622
|
29653
-
29666
|
Select
|
scala.collection.immutable.Seq.toSeq
|
|
keepers.toSeq
|
|
643
|
3623
|
29653
-
29666
|
Block
|
scala.collection.immutable.Seq.toSeq
|
|
keepers.toSeq
|
|
643
|
3624
|
29672
-
29677
|
Apply
|
scala.collection.generic.GenericCompanion.apply
|
|
scala.collection.Seq.apply[Nothing]()
|
|
643
|
3625
|
29672
-
29677
|
Block
|
scala.collection.generic.GenericCompanion.apply
|
|
scala.collection.Seq.apply[Nothing]()
|
|
644
|
3627
|
29691
-
29696
|
Apply
|
scala.collection.generic.GenericCompanion.apply
|
|
scala.collection.Seq.apply[Nothing]()
|
|
644
|
3628
|
29691
-
29696
|
Block
|
scala.collection.generic.GenericCompanion.apply
|
|
scala.collection.Seq.apply[Nothing]()
|
|
645
|
3630
|
29708
-
29716
|
Ident
|
org.locationtech.geomesa.utils.geohash.GeohashUtils.unDotted
|
|
unDotted
|