Example usage for org.apache.hadoop.io BinaryComparable subclass-usage

List of usage examples for org.apache.hadoop.io BinaryComparable subclass-usage

Introduction

In this page you can find the example usage for org.apache.hadoop.io BinaryComparable subclass-usage.

Usage

From source file org.dkpro.bigdata.collocations.GramKey.java

/** A GramKey, based on the identity fields of Gram (type, string) plus a byte[] used for secondary ordering */
public final class GramKey extends BinaryComparable implements WritableComparable<BinaryComparable> {

    private int primaryLength;
    private int length;
    private byte[] bytes;

From source file org.elasticsearch.hadoop.hive.FastBytesWritable.java

/**
 * Replacement of {@link BytesWritable} that allows direct access to the underlying byte array without copying.
 */
public class FastBytesWritable extends BinaryComparable implements WritableComparable<BinaryComparable> {

    private int size;

From source file org.elasticsearch.hadoop.hive.HiveBytesArrayWritable.java

/**
 * Replacement of {@link BytesWritable} that allows direct access to the underlying byte array without copying.
 * Used to wrap already json serialized hive entities.
 */
public class HiveBytesArrayWritable extends BinaryComparable
        implements WritableComparable<BinaryComparable>, Serializable {

From source file org.elasticsearch.hadoop.hive.HiveEntityWritable.java

/**
 * Replacement of {@link BytesWritable} that allows direct access to the
 * underlying byte array without copying. Used to wrap already json serialized
 * hive entities.
 */
public class HiveEntityWritable extends BinaryComparable implements WritableComparable<BinaryComparable> {

From source file org.lilyproject.mapreduce.RecordIdWritable.java

/**
 * A Hadoop WritableComparable for Lily RecordId's.
 *
 * <p>Stores the length of the record id as a vint, followed by the normal binary
 * representation of the record id (= the same as used as row key in the HBase table).</p>
 */

From source file pathmerge.utils.MergePathValueWritable.java

public class MergePathValueWritable extends BinaryComparable implements WritableComparable<BinaryComparable> {

    private static final byte[] EMPTY_BYTES = {};
    private byte adjBitMap;
    private byte flag;
    private VKmerBytesWritable kmer;

From source file redpoll.text.RedpollStringWritable.java

/**
 * @author Jeremy Chow(coderplay@gmail.com)
 */
public class RedpollStringWritable extends BinaryComparable implements WritableComparable<BinaryComparable> {

    private static Charset charset;

From source file trec.MyText.java

/** This class stores MyText using standard UTF8 encoding.  It provides methods
 * to serialize, deserialize, and compare texts at byte level.  The type of
 * length is integer and is serialized using zero-compressed format.  <p>In
 * addition, it provides methods for string traversal without converting the
 * byte array to a string.  <p>Also includes utilities for
 * serializing/deserialing a string, coding/decoding a string, checking if a

From source file type.Kmer.java

/**
 * Fix kmer length byteswritable
 * It was used to generate the graph in which phase the kmer length doesn't change.
 * Thus the size of bytes doesn't change either.
 */
public class Kmer extends BinaryComparable implements Serializable, WritableComparable<BinaryComparable> {

From source file type.MergePathValueWritable.java

public class MergePathValueWritable extends BinaryComparable implements WritableComparable<BinaryComparable> {

    private static final byte[] EMPTY_BYTES = {};
    private byte adjBitMap;
    private byte flag;
    private VKmerBytesWritable kmer;