2018-08-09 16:37:52 -04:00
|
|
|
{
|
2020-01-15 17:08:29 -05:00
|
|
|
"type" : "index_parallel",
|
2018-08-09 16:37:52 -04:00
|
|
|
"spec" : {
|
|
|
|
"dataSchema" : {
|
|
|
|
"dataSource" : "transform-tutorial",
|
2020-01-15 17:08:29 -05:00
|
|
|
"timestampSpec": {
|
|
|
|
"column": "timestamp",
|
|
|
|
"format": "iso"
|
|
|
|
},
|
|
|
|
"dimensionsSpec" : {
|
|
|
|
"dimensions" : [
|
|
|
|
"animal",
|
|
|
|
{ "name": "location", "type": "long" }
|
|
|
|
]
|
2018-08-09 16:37:52 -04:00
|
|
|
},
|
|
|
|
"metricsSpec" : [
|
|
|
|
{ "type" : "count", "name" : "count" },
|
|
|
|
{ "type" : "longSum", "name" : "number", "fieldName" : "number" },
|
|
|
|
{ "type" : "longSum", "name" : "triple-number", "fieldName" : "triple-number" }
|
|
|
|
],
|
|
|
|
"granularitySpec" : {
|
|
|
|
"type" : "uniform",
|
|
|
|
"segmentGranularity" : "week",
|
|
|
|
"queryGranularity" : "minute",
|
|
|
|
"intervals" : ["2018-01-01/2018-01-03"],
|
|
|
|
"rollup" : true
|
|
|
|
},
|
|
|
|
"transformSpec": {
|
|
|
|
"transforms": [
|
|
|
|
{
|
|
|
|
"type": "expression",
|
|
|
|
"name": "animal",
|
|
|
|
"expression": "concat('super-', animal)"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "expression",
|
|
|
|
"name": "triple-number",
|
|
|
|
"expression": "number * 3"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"filter": {
|
|
|
|
"type":"or",
|
|
|
|
"fields": [
|
|
|
|
{ "type": "selector", "dimension": "animal", "value": "super-mongoose" },
|
|
|
|
{ "type": "selector", "dimension": "triple-number", "value": "300" },
|
|
|
|
{ "type": "selector", "dimension": "location", "value": "3" }
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"ioConfig" : {
|
2020-01-15 17:08:29 -05:00
|
|
|
"type" : "index_parallel",
|
|
|
|
"inputSource" : {
|
2018-08-09 16:37:52 -04:00
|
|
|
"type" : "local",
|
|
|
|
"baseDir" : "quickstart/tutorial",
|
|
|
|
"filter" : "transform-data.json"
|
|
|
|
},
|
2020-01-15 17:08:29 -05:00
|
|
|
"inpuFormat" : {
|
|
|
|
"type" : "json"
|
|
|
|
},
|
2018-08-09 16:37:52 -04:00
|
|
|
"appendToExisting" : false
|
|
|
|
},
|
|
|
|
"tuningConfig" : {
|
2020-01-15 17:08:29 -05:00
|
|
|
"type" : "index_parallel",
|
2019-01-10 12:50:14 -05:00
|
|
|
"maxRowsPerSegment" : 5000000,
|
2019-03-16 02:29:25 -04:00
|
|
|
"maxRowsInMemory" : 25000
|
2018-08-09 16:37:52 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|