| Line |
Stmt Id |
Pos |
Tree |
Symbol |
Tests |
Code |
|
56
|
65259
|
2199
-
2203
|
Select
|
scala.None
|
|
scala.None
|
|
56
|
65260
|
2183
-
2204
|
Apply
|
org.locationtech.geomesa.fs.storage.parquet.ReadSchema.apply
|
|
`package`.this.ReadSchema.apply(sft, scala.None)
|
|
56
|
65261
|
2183
-
2204
|
Block
|
org.locationtech.geomesa.fs.storage.parquet.ReadSchema.apply
|
|
`package`.this.ReadSchema.apply(sft, scala.None)
|
|
57
|
65296
|
2235
-
3240
|
Block
|
<nosymbol>
|
|
{
val definitions: Seq[org.locationtech.geomesa.utils.geotools.Transform] = org.locationtech.geomesa.utils.geotools.Transform.Transforms.apply(sft, tdefs);
val secondary: Boolean = definitions.exists(((x0$1: org.locationtech.geomesa.utils.geotools.Transform) => x0$1 match {
case (_: org.locationtech.geomesa.utils.geotools.Transform.PropertyTransform) => false
case (_: org.locationtech.geomesa.utils.geotools.Transform.RenameTransform) => false
case (_: org.locationtech.geomesa.utils.geotools.Transform.ExpressionTransform) => true
}));
val transformCols: Seq[String] = definitions.flatMap[String, Seq[String]](((x$1: org.locationtech.geomesa.utils.geotools.Transform) => org.locationtech.geomesa.filter.RichTransform.RichTransform(x$1).properties))(collection.this.Seq.canBuildFrom[String]).distinct;
val filterCols: Seq[String] = filter match {
case scala.None => scala.collection.Seq.empty[Nothing]
case (value: org.geotools.api.filter.Filter)Some[org.geotools.api.filter.Filter]((f @ _)) => org.locationtech.geomesa.filter.FilterHelper.propertyNames(f, sft).filterNot({
((elem: Any) => transformCols.contains[Any](elem))
})
};
val projectedSft: org.geotools.api.feature.simple.SimpleFeatureType = {
val builder: org.geotools.feature.simple.SimpleFeatureTypeBuilder = new org.geotools.feature.simple.SimpleFeatureTypeBuilder();
builder.setName(sft.getName());
transformCols.foreach[Unit](((a: String) => builder.add(sft.getDescriptor(a))));
filterCols.foreach[Unit](((a: String) => builder.add(sft.getDescriptor(a))));
builder.buildFeatureType()
};
projectedSft.getUserData().putAll(sft.getUserData());
`package`.this.ReadSchema.apply(projectedSft, if (secondary.||(filterCols.nonEmpty))
transform
else
scala.None)
}
|
|
58
|
65262
|
2266
-
2288
|
Apply
|
org.locationtech.geomesa.utils.geotools.Transform.Transforms.apply
|
|
org.locationtech.geomesa.utils.geotools.Transform.Transforms.apply(sft, tdefs)
|
|
59
|
65269
|
2315
-
2493
|
Apply
|
scala.collection.IterableLike.exists
|
|
definitions.exists(((x0$1: org.locationtech.geomesa.utils.geotools.Transform) => x0$1 match {
case (_: org.locationtech.geomesa.utils.geotools.Transform.PropertyTransform) => false
case (_: org.locationtech.geomesa.utils.geotools.Transform.RenameTransform) => false
case (_: org.locationtech.geomesa.utils.geotools.Transform.ExpressionTransform) => true
}))
|
|
60
|
65263
|
2379
-
2384
|
Literal
|
<nosymbol>
|
|
false
|
|
60
|
65264
|
2379
-
2384
|
Block
|
<nosymbol>
|
|
false
|
|
61
|
65265
|
2428
-
2433
|
Literal
|
<nosymbol>
|
|
false
|
|
61
|
65266
|
2428
-
2433
|
Block
|
<nosymbol>
|
|
false
|
|
62
|
65267
|
2477
-
2481
|
Literal
|
<nosymbol>
|
|
true
|
|
62
|
65268
|
2477
-
2481
|
Block
|
<nosymbol>
|
|
true
|
|
64
|
65270
|
2544
-
2556
|
Select
|
org.locationtech.geomesa.filter.RichTransform.RichTransform.properties
|
|
org.locationtech.geomesa.filter.RichTransform.RichTransform(x$1).properties
|
|
64
|
65271
|
2543
-
2543
|
TypeApply
|
scala.collection.Seq.canBuildFrom
|
|
collection.this.Seq.canBuildFrom[String]
|
|
64
|
65272
|
2524
-
2566
|
Select
|
scala.collection.SeqLike.distinct
|
|
definitions.flatMap[String, Seq[String]](((x$1: org.locationtech.geomesa.utils.geotools.Transform) => org.locationtech.geomesa.filter.RichTransform.RichTransform(x$1).properties))(collection.this.Seq.canBuildFrom[String]).distinct
|
|
66
|
65273
|
2634
-
2643
|
TypeApply
|
scala.collection.generic.GenericCompanion.empty
|
|
scala.collection.Seq.empty[Nothing]
|
|
66
|
65274
|
2634
-
2643
|
Block
|
scala.collection.generic.GenericCompanion.empty
|
|
scala.collection.Seq.empty[Nothing]
|
|
67
|
65275
|
2717
-
2739
|
Apply
|
scala.collection.SeqLike.contains
|
|
transformCols.contains[Any](elem)
|
|
67
|
65276
|
2672
-
2740
|
Apply
|
scala.collection.TraversableLike.filterNot
|
|
org.locationtech.geomesa.filter.FilterHelper.propertyNames(f, sft).filterNot({
((elem: Any) => transformCols.contains[Any](elem))
})
|
|
67
|
65277
|
2672
-
2740
|
Block
|
scala.collection.TraversableLike.filterNot
|
|
org.locationtech.geomesa.filter.FilterHelper.propertyNames(f, sft).filterNot({
((elem: Any) => transformCols.contains[Any](elem))
})
|
|
71
|
65278
|
2811
-
2841
|
Apply
|
org.geotools.feature.simple.SimpleFeatureTypeBuilder.<init>
|
|
new org.geotools.feature.simple.SimpleFeatureTypeBuilder()
|
|
72
|
65279
|
2870
-
2881
|
Apply
|
org.geotools.api.feature.type.PropertyType.getName
|
|
sft.getName()
|
|
72
|
65280
|
2854
-
2882
|
Apply
|
org.geotools.feature.simple.SimpleFeatureTypeBuilder.setName
|
|
builder.setName(sft.getName())
|
|
73
|
65281
|
2934
-
2954
|
Apply
|
org.geotools.api.feature.simple.SimpleFeatureType.getDescriptor
|
|
sft.getDescriptor(a)
|
|
73
|
65282
|
2922
-
2955
|
Apply
|
org.geotools.feature.simple.SimpleFeatureTypeBuilder.add
|
|
builder.add(sft.getDescriptor(a))
|
|
73
|
65283
|
2895
-
2956
|
Apply
|
scala.collection.IterableLike.foreach
|
|
transformCols.foreach[Unit](((a: String) => builder.add(sft.getDescriptor(a))))
|
|
74
|
65284
|
3005
-
3025
|
Apply
|
org.geotools.api.feature.simple.SimpleFeatureType.getDescriptor
|
|
sft.getDescriptor(a)
|
|
74
|
65285
|
2993
-
3026
|
Apply
|
org.geotools.feature.simple.SimpleFeatureTypeBuilder.add
|
|
builder.add(sft.getDescriptor(a))
|
|
74
|
65286
|
2969
-
3027
|
Apply
|
scala.collection.IterableLike.foreach
|
|
filterCols.foreach[Unit](((a: String) => builder.add(sft.getDescriptor(a))))
|
|
75
|
65287
|
3040
-
3066
|
Apply
|
org.geotools.feature.simple.SimpleFeatureTypeBuilder.buildFeatureType
|
|
builder.buildFeatureType()
|
|
77
|
65288
|
3121
-
3136
|
Apply
|
org.geotools.api.feature.type.PropertyType.getUserData
|
|
sft.getUserData()
|
|
77
|
65289
|
3089
-
3137
|
Apply
|
java.util.Map.putAll
|
|
projectedSft.getUserData().putAll(sft.getUserData())
|
|
79
|
65290
|
3191
-
3210
|
Select
|
scala.collection.TraversableOnce.nonEmpty
|
|
filterCols.nonEmpty
|
|
79
|
65291
|
3178
-
3210
|
Apply
|
scala.Boolean.||
|
|
secondary.||(filterCols.nonEmpty)
|
|
79
|
65292
|
3214
-
3223
|
Ident
|
org.locationtech.geomesa.fs.storage.parquet.ReadSchema.transform
|
|
transform
|
|
79
|
65293
|
3233
-
3237
|
Select
|
scala.None
|
|
scala.None
|
|
79
|
65294
|
3233
-
3237
|
Block
|
scala.None
|
|
scala.None
|
|
79
|
65295
|
3149
-
3240
|
Apply
|
org.locationtech.geomesa.fs.storage.parquet.ReadSchema.apply
|
|
`package`.this.ReadSchema.apply(projectedSft, if (secondary.||(filterCols.nonEmpty))
transform
else
scala.None)
|
|
94
|
65297
|
3516
-
3516
|
Select
|
scala.Tuple2._1
|
|
x$2._1
|
|
94
|
65298
|
3525
-
3525
|
Select
|
scala.Tuple2._2
|
|
x$2._2
|
|
98
|
65299
|
3679
-
3708
|
Apply
|
org.locationtech.geomesa.fs.storage.parquet.ReadFilter.apply
|
|
`package`.this.ReadFilter.apply(parquet, residual)
|