/** * Convert the binary data to the actual data type.<br> * - byte[] --> Long (Integer) - byte[] --> Double (Number) - byte[] --> BigDecimal (BigNumber) - byte[] --> Date * (Date) - byte[] --> Boolean (Boolean) - byte[] --> byte[] (Binary) * * @param binary * @return * @throws KettleValueException */ @Override public Object convertBinaryStringToNativeType( byte[] binary ) throws KettleValueException { if ( binary == null ) { return null; } numberOfBinaryStringConversions++; // OK, so we have an internal representation of the original object, read // from file. // First we decode it in the correct encoding // String string = convertBinaryStringToString( binary ); // In this method we always must convert the data. // We use the storageMetadata object to convert the binary string object. // // --> Convert from the String format to the current data type... // return convertData( storageMetadata, string ); }
return convertData( convertMeta, pol );
return compare( data1, convertData( meta2, data2 ) ); } catch ( Exception e ) { throw new KettleValueException(