Example usage for org.apache.hadoop.io ArrayPrimitiveWritable ArrayPrimitiveWritable

List of usage examples for org.apache.hadoop.io ArrayPrimitiveWritable ArrayPrimitiveWritable

Introduction

In this page you can find the example usage for org.apache.hadoop.io ArrayPrimitiveWritable ArrayPrimitiveWritable.

Prototype

public ArrayPrimitiveWritable() 

Source Link

Document

Construct an empty instance, for use during Writable read

Usage

From source file:com.axiomine.largecollections.kryo.serializers.ArrayPrimitiveWritableSerializer.java

License:Apache License

public ArrayPrimitiveWritable read(Kryo kryo, Input input, Class<ArrayPrimitiveWritable> type) {
    int len = input.readInt(true);
    byte[] ba = input.readBytes(len);
    return (ArrayPrimitiveWritable) SerDeUtils.deserializeWritable(new ArrayPrimitiveWritable(), ba);
}