use of org.apache.accumulo.core.tabletserver.thrift.InputFile in project accumulo by apache.
the class ExternalCompactionJob method toThrift.
public TExternalCompactionJob toThrift() {
IteratorConfig iteratorSettings = SystemIteratorUtil.toIteratorConfig(iters);
List<InputFile> files = jobFiles.entrySet().stream().map(e -> {
var dfv = e.getValue();
return new InputFile(e.getKey().getPathStr(), dfv.getSize(), dfv.getNumEntries(), dfv.getTime());
}).collect(Collectors.toList());
return new TExternalCompactionJob(externalCompactionId.toString(), extent.toThrift(), files, iteratorSettings, compactTmpName.getPathStr(), propagateDeletes, org.apache.accumulo.core.tabletserver.thrift.TCompactionKind.valueOf(kind.name()), userCompactionId, overrides);
}
Aggregations