Search in sources :

Example 1 with RepositoryRecordUpdate

use of org.apache.nifi.controller.repository.schema.RepositoryRecordUpdate in project nifi by apache.

the class SchemaRepositoryRecordSerde method serializeRecord.

protected void serializeRecord(final RepositoryRecord record, final DataOutputStream out, RecordSchema schema, RecordSchema repositoryRecordSchema) throws IOException {
    final RepositoryRecordFieldMap fieldMap = new RepositoryRecordFieldMap(record, schema, contentClaimSchema);
    final RepositoryRecordUpdate update = new RepositoryRecordUpdate(fieldMap, repositoryRecordSchema);
    new SchemaRecordWriter().writeRecord(update, out);
}
Also used : RepositoryRecordFieldMap(org.apache.nifi.controller.repository.schema.RepositoryRecordFieldMap) RepositoryRecordUpdate(org.apache.nifi.controller.repository.schema.RepositoryRecordUpdate) SchemaRecordWriter(org.apache.nifi.repository.schema.SchemaRecordWriter)

Aggregations

RepositoryRecordFieldMap (org.apache.nifi.controller.repository.schema.RepositoryRecordFieldMap)1 RepositoryRecordUpdate (org.apache.nifi.controller.repository.schema.RepositoryRecordUpdate)1 SchemaRecordWriter (org.apache.nifi.repository.schema.SchemaRecordWriter)1