use of com.yahoo.bullet.result.Clip in project bullet-core by yahoo.
the class TopK method getResult.
@Override
public Clip getResult() {
Clip result = super.getResult();
result.getRecords().forEach(this::splitFields);
return result;
}
use of com.yahoo.bullet.result.Clip in project bullet-core by yahoo.
the class TupleSketch method getResult.
@Override
public Clip getResult(String metaKey, Map<String, String> conceptKeys) {
merge();
Clip result = super.getResult(metaKey, conceptKeys);
result.add(getRecords());
return result;
}
use of com.yahoo.bullet.result.Clip in project bullet-core by yahoo.
the class Querier method finish.
/**
* Terminate the query and return the final result.
*
* @return The final non-null {@link Clip} representing the final result.
*/
public Clip finish() {
Clip result = getResult();
addFinishTime(result.getMeta());
return result;
}
use of com.yahoo.bullet.result.Clip in project bullet-core by yahoo.
the class Querier method getResult.
/**
* Gets the resulting {@link Clip} of the results so far.
*
* @return A non-null {@link Clip} representing the aggregated result.
*/
@Override
public Clip getResult() {
Clip result;
try {
incrementRate();
result = window.getResult();
result.add(getResultMetadata());
} catch (RuntimeException e) {
log.error("Unable to get serialized data for query {}", this);
result = Clip.of(getErrorMeta(e));
}
return result;
}
use of com.yahoo.bullet.result.Clip in project bullet-core by yahoo.
the class CountDistinct method getResult.
@Override
public Clip getResult() {
Clip result = super.getResult();
renameInPlace(result.getRecords());
return result;
}
Aggregations