| Line |
Stmt Id |
Pos |
Tree |
Symbol |
Tests |
Code |
|
25
|
10863
|
1005
-
1036
|
Apply
|
java.util.regex.Pattern.compile
|
|
java.util.regex.Pattern.compile("\\w+://.*")
|
|
27
|
10864
|
1068
-
1087
|
Apply
|
org.locationtech.geomesa.utils.io.fs.LocalDelegate.<init>
|
|
new org.locationtech.geomesa.utils.io.fs.LocalDelegate()
|
|
32
|
10865
|
1234
-
1288
|
Literal
|
<nosymbol>
|
|
"org.locationtech.geomesa.utils.hadoop.HadoopDelegate"
|
|
33
|
10866
|
1220
-
1370
|
TypeApply
|
scala.Any.asInstanceOf
|
|
java.lang.Class.forName("org.locationtech.geomesa.utils.hadoop.HadoopDelegate").getDeclaredConstructor().newInstance().asInstanceOf[org.locationtech.geomesa.utils.io.fs.FileSystemDelegate]
|
|
33
|
10867
|
1220
-
1370
|
Block
|
scala.Any.asInstanceOf
|
|
java.lang.Class.forName("org.locationtech.geomesa.utils.hadoop.HadoopDelegate").getDeclaredConstructor().newInstance().asInstanceOf[org.locationtech.geomesa.utils.io.fs.FileSystemDelegate]
|
|
35
|
10868
|
1412
-
1416
|
Literal
|
<nosymbol>
|
|
null
|
|
35
|
10869
|
1412
-
1416
|
Block
|
<nosymbol>
|
|
null
|
|
38
|
10870
|
1486
-
1526
|
Apply
|
org.locationtech.geomesa.utils.io.fs.FileSystemDelegate.interpretPath
|
|
PathUtils.this.chooseDelegate(path).interpretPath(path)
|
|
40
|
10871
|
1581
-
1617
|
Apply
|
org.locationtech.geomesa.utils.io.fs.FileSystemDelegate.getHandle
|
|
PathUtils.this.chooseDelegate(path).getHandle(path)
|
|
42
|
10872
|
1662
-
1695
|
Apply
|
org.locationtech.geomesa.utils.io.fs.FileSystemDelegate.getUrl
|
|
PathUtils.this.chooseDelegate(path).getUrl(path)
|
|
51
|
10873
|
2003
-
2012
|
Literal
|
<nosymbol>
|
|
"file://"
|
|
51
|
10874
|
1974
-
2013
|
Select
|
scala.Boolean.unary_!
|
|
path.toLowerCase().startsWith("file://").unary_!
|
|
51
|
10875
|
1938
-
2013
|
Apply
|
scala.Boolean.&&
|
|
PathUtils.this.uriRegex.matcher(path).matches().&&(path.toLowerCase().startsWith("file://").unary_!)
|
|
60
|
10876
|
2238
-
2284
|
Apply
|
org.locationtech.geomesa.utils.io.CompressionUtils.getUncompressedFilename
|
|
CompressionUtils.getUncompressedFilename(path)
|
|
60
|
10877
|
2211
-
2285
|
Apply
|
org.apache.commons.io.FilenameUtils.getExtension
|
|
org.apache.commons.io.FilenameUtils.getExtension(CompressionUtils.getUncompressedFilename(path))
|
|
71
|
10878
|
2779
-
2783
|
Ident
|
org.locationtech.geomesa.utils.io.PathUtils.base
|
|
base
|
|
71
|
10879
|
2793
-
2801
|
Apply
|
scala.Int.+
|
|
base.+(1)
|
|
71
|
10880
|
2793
-
2801
|
Block
|
scala.Int.+
|
|
base.+(1)
|
|
72
|
10881
|
2819
-
2855
|
Apply
|
org.apache.commons.io.FilenameUtils.indexOfExtension
|
|
org.apache.commons.io.FilenameUtils.indexOfExtension(path)
|
|
73
|
10882
|
2864
-
2875
|
Apply
|
scala.Int.==
|
|
split.==(-1)
|
|
73
|
10883
|
2879
-
2889
|
Apply
|
scala.Tuple2.apply
|
|
scala.Tuple2.apply[String, String](path, "")
|
|
73
|
10884
|
2879
-
2889
|
Block
|
scala.Tuple2.apply
|
|
scala.Tuple2.apply[String, String](path, "")
|
|
73
|
10899
|
2897
-
3319
|
Block
|
<nosymbol>
|
|
{
val withoutExtension: String = path.substring(0, split);
val secondSplit: Int = org.apache.commons.io.FilenameUtils.indexOfExtension(withoutExtension);
if (secondSplit.!=(-1).&&(CompressionUtils.isCompressedFilename(path)))
scala.Tuple2.apply[String, String](path.substring(0, secondSplit), path.substring(dotIndex(secondSplit)))
else
scala.Tuple2.apply[String, String](withoutExtension, path.substring(dotIndex(split)))
}
|
|
74
|
10885
|
2928
-
2952
|
Apply
|
java.lang.String.substring
|
|
path.substring(0, split)
|
|
76
|
10886
|
3024
-
3072
|
Apply
|
org.apache.commons.io.FilenameUtils.indexOfExtension
|
|
org.apache.commons.io.FilenameUtils.indexOfExtension(withoutExtension)
|
|
77
|
10887
|
3098
-
3100
|
Literal
|
<nosymbol>
|
|
-1
|
|
77
|
10888
|
3104
-
3147
|
Apply
|
org.locationtech.geomesa.utils.io.CompressionUtils.isCompressedFilename
|
|
CompressionUtils.isCompressedFilename(path)
|
|
77
|
10889
|
3083
-
3147
|
Apply
|
scala.Boolean.&&
|
|
secondSplit.!=(-1).&&(CompressionUtils.isCompressedFilename(path))
|
|
78
|
10890
|
3160
-
3190
|
Apply
|
java.lang.String.substring
|
|
path.substring(0, secondSplit)
|
|
78
|
10891
|
3207
-
3228
|
Apply
|
org.locationtech.geomesa.utils.io.PathUtils.dotIndex
|
|
dotIndex(secondSplit)
|
|
78
|
10892
|
3192
-
3229
|
Apply
|
java.lang.String.substring
|
|
path.substring(dotIndex(secondSplit))
|
|
78
|
10893
|
3159
-
3230
|
Apply
|
scala.Tuple2.apply
|
|
scala.Tuple2.apply[String, String](path.substring(0, secondSplit), path.substring(dotIndex(secondSplit)))
|
|
78
|
10894
|
3159
-
3230
|
Block
|
scala.Tuple2.apply
|
|
scala.Tuple2.apply[String, String](path.substring(0, secondSplit), path.substring(dotIndex(secondSplit)))
|
|
80
|
10895
|
3288
-
3303
|
Apply
|
org.locationtech.geomesa.utils.io.PathUtils.dotIndex
|
|
dotIndex(split)
|
|
80
|
10896
|
3273
-
3304
|
Apply
|
java.lang.String.substring
|
|
path.substring(dotIndex(split))
|
|
80
|
10897
|
3254
-
3305
|
Apply
|
scala.Tuple2.apply
|
|
scala.Tuple2.apply[String, String](withoutExtension, path.substring(dotIndex(split)))
|
|
80
|
10898
|
3254
-
3305
|
Block
|
scala.Tuple2.apply
|
|
scala.Tuple2.apply[String, String](withoutExtension, path.substring(dotIndex(split)))
|
|
93
|
10900
|
3618
-
3645
|
Apply
|
java.io.BufferedInputStream.<init>
|
|
new java.io.BufferedInputStream(is)
|
|
94
|
10901
|
3678
-
3710
|
Apply
|
org.locationtech.geomesa.utils.io.CompressionUtils.isCompressedFilename
|
|
x$1.isCompressedFilename(filename)
|
|
94
|
10902
|
3650
-
3711
|
Apply
|
scala.collection.IterableLike.find
|
|
CompressionUtils.Utils.find(((x$1: org.locationtech.geomesa.utils.io.CompressionUtils) => x$1.isCompressedFilename(filename)))
|
|
95
|
10903
|
3739
-
3747
|
Ident
|
org.locationtech.geomesa.utils.io.PathUtils.buffered
|
|
buffered
|
|
96
|
10904
|
3774
-
3798
|
Apply
|
org.locationtech.geomesa.utils.io.CompressionUtils.compress
|
|
utils.compress(buffered)
|
|
96
|
10905
|
3774
-
3798
|
Block
|
org.locationtech.geomesa.utils.io.CompressionUtils.compress
|
|
utils.compress(buffered)
|
|
105
|
10906
|
3965
-
3986
|
Apply
|
org.locationtech.geomesa.utils.io.PathUtils.DeleteFileVisitor.<init>
|
|
new PathUtils.this.DeleteFileVisitor()
|
|
105
|
10907
|
3940
-
3987
|
Apply
|
java.nio.file.Files.walkFileTree
|
|
java.nio.file.Files.walkFileTree(path, new PathUtils.this.DeleteFileVisitor())
|
|
105
|
10908
|
3958
-
3958
|
Literal
|
<nosymbol>
|
|
()
|
|
108
|
10909
|
4080
-
4084
|
Literal
|
<nosymbol>
|
|
null
|
|
108
|
10910
|
4088
-
4120
|
Apply
|
java.util.regex.Matcher.matches
|
|
PathUtils.this.uriRegex.matcher(path).matches()
|
|
108
|
10911
|
4062
-
4120
|
Apply
|
scala.Boolean.&&
|
|
PathUtils.this.hadoopDelegate.!=(null).&&(PathUtils.this.uriRegex.matcher(path).matches())
|
|
108
|
10912
|
4124
-
4138
|
Select
|
org.locationtech.geomesa.utils.io.PathUtils.hadoopDelegate
|
|
PathUtils.this.hadoopDelegate
|
|
108
|
10913
|
4124
-
4138
|
Block
|
org.locationtech.geomesa.utils.io.PathUtils.hadoopDelegate
|
|
PathUtils.this.hadoopDelegate
|
|
108
|
10914
|
4148
-
4161
|
Select
|
org.locationtech.geomesa.utils.io.PathUtils.localDelegate
|
|
PathUtils.this.localDelegate
|
|
108
|
10915
|
4148
-
4161
|
Block
|
org.locationtech.geomesa.utils.io.PathUtils.localDelegate
|
|
PathUtils.this.localDelegate
|
|
115
|
10916
|
4357
-
4381
|
Literal
|
<nosymbol>
|
|
CONTINUE
|
|
118
|
10917
|
4481
-
4499
|
Select
|
scala.Boolean.unary_!
|
|
attrs.isDirectory().unary_!
|
|
118
|
10920
|
4477
-
4477
|
Literal
|
<nosymbol>
|
|
()
|
|
118
|
10921
|
4477
-
4477
|
Block
|
<nosymbol>
|
|
()
|
|
119
|
10918
|
4511
-
4529
|
Apply
|
java.nio.file.Files.delete
|
|
java.nio.file.Files.delete(file)
|
|
119
|
10919
|
4511
-
4529
|
Block
|
java.nio.file.Files.delete
|
|
java.nio.file.Files.delete(file)
|
|
121
|
10922
|
4544
-
4568
|
Literal
|
<nosymbol>
|
|
CONTINUE
|
|
124
|
10923
|
4669
-
4693
|
Literal
|
<nosymbol>
|
|
CONTINUE
|
|
127
|
10924
|
4787
-
4804
|
Apply
|
java.nio.file.Files.delete
|
|
java.nio.file.Files.delete(dir)
|
|
128
|
10925
|
4811
-
4835
|
Literal
|
<nosymbol>
|
|
CONTINUE
|