public class EncodingMapper extends org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,VectorWritable>
| Modifier and Type | Field and Description |
|---|---|
static String |
ANALYZER_NAME |
static String |
CARDINALITY |
static String |
ENCODER_CLASS |
static String |
ENCODER_FIELD_NAME |
static String |
USE_NAMED_VECTORS |
static String |
USE_SEQUENTIAL |
| Constructor and Description |
|---|
EncodingMapper() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
map(org.apache.hadoop.io.Text key,
org.apache.hadoop.io.Text value,
org.apache.hadoop.mapreduce.Mapper.Context context) |
protected void |
setup(org.apache.hadoop.mapreduce.Mapper.Context context) |
public static final String USE_NAMED_VECTORS
public static final String USE_SEQUENTIAL
public static final String ANALYZER_NAME
public static final String ENCODER_FIELD_NAME
public static final String ENCODER_CLASS
public static final String CARDINALITY
protected void setup(org.apache.hadoop.mapreduce.Mapper.Context context)
throws IOException,
InterruptedException
setup in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,VectorWritable>IOExceptionInterruptedExceptionprotected void map(org.apache.hadoop.io.Text key,
org.apache.hadoop.io.Text value,
org.apache.hadoop.mapreduce.Mapper.Context context)
throws IOException,
InterruptedException
map in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,VectorWritable>IOExceptionInterruptedExceptionCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.