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.apache.jena.tdbloader4.io.LongQuadWritable.java

public class LongQuadWritable extends BinaryComparable
        implements WritableComparable<BinaryComparable>, Serializable, Cloneable {

    private static final long serialVersionUID = -7228403148893164927L;
    static final int LONG_BYTE_LENGTH = 8;
    static final int LONG_QUAD_BYTE_LENGTH = 4 * LONG_BYTE_LENGTH;

From source file org.apache.jena.tdbloader4.io.QuadWritable.java

public class QuadWritable extends BinaryComparable implements WritableComparable<BinaryComparable> {

    private Quad quad;
    private byte[] bytes;
    private int length;

From source file org.apache.mahout.common.IntPairWritable.java

/**
 * A {@link WritableComparable} which encapsulates an ordered pair of signed integers.
 */
public final class IntPairWritable extends BinaryComparable
        implements WritableComparable<BinaryComparable>, Cloneable {

From source file org.apache.mahout.utils.nlp.collocations.llr.Gram.java

/**
 * Writable for holding data generated from the collocation discovery jobs. Depending on the job configuration
 * gram may be one or more words. In some contexts this is used to hold a complete ngram, while in others it
 * holds a part of an existing ngram (subgram). Tracks the frequency of the gram and its position in the ngram
 * in which is was found.
 */

From source file org.apache.mahout.utils.nlp.collocations.llr.GramKey.java

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

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

From source file org.apache.mahout.vectorizer.collocations.llr.Gram.java

/**
 * Writable for holding data generated from the collocation discovery jobs. Depending on the job configuration
 * gram may be one or more words. In some contexts this is used to hold a complete ngram, while in others it
 * holds a part of an existing ngram (subgram). Tracks the frequency of the gram and its position in the ngram
 * in which is was found.
 */

From source file org.apache.mahout.vectorizer.collocations.llr.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.apache.pig.backend.hadoop.executionengine.spark_streaming.Text.java

/** This class stores text 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 org.commoncrawl.util.BinaryComparableWithOffset.java

/**
 * adds offset support to BinaryComparable
 * 
 * @author rana
 *
 */

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

/**
 * Writable for holding data generated from the collocation discovery jobs. Depending on the job configuration
 * gram may be one or more words. In some contexts this is used to hold a complete ngram, while in others it
 * holds a part of an existing ngram (subgram). Tracks the frequency of the gram and its position in the ngram
 * in which is was found.
 */