Skip to main content

Pig

Currently, users can run dynamic decryption queries on Text or Sequence files in Java. This section details the steps necessary to set up decryption libraries for Java.

Configuration

CODE
Register the DgDecrypter JAR file:
register jar DgDecrypter.jar.

Create User-defined Pig Function:
define DgDecrypter com.dataguise.decrypterlib.pig.udf.DgDecrypter;

Usage Sample

CODE
Load the data into Pig:
input_lines = LOAD '/dec/TP.csv' USING TextLoader() AS (line:chararray);

Decrypt the data in Pig:
decrypted_lines = FOREACH input_lines GENERATE DgDecrypter(line) as line;

Dump decrypted data in Pig:
dump decrypted_lines;

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.