public interface WriteResult
Provides information about what was written to an OutputStream by a RecordSetWriter
.
Instances of WriteResult are typically instantiated by calling the static method of(int, Map)
or using EMPTY
.
PLEASE NOTE: This interface is still considered 'unstable' and may change in a non-backward-compatible manner between minor or incremental releases of NiFi.
Modifier and Type | Field and Description |
---|---|
static WriteResult |
EMPTY |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getAttributes() |
int |
getRecordCount() |
static WriteResult |
of(int recordCount,
Map<String,String> attributes)
Creates a WriteResult with the given record count and attributes
|
static final WriteResult EMPTY
int getRecordCount()
Map<String,String> getAttributes()
static WriteResult of(int recordCount, Map<String,String> attributes)
recordCount
- the number of records writtenattributes
- the attributes to add to the FlowFileWriteResult
representing the given parametersCopyright © 2021 Apache NiFi Project. All rights reserved.