org.unigram.likelike.util.accessor.cassandra
Class AccessRelatedExamples

java.lang.Object
  extended by org.unigram.likelike.util.accessor.cassandra.AccessRelatedExamples
All Implemented Interfaces:
IReader, IWriter

public class AccessRelatedExamples
extends java.lang.Object
implements IWriter, IReader


Constructor Summary
AccessRelatedExamples(org.apache.hadoop.conf.Configuration conf)
           
 
Method Summary
 java.util.Map<java.lang.String,byte[]> read(java.lang.Long key)
           
 boolean write(java.lang.Long key, java.lang.Long value, org.apache.hadoop.mapreduce.Reducer.Context context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessRelatedExamples

public AccessRelatedExamples(org.apache.hadoop.conf.Configuration conf)
Method Detail

write

public boolean write(java.lang.Long key,
                     java.lang.Long value,
                     org.apache.hadoop.mapreduce.Reducer.Context context)
              throws java.lang.Exception,
                     java.lang.InterruptedException
Specified by:
write in interface IWriter
Throws:
java.lang.Exception
java.lang.InterruptedException

read

public java.util.Map<java.lang.String,byte[]> read(java.lang.Long key)
                                            throws java.lang.Exception,
                                                   java.lang.InterruptedException
Specified by:
read in interface IReader
Throws:
java.lang.Exception
java.lang.InterruptedException