mirror of https://github.com/apache/druid.git
Cleaning up code sample indentations
This commit is contained in:
parent
df7a39a682
commit
61af84a4a1
|
@ -109,22 +109,27 @@ You should be comfortable starting Druid nodes at this point. If not, it may be
|
||||||
{
|
{
|
||||||
"schema": {
|
"schema": {
|
||||||
"dataSource": "wikipedia",
|
"dataSource": "wikipedia",
|
||||||
"aggregators" : [{
|
"aggregators" : [
|
||||||
"type" : "count",
|
{
|
||||||
"name" : "count"
|
"type" : "count",
|
||||||
}, {
|
"name" : "count"
|
||||||
"type" : "doubleSum",
|
},
|
||||||
"name" : "added",
|
{
|
||||||
"fieldName" : "added"
|
"type" : "doubleSum",
|
||||||
}, {
|
"name" : "added",
|
||||||
"type" : "doubleSum",
|
"fieldName" : "added"
|
||||||
"name" : "deleted",
|
},
|
||||||
"fieldName" : "deleted"
|
{
|
||||||
}, {
|
"type" : "doubleSum",
|
||||||
"type" : "doubleSum",
|
"name" : "deleted",
|
||||||
"name" : "delta",
|
"fieldName" : "deleted"
|
||||||
"fieldName" : "delta"
|
},
|
||||||
}],
|
{
|
||||||
|
"type" : "doubleSum",
|
||||||
|
"name" : "delta",
|
||||||
|
"fieldName" : "delta"
|
||||||
|
}
|
||||||
|
],
|
||||||
"indexGranularity": "none"
|
"indexGranularity": "none"
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
|
@ -196,13 +201,15 @@ Note: This config uses a "test" [rejection policy](Plumber.html) which will acce
|
||||||
Issuing a [TimeBoundaryQuery](TimeBoundaryQuery.html) to the real-time node should yield valid results:
|
Issuing a [TimeBoundaryQuery](TimeBoundaryQuery.html) to the real-time node should yield valid results:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
[ {
|
[
|
||||||
"timestamp" : "2013-08-31T01:02:33.000Z",
|
{
|
||||||
"result" : {
|
"timestamp" : "2013-08-31T01:02:33.000Z",
|
||||||
"minTime" : "2013-08-31T01:02:33.000Z",
|
"result" : {
|
||||||
"maxTime" : "2013-08-31T12:41:27.000Z"
|
"minTime" : "2013-08-31T01:02:33.000Z",
|
||||||
|
"maxTime" : "2013-08-31T12:41:27.000Z"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} ]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
Batch Ingestion
|
Batch Ingestion
|
||||||
|
@ -287,22 +294,27 @@ Examining the contents of the file, you should find:
|
||||||
},
|
},
|
||||||
"targetPartitionSize" : 5000000,
|
"targetPartitionSize" : 5000000,
|
||||||
"rollupSpec" : {
|
"rollupSpec" : {
|
||||||
"aggs": [{
|
"aggs": [
|
||||||
|
{
|
||||||
"type" : "count",
|
"type" : "count",
|
||||||
"name" : "count"
|
"name" : "count"
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"type" : "doubleSum",
|
"type" : "doubleSum",
|
||||||
"name" : "added",
|
"name" : "added",
|
||||||
"fieldName" : "added"
|
"fieldName" : "added"
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"type" : "doubleSum",
|
"type" : "doubleSum",
|
||||||
"name" : "deleted",
|
"name" : "deleted",
|
||||||
"fieldName" : "deleted"
|
"fieldName" : "deleted"
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"type" : "doubleSum",
|
"type" : "doubleSum",
|
||||||
"name" : "delta",
|
"name" : "delta",
|
||||||
"fieldName" : "delta"
|
"fieldName" : "delta"
|
||||||
}],
|
}
|
||||||
|
],
|
||||||
"rollupGranularity" : "none"
|
"rollupGranularity" : "none"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue