public class Aggregation extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,List<org.gcube.documentstore.records.AggregatedRecord<?,?>>> |
bufferedRecords |
static org.slf4j.Logger |
logger |
protected int |
totalBufferedRecords |
| Constructor and Description |
|---|
Aggregation() |
| Modifier and Type | Method and Description |
|---|---|
void |
aggregate(org.gcube.documentstore.records.AggregatedRecord<?,?> record)
Get an usage records and try to aggregate with other buffered
Usage Record.
|
protected void |
clear()
Reset buffer records
|
static org.gcube.documentstore.records.AggregatedRecord |
getAggregatedRecord(org.gcube.documentstore.records.Record record) |
protected static org.gcube.documentstore.records.AggregatedRecord |
instantiateAggregatedRecord(org.gcube.documentstore.records.Record record) |
protected void |
madeAggregation(org.gcube.documentstore.records.AggregatedRecord<?,?> record) |
List<com.couchbase.client.java.document.JsonDocument> |
reallyFlush() |
public static org.slf4j.Logger logger
protected int totalBufferedRecords
protected static org.gcube.documentstore.records.AggregatedRecord instantiateAggregatedRecord(org.gcube.documentstore.records.Record record)
throws Exception
Exceptionpublic static org.gcube.documentstore.records.AggregatedRecord getAggregatedRecord(org.gcube.documentstore.records.Record record)
throws Exception
Exceptionprotected void madeAggregation(org.gcube.documentstore.records.AggregatedRecord<?,?> record)
throws org.gcube.documentstore.exception.InvalidValueException
org.gcube.documentstore.exception.InvalidValueExceptionprotected void clear()
public List<com.couchbase.client.java.document.JsonDocument> reallyFlush() throws Exception
ExceptionCopyright © 2017. All Rights Reserved.