@Test public void setSelectPrecision() { selectValuesMeta.setSelectPrecision( new int[] { 1, 2 } ); assertArrayEquals( new int[] { 1, 2 }, selectValuesMeta.getSelectPrecision() ); }
public void setSelectPrecision( int[] selectPrecision ) { if ( selectPrecision.length > selectFields.length ) { resizeSelectFields( selectPrecision.length ); } for ( int i = 0; i < selectFields.length; i++ ) { if ( i < selectPrecision.length ) { selectFields[i].setPrecision( selectPrecision[i] ); } else { selectFields[i].setPrecision( UNDEFINED ); } } }
SelectValuesMeta extends BaseStepMeta implements StepMetaInterface { public void setSelectPrecision( int[] selectPrecision ) { if ( selectPrecision.length > selectFields.length ) { resizeSelectFields( selectPrecision.length ); } for ( int i = 0; i < selectFields.length; i++ ) { if ( i < selectPrecision.length ) { selectFields[i].setPrecision( selectPrecision[i] ); } else { selectFields[i].setPrecision( UNDEFINED ); } } } }
SelectValuesMeta extends BaseStepMeta implements StepMetaInterface { public void setSelectPrecision( int[] selectPrecision ) { if ( selectPrecision.length > selectFields.length ) { resizeSelectFields( selectPrecision.length ); } for ( int i = 0; i < selectFields.length; i++ ) { if ( i < selectPrecision.length ) { selectFields[i].setPrecision( selectPrecision[i] ); } else { selectFields[i].setPrecision( UNDEFINED ); } } } SelectValuesMeta(); }
SelectValuesMeta extends BaseStepMeta implements StepMetaInterface { public void setSelectPrecision( int[] selectPrecision ) { if ( selectPrecision.length > selectFields.length ) { resizeSelectFields( selectPrecision.length ); } for ( int i = 0; i < selectFields.length; i++ ) { if ( i < selectPrecision.length ) { selectFields[i].setPrecision( selectPrecision[i] ); } else { selectFields[i].setPrecision( UNDEFINED ); } } } SelectValuesMeta(); String[] getDeleteName(); void setDeleteName( String[] deleteName ); void setSelectName( String[] selectName ); String[] getSelectName(); void setSelectRename( String[] selectRename ); String[] getSelectRename(); void setSelectLength( int[] selectLength ); int[] getSelectLength(); void setSelectPrecision( int[] selectPrecision ); int[] getSelectPrecision(); @Override void loadXML( Node stepnode, List<DatabaseMeta> databases, IMetaStore metaStore ); void allocate( int nrFields, int nrRemove, int nrMeta ); @Override Object clone(); @Override void setDefault(); void getSelectFields( RowMetaInterface inputRowMeta, String name ); void getDeleteFields( RowMetaInterface inputRowMeta ); @Deprecated void getMetadataFields( RowMetaInterface inputRowMeta, String name ); void getMetadataFields( RowMetaInterface inputRowMeta, String name, VariableSpace space ); @Override void getFields( RowMetaInterface inputRowMeta, String name, RowMetaInterface[] info, StepMeta nextStep,
      VariableSpace space, Repository repository, IMetaStore metaStore ); @Override String getXML(); @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 ); @Override void check( List<CheckResultInterface> remarks, TransMeta transMeta, StepMeta stepMeta, RowMetaInterface prev,
      String[] input, String[] output, RowMetaInterface info, VariableSpace space, Repository repository,
      IMetaStore metaStore ); @Override StepInterface getStep( StepMeta stepMeta, StepDataInterface stepDataInterface, int cnr, TransMeta transMeta,
      Trans trans ); @Override StepDataInterface getStepData(); boolean isSelectingAndSortingUnspecifiedFields(); void setSelectingAndSortingUnspecifiedFields( boolean selectingAndSortingUnspecifiedFields ); SelectMetadataChange[] getMeta(); void setMeta( SelectMetadataChange[] meta ); @Override boolean supportsErrorHandling(); SelectField[] getSelectFields(); void setSelectFields( SelectField[] selectFields ); List<FieldnameLineage> getFieldnameLineage(); }
SelectValuesMeta extends BaseStepMeta implements StepMetaInterface { public void setSelectPrecision( int[] selectPrecision ) { if ( selectPrecision.length > selectFields.length ) { resizeSelectFields( selectPrecision.length ); } for ( int i = 0; i < selectFields.length; i++ ) { if ( i < selectPrecision.length ) { selectFields[i].setPrecision( selectPrecision[i] ); } else { selectFields[i].setPrecision( UNDEFINED ); } } } SelectValuesMeta(); String[] getDeleteName(); void setDeleteName( String[] deleteName ); void setSelectName( String[] selectName ); String[] getSelectName(); void setSelectRename( String[] selectRename ); String[] getSelectRename(); void setSelectLength( int[] selectLength ); int[] getSelectLength(); void setSelectPrecision( int[] selectPrecision ); int[] getSelectPrecision(); @Override void loadXML( Node stepnode, List<DatabaseMeta> databases, IMetaStore metaStore ); void allocate( int nrFields, int nrRemove, int nrMeta ); @Override Object clone(); @Override void setDefault(); void getSelectFields( RowMetaInterface inputRowMeta, String name ); void getDeleteFields( RowMetaInterface inputRowMeta ); @Deprecated void getMetadataFields( RowMetaInterface inputRowMeta, String name ); void getMetadataFields( RowMetaInterface inputRowMeta, String name, VariableSpace space ); @Override void getFields( RowMetaInterface inputRowMeta, String name, RowMetaInterface[] info, StepMeta nextStep,
      VariableSpace space, Repository repository, IMetaStore metaStore ); @Override String getXML(); @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 ); @Override void check( List<CheckResultInterface> remarks, TransMeta transMeta, StepMeta stepMeta, RowMetaInterface prev,
      String[] input, String[] output, RowMetaInterface info, VariableSpace space, Repository repository,
      IMetaStore metaStore ); @Override StepInterface getStep( StepMeta stepMeta, StepDataInterface stepDataInterface, int cnr, TransMeta transMeta,
      Trans trans ); @Override StepDataInterface getStepData(); boolean isSelectingAndSortingUnspecifiedFields(); void setSelectingAndSortingUnspecifiedFields( boolean selectingAndSortingUnspecifiedFields ); SelectMetadataChange[] getMeta(); void setMeta( SelectMetadataChange[] meta ); @Override boolean supportsErrorHandling(); SelectField[] getSelectFields(); void setSelectFields( SelectField[] selectFields ); List<FieldnameLineage> getFieldnameLineage(); static final int UNDEFINED; }