| Line |
Stmt Id |
Pos |
Tree |
Symbol |
Tests |
Code |
|
23
|
70913
|
1122
-
1137
|
Literal
|
<nosymbol>
|
|
"create-schema"
|
|
27
|
70915
|
1264
-
1282
|
Select
|
org.locationtech.geomesa.tools.OptionalTypeNameParam.featureName
|
|
CreateSchemaCommand.this.params.featureName
|
|
27
|
70914
|
1251
-
1262
|
Select
|
org.locationtech.geomesa.tools.RequiredFeatureSpecParam.spec
|
|
CreateSchemaCommand.this.params.spec
|
|
27
|
70916
|
1230
-
1283
|
Apply
|
org.locationtech.geomesa.tools.utils.CLArgResolver.getSft
|
|
org.locationtech.geomesa.tools.utils.CLArgResolver.getSft(CreateSchemaCommand.this.params.spec, CreateSchemaCommand.this.params.featureName)
|
|
28
|
70917
|
1295
-
1310
|
Select
|
org.locationtech.geomesa.tools.OptionalDtgParam.dtgField
|
|
CreateSchemaCommand.this.params.dtgField
|
|
28
|
70919
|
1288
-
1336
|
Apply
|
scala.Option.foreach
|
|
scala.Option.apply[String](CreateSchemaCommand.this.params.dtgField).foreach[Unit]({
<synthetic> val eta$0$1: org.locationtech.geomesa.utils.geotools.RichSimpleFeatureType.RichSimpleFeatureType = org.locationtech.geomesa.utils.geotools.RichSimpleFeatureType.RichSimpleFeatureType(sft);
((dtg: String) => eta$0$1.setDtgField(dtg))
})
|
|
28
|
70918
|
1320
-
1335
|
Apply
|
org.locationtech.geomesa.utils.geotools.RichSimpleFeatureType.RichSimpleFeatureType.setDtgField
|
|
eta$0$1.setDtgField(dtg)
|
|
29
|
70920
|
1341
-
1371
|
Apply
|
org.locationtech.geomesa.tools.data.CreateSchemaCommand.SchemaOptionsCommand.setBackendSpecificOptions
|
|
CreateSchemaCommand.this.setBackendSpecificOptions(sft)
|
|
30
|
70921
|
1390
-
1410
|
Apply
|
org.locationtech.geomesa.tools.data.CreateSchemaCommand.createSchema
|
|
CreateSchemaCommand.this.createSchema(x$1, sft)
|
|
30
|
70922
|
1376
-
1411
|
Apply
|
org.locationtech.geomesa.tools.DataStoreCommand.withDataStore
|
|
CreateSchemaCommand.this.withDataStore[Unit](((x$1: DS) => CreateSchemaCommand.this.createSchema(x$1, sft)))
|
|
37
|
70923
|
1665
-
1702
|
Apply
|
java.lang.Object.==
|
|
ds.getSchema(sft.getTypeName()).==(null)
|
|
37
|
70925
|
1736
-
1740
|
Literal
|
<nosymbol>
|
|
true
|
|
37
|
70924
|
1665
-
1702
|
Block
|
java.lang.Object.==
|
|
ds.getSchema(sft.getTypeName()).==(null)
|
|
37
|
70926
|
1736
-
1740
|
Block
|
<nosymbol>
|
|
true
|
|
37
|
70934
|
1744
-
2041
|
Block
|
<nosymbol>
|
|
{
ds.createSchema(sft);
if (try {
ds.getSchema(sft.getTypeName()).!=(null)
} catch {
case (_: java.io.IOException) => false
})
(if (org.locationtech.geomesa.tools.`package`.Command.user.underlying.isInfoEnabled())
org.locationtech.geomesa.tools.`package`.Command.user.underlying.info("Created schema \'{}\'", (sft.getTypeName(): AnyRef))
else
(): Unit)
else
(if (org.locationtech.geomesa.tools.`package`.Command.user.underlying.isErrorEnabled())
org.locationtech.geomesa.tools.`package`.Command.user.underlying.error("Could not create schema \'{}\'", (sft.getTypeName(): AnyRef))
else
(): Unit)
}
|
|
38
|
70927
|
1752
-
1772
|
Apply
|
org.geotools.api.data.DataAccess.createSchema
|
|
ds.createSchema(sft)
|
|
39
|
70929
|
1789
-
1826
|
Block
|
java.lang.Object.!=
|
|
ds.getSchema(sft.getTypeName()).!=(null)
|
|
39
|
70928
|
1789
-
1826
|
Apply
|
java.lang.Object.!=
|
|
ds.getSchema(sft.getTypeName()).!=(null)
|
|
39
|
70931
|
1860
-
1865
|
Block
|
<nosymbol>
|
|
false
|
|
39
|
70930
|
1860
-
1865
|
Literal
|
<nosymbol>
|
|
false
|
|
40
|
70932
|
1879
-
1936
|
Typed
|
<nosymbol>
|
|
(if (org.locationtech.geomesa.tools.`package`.Command.user.underlying.isInfoEnabled())
org.locationtech.geomesa.tools.`package`.Command.user.underlying.info("Created schema \'{}\'", (sft.getTypeName(): AnyRef))
else
(): Unit)
|
|
42
|
70933
|
1960
-
2027
|
Typed
|
<nosymbol>
|
|
(if (org.locationtech.geomesa.tools.`package`.Command.user.underlying.isErrorEnabled())
org.locationtech.geomesa.tools.`package`.Command.user.underlying.error("Could not create schema \'{}\'", (sft.getTypeName(): AnyRef))
else
(): Unit)
|
|
45
|
70935
|
2055
-
2138
|
Typed
|
<nosymbol>
|
|
(if (org.locationtech.geomesa.tools.`package`.Command.user.underlying.isErrorEnabled())
org.locationtech.geomesa.tools.`package`.Command.user.underlying.error("Schema \'{}\' already exists in the data store", (sft.getTypeName(): AnyRef))
else
(): Unit)
|
|
56
|
70936
|
2470
-
2472
|
Literal
|
<nosymbol>
|
|
()
|