ChecksumSHA256Impl (Apache Hadoop YARN Common 3.5.0 API)
Description: declaration: package: org.apache.hadoop.yarn.sharedcache, class: ChecksumSHA256Impl

Package org.apache.hadoop.yarn.sharedcache

# Class ChecksumSHA256Impl

java.lang.Object
org.apache.hadoop.yarn.sharedcache.ChecksumSHA256Impl

All Implemented Interfaces:
  `SharedCacheChecksum`

@Private @Evolving public class ChecksumSHA256Impl extends Object implements SharedCacheChecksum

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ChecksumSHA256Impl()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `computeChecksum(InputStream in)`
  Calculate the checksum of the passed input stream.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ChecksumSHA256Impl

    public ChecksumSHA256Impl()

- ## Method Details

  - ### computeChecksum

    public String computeChecksum(InputStream in) throws IOException
    Description copied from interface: `SharedCacheChecksum`
    Calculate the checksum of the passed input stream.
    Specified by:
      `computeChecksum` in interface `SharedCacheChecksum`
    Parameters:
      `in` - `InputStream` to be checksumed
    Returns:
      the message digest of the input stream
    Throws:
      `IOException` - io error occur.