Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Snap type:

Transform

...

Description:

...

In this article

Table of Contents

Overview

You can use this Snap to compress the contents of a binary stream. For example, you can connect this Snap

...

upstream of a File Writer Snap to compress the data before upload.

...

 If you need to archive and compress multiple files into a single ZIP file, use the ZipFile Write Snap.

...

[None]

...

...

Accounts are not used with this Snap.

...

InputThis Snap has exactly one binary input view.
OutputThis Snap has exactly one document output view.
ErrorThis Snap has at most one binary error view and produces binaries in the view.

...

Settings

Label

...

Compression Scheme

...

Snap Type

The Compress Snap is a TRANSFORM-type Snap that transforms the binary documents.

Prerequisites

None.

Support for Ultra Pipelines

Works in Ultra Pipelines.

Limitations and Known Issues

None.

Snap Views

Type

Format

Number of Views

Examples of Upstream and Downstream Snaps

Description

Input 

Binary

 

  • Min:1

  • Max:1

  • File Reader

  • Compress

The Binary file to be compressed.

Output

Binary

 

  • Min:1

  • Max:1

  • File Writer

  • Decompress

The Binary file in the specified compression format:

  • BZIP2

  • DEFLATE

  • GZIP

Error

Error handling is a generic way to handle errors without losing data or failing the Snap execution. You can handle the errors that the Snap might encounter while running the Pipeline by choosing one of the following options from the When errors occur list under the Views tab:

  • Stop Pipeline Execution: Stops the current pipeline execution when the Snap encounters an error.

  • Discard Error Data and Continue: Ignores the error, discards that record, and continues with the remaining records.

  • Route Error Data to Error View: Routes the error data to an error view without stopping the Snap execution.

Learn more about Error handling in Pipelines.

Snap Settings

Info
  • Asterisk ( * ): Indicates a mandatory field.

  • Suggestion icon ((blue star)): Indicates a list that is dynamically populated based on the configuration.

  • Expression icon ((blue star)): Indicates whether the value is an expression (if enabled) or a static value (if disabled). Learn more about Using Expressions in SnapLogic.

  • Add icon ((blue star)): Indicates that you can add fields in the field set.

  • Remove icon ((blue star)): Indicates that you can remove fields from the field set.

Field Name

Field Type

Description

Label*

Default ValueCompress
ExampleCompress

String

Specify a unique name for the Snap.

Compression Scheme*

Default value: GZIP
ExampleDEFLATE

Dropdown list

Choose one of the following compression schemes to compress the data:

  • BZIP2

  • DEFLATE

  • GZIP

Snap Execution

Default

...

Multiexcerpt include macro
nameSnap Execution
pageAnaplan Read

Value:

...

Validate & Execute
Example: Execute only

Dropdown list

Multiexcerpt include macro
nameSnap_Execution_Introduced
pageAnaplan Read

...

...

Snap Pack

...

History