Entry metaEntry = Entry.findEntry( entry.getKey() ); if ( metaEntry != null ) { String value = (String) entry.getValue(); switch ( metaEntry ) { case NEW_FIELDNAME:
private static void assertInjected( List<StepInjectionMetaEntry> fields, List<StepInjectionMetaEntry> toBeInjected ) { Map<String, StepInjectionMetaEntry> map = new HashMap<String, StepInjectionMetaEntry>( fields.size() ); for ( StepInjectionMetaEntry field : fields ) { map.put( field.getKey(), field ); } for ( StepInjectionMetaEntry entry : toBeInjected ) { StepInjectionMetaEntry field = map.get( entry.getKey() ); assertNotNull( entry.getKey(), field ); Object value = field.getValue(); if ( value == null ) { assertNull( entry.getKey(), entry.getValue() ); } else { assertEquals( entry.getKey(), entry.getValue(), value ); } } }
schemaName = (String) entry.getValue(); } else if ( entry.getKey().equals( "TABLE" ) ) { tableName = (String) entry.getValue(); } else if ( entry.getKey().equals( "LOGFILE" ) ) { logFile = (String) entry.getValue(); } else if ( entry.getKey().equals( "FIELD_SEPARATOR" ) ) { fieldSeparator = (String) entry.getValue(); } else if ( entry.getKey().equals( "FIELD_ENCLOSURE" ) ) { fieldEnclosure = (String) entry.getValue(); } else if ( entry.getKey().equals( "NULL_REPRESENTATION" ) ) { setNULLrepresentation( (String) entry.getValue() ); } else if ( entry.getKey().equals( "ENCODING" ) ) { encoding = (String) entry.getValue(); } else if ( entry.getKey().equals( "BUFFER_SIZE" ) ) { bufferSize = (String) entry.getValue(); } else if ( entry.getKey().equals( "TRUNCATE" ) ) { truncate = (Boolean) entry.getValue(); } else if ( entry.getKey().equals( "FULLY_QUOTE_SQL" ) ) { fullyQuoteSQL = (Boolean) entry.getValue(); } else { throw new RuntimeException( "Unhandled metadata injection of attribute: " KettleAttributeInterface fieldAttr = findAttribute( fieldAttribute.getKey() ); Object attributeValue = fieldAttribute.getValue();
String lookValue = (String) lookFields.getValue(); switch ( fieldsEntry ) { case GROUP_FIELDS: Entry metaEntry = Entry.findEntry( entry.getKey() ); if ( metaEntry != null ) { String value = (String) entry.getValue(); switch ( metaEntry ) { case GROUP_FIELDNAME: Entry metaEntry = Entry.findEntry( entry.getKey() ); if ( metaEntry != null ) { String value = (String) entry.getValue(); switch ( metaEntry ) { case AGG_FIELDNAME:
schemaName = (String) entry.getValue(); } else if ( entry.getKey().equals( "TABLE" ) ) { tableName = (String) entry.getValue(); } else if ( entry.getKey().equals( "LOADACTION" ) ) { loadAction = (String) entry.getValue(); } else if ( entry.getKey().equals( "DBNAMEOVERRIDE" ) ) { dbNameOverride = (String) entry.getValue(); } else if ( entry.getKey().equals( "ENCLOSURE" ) ) { enclosure = (String) entry.getValue(); } else if ( entry.getKey().equals( "DELIMITER" ) ) { delimiter = (String) entry.getValue(); } else if ( entry.getKey().equals( "STOPONERROR" ) ) { stopOnError = (Boolean) entry.getValue(); } else { throw new RuntimeException( "Unhandled metadata injection of attribute: " KettleAttributeInterface fieldAttr = findAttribute( fieldAttribute.getKey() ); String attributeValue = (String) fieldAttribute.getValue(); if ( fieldAttr.getKey().equals( "STREAMNAME" ) ) { getFieldStream()[row] = attributeValue;
filename = (String) entry.getValue(); } else if ( attr.getKey().equals( "FILENAME_FIELD" ) ) { filenameField = (String) entry.getValue(); } else if ( attr.getKey().equals( "ROW_NUM_FIELD" ) ) { rowNumField = (String) entry.getValue(); } else if ( attr.getKey().equals( "HEADER_PRESENT" ) ) { headerPresent = (Boolean) entry.getValue(); } else if ( attr.getKey().equals( "DELIMITER" ) ) { delimiter = (String) entry.getValue(); } else if ( attr.getKey().equals( "ENCLOSURE" ) ) { enclosure = (String) entry.getValue(); } else if ( attr.getKey().equals( "BUFFERSIZE" ) ) { bufferSize = (String) entry.getValue(); } else if ( attr.getKey().equals( "LAZY_CONVERSION" ) ) { lazyConversionActive = (Boolean) entry.getValue(); } else if ( attr.getKey().equals( "PARALLEL" ) ) { runningInParallel = (Boolean) entry.getValue(); } else if ( attr.getKey().equals( "NEWLINE_POSSIBLE" ) ) { newlinePossibleInFields = (Boolean) entry.getValue(); } else if ( attr.getKey().equals( "ADD_FILENAME_RESULT" ) ) { isaddresult = (Boolean) entry.getValue(); } else if ( attr.getKey().equals( "ENCODING" ) ) { encoding = (String) entry.getValue(); } else { throw new RuntimeException( "Unhandled metadata injection of attribute: " String attributeValue = (String) fieldAttribute.getValue(); if ( fieldAttr.getKey().equals( "FIELD_NAME" ) ) { inputField.setName( attributeValue );
Entry metaEntry = Entry.findEntry( entry.getKey() ); if ( metaEntry != null ) { String value = (String) entry.getValue(); switch ( metaEntry ) { case NAME: Entry metaEntry = Entry.findEntry( entry.getKey() ); if ( metaEntry != null ) { String value = (String) entry.getValue(); switch ( metaEntry ) { case DATA_VALUE:
String lookFieldsValue = lookFields.getValue() instanceof String ? (String) lookFields.getValue() : null; Entry fieldsEntry = Entry.findEntry( lookFields.getKey() ); if ( fieldsEntry != null ) { Entry metaEntry = Entry.findEntry( entry.getKey() ); if ( metaEntry != null ) { String value = (String) entry.getValue(); switch ( metaEntry ) { case FILE_PATH: Entry metaEntry = Entry.findEntry( entry.getKey() ); if ( metaEntry != null ) { String value = (String) entry.getValue(); switch ( metaEntry ) { case INPUTFIELD_NAME:
Entry metaEntry = Entry.findEntry( entry.getKey() ); if ( metaEntry != null ) { Object value = entry.getValue(); if ( value != null ) { switch ( metaEntry ) {
String lookValue = (String) lookFields.getValue(); switch ( fieldsEntry ) { case FILENAME_LINES: Entry metaEntry = Entry.findEntry( entry.getKey() ); if ( metaEntry != null ) { String value = (String) entry.getValue(); switch ( metaEntry ) { case FILENAME: Entry metaEntry = Entry.findEntry( entry.getKey() ); if ( metaEntry != null ) { String value = (String) entry.getValue(); switch ( metaEntry ) { case FIELD_NAME:
Entry metaEntry = Entry.findEntry( entry.getKey() ); if ( metaEntry != null ) { String value = (String) entry.getValue(); switch ( metaEntry ) { case NAME:
String lookValue = (String) lookFields.getValue(); switch ( fieldsEntry ) { case FILENAME_LINES: Entry metaEntry = Entry.findEntry( entry.getKey() ); if ( metaEntry != null ) { String value = (String) entry.getValue(); switch ( metaEntry ) { case FILENAME: Entry metaEntry = Entry.findEntry( entry.getKey() ); if ( metaEntry != null ) { String value = (String) entry.getValue(); switch ( metaEntry ) { case FIELD_NAME: Entry metaEntry = Entry.findEntry( entry.getKey() ); if ( metaEntry != null ) { String value = (String) entry.getValue(); switch ( metaEntry ) { case FILTER_POSITION: