@Test public void testIndexedValsList() { String val1 = "val1"; String val2 = "val2"; String val3 = "val3"; List<String> indexedValsList = AvroInputMeta.indexedValsList( val1 + " , " + val2 + "," + val3 + " " ); assertEquals( new ArrayList<>( Arrays.asList( val1, val2, val3 ) ), indexedValsList ); assertEquals( val1 + "," + val2 + "," + val3, AvroInputMeta.indexedValsList( indexedValsList ) ); }
protected static String indexedValsList( List<String> indexedVals ) { StringBuffer temp = new StringBuffer(); for ( int i = 0; i < indexedVals.size(); i++ ) { temp.append( indexedVals.get( i ) ); if ( i < indexedVals.size() - 1 ) { temp.append( "," ); } } return temp.toString(); }
AvroInputMeta extends BaseStepMeta implements StepMetaInterface { protected static String indexedValsList( List<String> indexedVals ) { StringBuffer temp = new StringBuffer(); for ( int i = 0; i < indexedVals.size(); i++ ) { temp.append( indexedVals.get( i ) ); if ( i < indexedVals.size() - 1 ) { temp.append( "," ); } } return temp.toString(); } }
AvroInputMeta extends BaseStepMeta implements StepMetaInterface { protected static String indexedValsList( List<String> indexedVals ) { StringBuffer temp = new StringBuffer(); for ( int i = 0; i < indexedVals.size(); i++ ) { temp.append( indexedVals.get( i ) ); if ( i < indexedVals.size() - 1 ) { temp.append( "," ); } } return temp.toString(); }  }
AvroInputMeta extends BaseStepMeta implements StepMetaInterface { protected static String indexedValsList( List<String> indexedVals ) { StringBuffer temp = new StringBuffer(); for ( int i = 0; i < indexedVals.size(); i++ ) { temp.append( indexedVals.get( i ) ); if ( i < indexedVals.size() - 1 ) { temp.append( "," ); } } return temp.toString(); }  void setAvroInField( boolean a ); boolean getAvroInField(); void setAvroFieldName( String f ); String getAvroFieldName(); void setSchemaInField( boolean s ); boolean getSchemaInField(); void setSchemaFieldName( String fn ); String getSchemaFieldName(); void setSchemaInFieldIsPath( boolean p ); boolean getSchemaInFieldIsPath(); void setCacheSchemasInMemory( boolean c ); boolean getCacheSchemasInMemory(); void setFilename( String filename ); String getFilename(); void setSchemaFilename( String schemaFile ); String getSchemaFilename(); boolean getAvroIsJsonEncoded(); void setAvroIsJsonEncoded( boolean j ); void setAvroFields( List<AvroField> fields ); List<AvroField> getAvroFields(); List<LookupField> getLookupFields(); void setLookupFields( List<LookupField> lookups ); void setDontComplainAboutMissingFields( boolean c ); boolean getDontComplainAboutMissingFields(); @Override void getFields( RowMetaInterface rowMeta, String origin, RowMetaInterface[] info, StepMeta nextStep,
      VariableSpace space ); void check( List<CheckResultInterface> remarks, TransMeta transMeta, StepMeta stepMeta, RowMetaInterface prev,
      String[] input, String[] output, RowMetaInterface info ); StepInterface getStep( StepMeta stepMeta, StepDataInterface stepDataInterface, int copyNr,
      TransMeta transMeta, Trans trans ); StepDataInterface getStepData(); @Override String getXML(); @Override void loadXML( Node stepnode, List<DatabaseMeta> databases, IMetaStore metaStore ); @Override void readRep( Repository rep, IMetaStore metaStore, ObjectId id_step, List<DatabaseMeta> databases ); @Override void saveRep( Repository rep, IMetaStore metaStore, ObjectId id_transformation, ObjectId id_step ); void setDefault(); @Override String getDialogClassName(); @Override boolean supportsErrorHandling(); }
AvroInputMeta extends BaseStepMeta implements StepMetaInterface { protected static String indexedValsList( List<String> indexedVals ) { StringBuffer temp = new StringBuffer(); for ( int i = 0; i < indexedVals.size(); i++ ) { temp.append( indexedVals.get( i ) ); if ( i < indexedVals.size() - 1 ) { temp.append( "," ); } } return temp.toString(); }  void setAvroInField( boolean a ); boolean getAvroInField(); void setAvroFieldName( String f ); String getAvroFieldName(); void setSchemaInField( boolean s ); boolean getSchemaInField(); void setSchemaFieldName( String fn ); String getSchemaFieldName(); void setSchemaInFieldIsPath( boolean p ); boolean getSchemaInFieldIsPath(); void setCacheSchemasInMemory( boolean c ); boolean getCacheSchemasInMemory(); void setFilename( String filename ); String getFilename(); void setSchemaFilename( String schemaFile ); String getSchemaFilename(); boolean getAvroIsJsonEncoded(); void setAvroIsJsonEncoded( boolean j ); void setAvroFields( List<AvroField> fields ); List<AvroField> getAvroFields(); List<LookupField> getLookupFields(); void setLookupFields( List<LookupField> lookups ); void setDontComplainAboutMissingFields( boolean c ); boolean getDontComplainAboutMissingFields(); @Override void getFields( RowMetaInterface rowMeta, String origin, RowMetaInterface[] info, StepMeta nextStep,
      VariableSpace space ); void check( List<CheckResultInterface> remarks, TransMeta transMeta, StepMeta stepMeta, RowMetaInterface prev,
      String[] input, String[] output, RowMetaInterface info ); StepInterface getStep( StepMeta stepMeta, StepDataInterface stepDataInterface, int copyNr,
      TransMeta transMeta, Trans trans ); StepDataInterface getStepData(); @Override String getXML(); @Override void loadXML( Node stepnode, List<DatabaseMeta> databases, IMetaStore metaStore ); @Override void readRep( Repository rep, IMetaStore metaStore, ObjectId id_step, List<DatabaseMeta> databases ); @Override void saveRep( Repository rep, IMetaStore metaStore, ObjectId id_transformation, ObjectId id_step ); void setDefault(); @Override String getDialogClassName(); @Override boolean supportsErrorHandling();  }