public class Aggregator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected File |
aggregateRecordsBackupFile |
protected AggregationStatus |
aggregationStatus |
protected com.couchbase.client.java.Bucket |
bucket |
protected File |
originalRecordsbackupFile |
protected Calendar |
startTime |
| Constructor and Description |
|---|
Aggregator(AggregationStatus aggregationStatus,
com.couchbase.client.java.Bucket bucket,
File originalRecordsbackupFile,
File aggregateRecordsBackupFile) |
| Modifier and Type | Method and Description |
|---|---|
void |
aggregate() |
protected void |
aggregateRow(AggregatorBuffer aggregatorBuffer,
String json) |
protected com.couchbase.client.java.document.json.JsonArray |
generateKey(String key)
Generate a key for map-reduce
|
protected com.couchbase.client.java.document.JsonDocument |
getJsonDocument(com.couchbase.client.java.view.ViewRow row) |
protected com.couchbase.client.java.view.ViewResult |
getViewResult() |
protected void |
retrieveAndAggregate(com.couchbase.client.java.view.ViewResult viewResult) |
protected final AggregationStatus aggregationStatus
protected final com.couchbase.client.java.Bucket bucket
protected final File originalRecordsbackupFile
protected final File aggregateRecordsBackupFile
protected Calendar startTime
public Aggregator(AggregationStatus aggregationStatus, com.couchbase.client.java.Bucket bucket, File originalRecordsbackupFile, File aggregateRecordsBackupFile)
protected com.couchbase.client.java.document.json.JsonArray generateKey(String key)
key - protected com.couchbase.client.java.view.ViewResult getViewResult()
throws Exception
Exceptionprotected void retrieveAndAggregate(com.couchbase.client.java.view.ViewResult viewResult)
throws Exception
Exceptionprotected void aggregateRow(AggregatorBuffer aggregatorBuffer, String json) throws Exception
Exceptionprotected com.couchbase.client.java.document.JsonDocument getJsonDocument(com.couchbase.client.java.view.ViewRow row)
Copyright © 2017. All Rights Reserved.