Codota Logo
ValueDataUtil.createChecksum
Code IndexAdd Codota to your IDE (free)

How to use
createChecksum
method
in
org.pentaho.di.core.row.ValueDataUtil

Best Java code snippets using org.pentaho.di.core.row.ValueDataUtil.createChecksum (Showing top 11 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: pentaho/pentaho-kettle

/**
 * @deprecated Use {@link ValueDataUtil#createChecksum(ValueMetaInterface, Object, String, boolean)} instead
 */
@Deprecated
public static String createChecksum( ValueMetaInterface metaA, Object dataA, String type ) {
 String checksum = null;
 try {
  checksum = createChecksum( metaA, dataA, type, false );
 } catch ( KettleFileNotFoundException e ) {
  // Ignore
 }
 return checksum;
}
origin: pentaho/pentaho-kettle

@Test
public void checksumWithoutFailIfNoFileTest() throws Exception {
 String path = getClass().getResource( "txt-sample.txt" ).getPath();
 String checksum = ValueDataUtil.createChecksum( new ValueMetaString(), path, "MD5", false );
 assertEquals( "098f6bcd4621d373cade4e832627b4f6", checksum );
}
origin: pentaho/pentaho-kettle

@Test
public void checksumTest() {
 String path = getClass().getResource( "txt-sample.txt" ).getPath();
 String checksum = ValueDataUtil.createChecksum( new ValueMetaString(), path, "MD5" );
 assertEquals( "098f6bcd4621d373cade4e832627b4f6", checksum );
}
origin: pentaho/pentaho-kettle

@Test
public void checksumWithFailIfNoFileTest() throws Exception {
 String path = getClass().getResource( "txt-sample.txt" ).getPath();
 String checksum = ValueDataUtil.createChecksum( new ValueMetaString(), path, "MD5", true );
 assertEquals( "098f6bcd4621d373cade4e832627b4f6", checksum );
}
origin: pentaho/pentaho-kettle

@Test( expected = KettleFileNotFoundException.class )
public void checksumFailIfNoFileTest() throws KettleFileNotFoundException {
 String nonExistingPath = "nonExistingPath";
 ValueDataUtil.createChecksum( new ValueMetaString(), nonExistingPath, "MD5", true );
}
origin: pentaho/pentaho-kettle

@Test
public void checksumMissingFileTest() {
 String nonExistingFile = "nonExistingFile";
 String checksum = ValueDataUtil.createChecksum( new ValueMetaString(), nonExistingFile, "MD5" );
 assertNull( checksum );
}
origin: pentaho/pentaho-kettle

@Test
public void checksumNullPathTest() {
 String nonExistingFile = "nonExistingFile";
 String checksum = ValueDataUtil.createChecksum( new ValueMetaString(), nonExistingFile, "MD5" );
 assertNull( checksum );
}
origin: pentaho/pentaho-kettle

@Test
public void checksumNullPathFailTest() throws KettleFileNotFoundException {
 assertNull( ValueDataUtil.createChecksum( new ValueMetaString(), null, "MD5", true ) );
}
origin: pentaho/pentaho-kettle

@Test
public void checksumNoFailIfNoFileTest() throws KettleFileNotFoundException {
 String nonExistingFile = "nonExistingFile";
 String checksum = ValueDataUtil.createChecksum( new ValueMetaString(), nonExistingFile, "MD5", false );
 assertNull( checksum );
}
origin: pentaho/pentaho-kettle

@Test
public void checksumNullPathNoFailTest() throws KettleFileNotFoundException {
 assertNull( ValueDataUtil.createChecksum( new ValueMetaString(), null, "MD5", false ) );
}
origin: pentaho/pentaho-kettle

 break;
case CalculatorMetaFunction.CALC_MD5: // MD5
 calcData[index] = ValueDataUtil.createChecksum( metaA, dataA, "MD5", meta.isFailIfNoFile() );
 resultType = CalculatorMetaFunction.calcDefaultResultType[calcType];
 break;
case CalculatorMetaFunction.CALC_SHA1: // SHA-1
 calcData[index] = ValueDataUtil.createChecksum( metaA, dataA, "SHA-1", meta.isFailIfNoFile() );
 resultType = CalculatorMetaFunction.calcDefaultResultType[calcType];
 break;
org.pentaho.di.core.rowValueDataUtilcreateChecksum

Popular methods of ValueDataUtil

  • checksumAdler32
  • checksumCRC32
  • getFileEncoding
    Get file encoding.
  • isXMLFileWellFormed
    Checks an xml file is well formed.
  • loadFileContentInBinary
  • plus
  • round
    Rounding with decimal places with a given rounding method
  • DateDiff
    Returns the number of days that have elapsed between dataA and dataB.
  • DateWorkingDiff
  • combination1
    A + B * C
  • combination2
    SQRT( A*A + B*B )
  • divide
  • combination2,
  • divide,
  • divideBigDecimals,
  • getJaroWinkler_Similitude,
  • getJaro_Similitude,
  • isSpace,
  • minus,
  • multiply,
  • multiplyBigDecimals

Popular in Java

  • Making http requests using okhttp
  • getSharedPreferences (Context)
  • putExtra (Intent)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now