Java* API Reference for Intel® Data Analytics Acceleration Library 2019 Update 5

List of all members
Compression Class Reference

The base class that provides methods for the compression and decompression operation. More...

Class Constructor

Compression ( DaalContext  context)

Constructs the compression algorithm

Parameters
contextContext to manage the compression algorithm

Detailed Description

References

Member Function Documentation

void checkInputParams ( byte[]  inBlock,
long  size 
)

Checks of the input stream parameters

Parameters
inBlockInput data block
sizeSize in bytes of the input data block
void checkInputParams ( byte[]  inBlock)

Checks of the input stream parameters

Parameters
inBlockInput data block
void checkOutputParams ( byte[]  outBlock,
long  size 
)

Checks of the output stream parameters

Parameters
outBlockOutput data block
sizeSize in bytes of the output data block
void checkOutputParams ( byte[]  outBlock)

Checks of the output stream parameters

Parameters
outBlockOutput data block
void dispose ( )

Releases memory allocated for the native Compression object

Implements Disposable.

long getUsedOutputDataBlockSize ( )

Returns the number of bytes used after run() method was called

Returns
Number of used bytes
boolean isOutputDataBlockFull ( )

Reports whether output data block is full after run() method was called

Returns
True if output data block is full, false otherwise
void run ( byte[]  outBlock,
long  size,
long  offset 
)

Performs the compression(or decompression) of the data block

Parameters
outBlockData block where compression(or decompression) results to be stored. Must be at least size+offset bytes
sizeNumber of bytes available in outBlock
offsetOffset in bytes, the starting position for the compression(or decompression) in outBlock
void setInputDataBlock ( byte[]  inBlock,
long  srcSize,
long  offset 
)

Associates input data block with the Compressor(or Decompressor)

Parameters
inBlockData block to compress(or decompress). Must be at least srcSize+offset bytes
srcSizeThe number of bytes to compress(or decompress) in the inBlock
offsetOffset in bytes, the starting position for the compression(or decompression) in inBlock
void setInputDataBlock ( byte[]  inBlock,
long  offset 
)

Associates input data block with the Compressor(or Decompressor)

Parameters
inBlockData block to compress(or decompress)
offsetOffset in bytes, the starting position for the compression(or decompression) in inBlock
void setInputDataBlock ( byte[]  inBlock)

Associates input data block with the compressor(or decompressor)

Parameters
inBlockData block to compress(or decompress)

The documentation for this class was generated from the following file:

For more complete information about compiler optimizations, see our Optimization Notice.