private class VectorFile2DatabaseImporter.TemplateVectorImporter extends SOMLibTemplateVector
Modifier and Type | Field and Description |
---|---|
private MySQLConnector |
dbConnector |
dim, elementMap, elements, longestStringLength, numInfo, numVectors, templateFileName
templateFileNameSuffix
Constructor and Description |
---|
VectorFile2DatabaseImporter.TemplateVectorImporter(String templateFileName,
MySQLConnector dbConnector) |
Modifier and Type | Method and Description |
---|---|
protected void |
processLine(int index,
String[] lineElements)
Stores the information read in the database.
|
readTemplateVectorFile, readTemplateVectorFileHeader, setComponentNames, setLabel
containsLabel, dim, getDocumentFrequency, getElement, getElement, getIndex, getIndexOfFeature, getLabel, getLabels, getLabelsAsList, getLongestStringLength, getTFxIDFVectorFromTerms, incNumVectors, numinfo, numVectors, setElement
private MySQLConnector dbConnector
public VectorFile2DatabaseImporter.TemplateVectorImporter(String templateFileName, MySQLConnector dbConnector) throws IOException
IOException
protected void processLine(int index, String[] lineElements)
processLine
in class SOMLibTemplateVector
index
- the index (number) of this attributelineElements
- the elements of this line, split by the delimiter