public class TimeIndex extends StageProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
TimeIndex.Map
Emits each word with the total number of times the word was seen
|
static class |
TimeIndex.Reduce
Writes each word,count
|
| Constructor and Description |
|---|
TimeIndex() |
| Modifier and Type | Method and Description |
|---|---|
static LinkedHashMap<Long,IndependentPair<Long,Long>> |
readTimeCountLines(String path)
from a report output path get the words
|
SequenceFileTextStage<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text> |
stage() |
static void |
writeToMatlab(String path)
Write a CSV timeIndex to a
MLCell writen to a .mat data file |
public TimeIndex()
public static LinkedHashMap<Long,IndependentPair<Long,Long>> readTimeCountLines(String path) throws IOException
path - report output pathIOExceptionpublic SequenceFileTextStage<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text> stage()
stage in class StageProviderpublic static void writeToMatlab(String path) throws IOException
MLCell writen to a .mat data filepath - IOException