org.apache.oozie
Class BinaryBlob

java.lang.Object
  extended by org.apache.oozie.BinaryBlob

public class BinaryBlob
extends Object

BinaryBlob to maintain compress and uncompressed data


Constructor Summary
BinaryBlob(byte[] byteArray, boolean isUncompressed)
          Construct a binaryblob
 
Method Summary
 byte[] getBytes()
          Returns a decompressed byte array
 byte[] getRawBlob()
          Returns a raw blob
 void setBytes(byte[] byteArray)
          Set bytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryBlob

public BinaryBlob(byte[] byteArray,
                  boolean isUncompressed)
Construct a binaryblob

Parameters:
byteArray -
isUncompressed - - true if data is uncompressed
Method Detail

setBytes

public void setBytes(byte[] byteArray)
Set bytes

Parameters:
byteArray -

getBytes

public byte[] getBytes()
Returns a decompressed byte array

Returns:
byte array

getRawBlob

public byte[] getRawBlob()
Returns a raw blob

Returns:
raw blob


Copyright © 2015 Apache Software Foundation. All Rights Reserved.