org.apache.mahout.cf.taste.hadoop.cooccurence
Class TupleWritable

java.lang.Object
  extended by org.apache.hadoop.io.ArrayWritable
      extended by org.apache.mahout.cf.taste.hadoop.cooccurence.TupleWritable
All Implemented Interfaces:
org.apache.hadoop.io.Writable

public final class TupleWritable
extends org.apache.hadoop.io.ArrayWritable


Nested Class Summary
static class TupleWritable.Field
           
 
Constructor Summary
TupleWritable()
           
TupleWritable(int size)
           
TupleWritable(org.apache.hadoop.io.Writable... writables)
           
 
Method Summary
 TupleWritable.Field get(int idx)
           
 double getDouble(int idx)
           
 int getInt(int idx)
           
 long getLong(int idx)
           
 org.apache.hadoop.io.Text getText(int idx)
           
 void set(int idx, org.apache.hadoop.io.Writable field)
           
 
Methods inherited from class org.apache.hadoop.io.ArrayWritable
get, getValueClass, readFields, set, toArray, toStrings, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TupleWritable

public TupleWritable()

TupleWritable

public TupleWritable(int size)

TupleWritable

public TupleWritable(org.apache.hadoop.io.Writable... writables)
Method Detail

set

public void set(int idx,
                org.apache.hadoop.io.Writable field)

get

public TupleWritable.Field get(int idx)

getInt

public int getInt(int idx)

getLong

public long getLong(int idx)

getDouble

public double getDouble(int idx)

getText

public org.apache.hadoop.io.Text getText(int idx)


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.