Example usage for org.apache.hadoop.fs XAttrCodec decodeValue

List of usage examples for org.apache.hadoop.fs XAttrCodec decodeValue

Introduction

In this page you can find the example usage for org.apache.hadoop.fs XAttrCodec decodeValue.

Prototype

public static byte[] decodeValue(String value) throws IOException 

Source Link

Document

Decode string representation of a value and check whether it's encoded.

Usage

From source file:com.bigstep.datalake.JsonUtil.java

License:Apache License

private static byte[] decodeXAttrValue(String value) throws IOException {
    if (value != null) {
        return XAttrCodec.decodeValue(value);
    } else {/* ww  w  . j a va  2 s  . c o m*/
        return new byte[0];
    }
}