Example usage for org.apache.mahout.math Varint writeSignedVarInt

List of usage examples for org.apache.mahout.math Varint writeSignedVarInt

Introduction

In this page you can find the example usage for org.apache.mahout.math Varint writeSignedVarInt.

Prototype

public static void writeSignedVarInt(int value, DataOutput out) throws IOException 

Source Link

Usage

From source file:nl.gridline.zieook.inx.movielens.items.RecommendationElement.java

License:Apache License

@Override
public void write(DataOutput out) throws IOException {
    Varint.writeSignedVarInt(_itemIndex, out);
    out.writeDouble(_similarityValue);
}

From source file:nl.gridline.zieook.inx.movielens.WeightedOccurrence.java

License:Apache License

@Override
public void write(DataOutput out) throws IOException {
    Varint.writeSignedVarInt(row, out);
    out.writeDouble(value);
    out.writeDouble(weight);
}