org.apache.mahout.ga.watchmaker.cd
Class FileInfoParser

java.lang.Object
  extended by org.apache.mahout.ga.watchmaker.cd.FileInfoParser

public class FileInfoParser
extends java.lang.Object

Initializes a DataSet using a special format file.
The file contains for each attribute one of the following:


Field Summary
static java.lang.String IGNORED_TOKEN
           
static java.lang.String LABEL_TOKEN
           
static java.lang.String NOMINAL_TOKEN
           
static java.lang.String NUMERICAL_TOKEN
           
 
Method Summary
static org.apache.hadoop.fs.Path getInfoFile(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path inpath)
          Prepares the path for the info file corresponding to the input path.
static DataSet parseFile(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path inpath)
          Initializes a dataset using an info file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IGNORED_TOKEN

public static final java.lang.String IGNORED_TOKEN
See Also:
Constant Field Values

LABEL_TOKEN

public static final java.lang.String LABEL_TOKEN
See Also:
Constant Field Values

NOMINAL_TOKEN

public static final java.lang.String NOMINAL_TOKEN
See Also:
Constant Field Values

NUMERICAL_TOKEN

public static final java.lang.String NUMERICAL_TOKEN
See Also:
Constant Field Values
Method Detail

parseFile

public static DataSet parseFile(org.apache.hadoop.fs.FileSystem fs,
                                org.apache.hadoop.fs.Path inpath)
                         throws java.io.IOException
Initializes a dataset using an info file.

Parameters:
fs - file system
inpath - info file
Returns:
Initialized Dataset
Throws:
java.io.IOException

getInfoFile

public static org.apache.hadoop.fs.Path getInfoFile(org.apache.hadoop.fs.FileSystem fs,
                                                    org.apache.hadoop.fs.Path inpath)
                                             throws java.io.IOException
Prepares the path for the info file corresponding to the input path.

Parameters:
fs - file system
inpath -
Throws:
java.io.IOException


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