|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gisgraphy.domain.geoloc.importer.AbstractImporterProcessor
com.gisgraphy.domain.geoloc.importer.OpenStreetMapImporter
public class OpenStreetMapImporter
Import the street from an (pre-processed) openStreet map data file .
| Field Summary | |
|---|---|
static java.lang.Long |
generatedId
|
| Fields inherited from class com.gisgraphy.domain.geoloc.importer.AbstractImporterProcessor |
|---|
COMMENT_START, currentFile, importerConfig, in, internationalisationService, logger, readFileLine, status, statusMessage, totalReadLine, transactionManager |
| Constructor Summary | |
|---|---|
OpenStreetMapImporter()
|
|
| Method Summary | |
|---|---|
protected void |
flushAndClear()
Should flush and clear all the Daos that are used by the processor. |
protected java.io.File[] |
getFiles()
|
protected int |
getNumberOfColumns()
|
protected void |
processData(java.lang.String line)
Process a read line of the geonames file, must be implemented by the concrete class |
java.util.List<NameValueDTO<java.lang.Integer>> |
rollback()
/! |
protected void |
setCommitFlushMode()
Will flush after every commit |
void |
setOpenStreetMapDao(IOpenStreetMapDao openStreetMapDao)
|
protected void |
setup()
Template method that can be override. |
boolean |
shouldBeSkipped()
|
protected boolean |
shouldIgnoreComments()
Whether the filter should ignore the comments (i.e. lines starting with #) |
protected boolean |
shouldIgnoreFirstLine()
Template Method : Whether the processor should ignore the first line of the input |
protected void |
tearDown()
Template method that can be override. |
| Methods inherited from class com.gisgraphy.domain.geoloc.importer.AbstractImporterProcessor |
|---|
checkNumberOfColumn, countLines, dumpFields, getCurrentFileName, getMaxInsertsBeforeFlush, getNumberOfLinesToProcess, getReadFileLine, getStatus, getStatusMessage, getTotalReadLine, isEmptyField, isEndOfDocument, process, readLineAndProcessData, resetStatus, setImporterConfig, setInternationalisationService, setTransactionManager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.Long generatedId
| Constructor Detail |
|---|
public OpenStreetMapImporter()
| Method Detail |
|---|
protected void flushAndClear()
AbstractImporterProcessor
flushAndClear in class AbstractImporterProcessorprotected void setup()
AbstractImporterProcessor
setup in class AbstractImporterProcessorprotected java.io.File[] getFiles()
getFiles in class AbstractImporterProcessorImporterHelperprotected int getNumberOfColumns()
getNumberOfColumns in class AbstractImporterProcessor
protected void processData(java.lang.String line)
throws ImporterException
AbstractImporterProcessor
processData in class AbstractImporterProcessorline - the line to process
ImporterExceptionpublic boolean shouldBeSkipped()
shouldBeSkipped in interface IImporterProcessorshouldBeSkipped in class AbstractImporterProcessorprotected void setCommitFlushMode()
AbstractImporterProcessor
setCommitFlushMode in class AbstractImporterProcessorAbstractImporterProcessor.flushAndClear()protected boolean shouldIgnoreComments()
AbstractImporterProcessor
shouldIgnoreComments in class AbstractImporterProcessorAbstractImporterProcessor.COMMENT_STARTprotected boolean shouldIgnoreFirstLine()
AbstractImporterProcessor
shouldIgnoreFirstLine in class AbstractImporterProcessorpublic java.util.List<NameValueDTO<java.lang.Integer>> rollback()
IImporterProcessor
public void setOpenStreetMapDao(IOpenStreetMapDao openStreetMapDao)
openStreetMapDao - the openStreetMapDao to setprotected void tearDown()
AbstractImporterProcessor
tearDown in class AbstractImporterProcessor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||