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 |
---|
TemplateVectorImporter(java.lang.String templateFileName,
MySQLConnector dbConnector) |
Modifier and Type | Method and Description |
---|---|
protected void |
processLine(int index,
java.lang.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 TemplateVectorImporter(java.lang.String templateFileName, MySQLConnector dbConnector) throws java.io.IOException
java.io.IOException
protected void processLine(int index, java.lang.String[] lineElements)
processLine
in class SOMLibTemplateVector
index
- the index (number) of this attributelineElements
- the elements of this line, split by the delimiter