public abstract class VectorizationEngine extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Configuration |
conf |
protected Properties |
configProps |
protected InputFormat |
inputFormat |
protected boolean |
normalizeData |
protected String |
outputFilename |
protected OutputFormat |
outputFormat |
protected boolean |
printStats |
protected RecordReader |
reader |
protected boolean |
shuffleOn |
protected InputSplit |
split |
protected RecordWriter |
writer |
| Constructor and Description |
|---|
VectorizationEngine() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTransform()
These two methods are stubbing the future vector transform transform system
We want to separate the transform logic from the inputformat/recordreader
- example: a "thresholding" function that binarizes the vector entries
- example: a sampling function that takes a larger images and down-samples the image into a small vector
|
void |
applyTransforms() |
abstract void |
execute() |
void |
initialize(InputSplit split,
InputFormat inputFormat,
OutputFormat outputFormat,
RecordReader reader,
RecordWriter writer,
Properties configProps,
String outputFilename,
Configuration conf) |
protected InputFormat inputFormat
protected OutputFormat outputFormat
protected InputSplit split
protected RecordWriter writer
protected RecordReader reader
protected Properties configProps
protected String outputFilename
protected Configuration conf
protected boolean shuffleOn
protected boolean normalizeData
protected boolean printStats
public void initialize(InputSplit split, InputFormat inputFormat, OutputFormat outputFormat, RecordReader reader, RecordWriter writer, Properties configProps, String outputFilename, Configuration conf)
public abstract void execute()
throws CanovaException,
IOException,
InterruptedException
public void addTransform()
public void applyTransforms()
Copyright © 2016. All rights reserved.