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 int |
malformedRecordNumber |
protected File |
malformedRecordsFile |
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 int |
elaborateRow(com.couchbase.client.java.view.ViewRow row,
AggregatorBuffer aggregatorBuffer,
int originalRecordsCounter) |
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 final File malformedRecordsFile
protected int malformedRecordNumber
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 int elaborateRow(com.couchbase.client.java.view.ViewRow row,
AggregatorBuffer aggregatorBuffer,
int originalRecordsCounter)
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 © 2018. All Rights Reserved.