protected Field convertFieldSchema ( Schema inputSchema , Field field , WorkUnitState workUnit ) throws SchemaConversionException { if ( field . name ( ) . equals ( payloadField ) ) { // Create a payload field with latest schema return createLatestPayloadField ( field ) ; } // Make a copy of the field to the output schema return new Field ( field . name ( ) , field . schema ( ) , field . doc ( ) , field . defaultValue ( ) , field . order ( ) ) ; }
Convert to the output schema of a field