org.pentaho.platform.dataaccess.datasource.wizard.service.impl
Class CsvDatasourceServiceImpl
java.lang.Object
org.pentaho.platform.engine.core.system.PentahoBase
org.pentaho.platform.dataaccess.datasource.wizard.service.impl.CsvDatasourceServiceImpl
- All Implemented Interfaces:
- com.google.gwt.user.client.rpc.RemoteService, java.io.Serializable, ILogger, ICsvDatasourceService
public class CsvDatasourceServiceImpl
- extends PentahoBase
- implements ICsvDatasourceService
- See Also:
- Serialized Form
Fields inherited from interface org.pentaho.platform.api.engine.ILogger |
ACTIVITY_LOG, DEBUG, ERROR, FATAL, INFO, INSTANCE_LOG, SESSION_LOG, SOLUTION_LOG, TRACE, UNKNOWN, WARN |
Methods inherited from class org.pentaho.platform.engine.core.system.PentahoBase |
debug, debug, error, error, fatal, fatal, genLogIdFromInfo, genLogIdFromInfo, genLogIdFromSession, getLoggingLevel, getLogId, getObjectName, info, info, setLoggingLevel, setLogId, trace, trace, warn, warn |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CsvDatasourceServiceImpl
public CsvDatasourceServiceImpl()
getLogger
public org.apache.commons.logging.Log getLogger()
- Specified by:
getLogger
in class PentahoBase
getEncoding
public java.lang.String getEncoding(java.lang.String fileName)
- Specified by:
getEncoding
in interface ICsvDatasourceService
stageFile
public ModelInfo stageFile(java.lang.String fileName,
java.lang.String delimiter,
java.lang.String enclosure,
boolean isFirstRowHeader,
java.lang.String encoding)
throws java.lang.Exception
- Specified by:
stageFile
in interface ICsvDatasourceService
- Throws:
java.lang.Exception
getStagedFiles
public FileInfo[] getStagedFiles()
throws java.lang.Exception
- Specified by:
getStagedFiles
in interface ICsvDatasourceService
- Throws:
java.lang.Exception
stageData
public FileTransformStats stageData(ModelInfo modelInfo,
boolean truncateTable)
throws java.lang.Exception
- Specified by:
stageData
in interface ICsvDatasourceService
- Throws:
java.lang.Exception
getPreviewRows
public java.util.List<java.lang.String> getPreviewRows(java.lang.String filename,
boolean isFirstRowHeader,
int rows,
java.lang.String encoding)
throws java.lang.Exception
- Specified by:
getPreviewRows
in interface ICsvDatasourceService
- Throws:
java.lang.Exception
listDatasourceNames
public java.util.List<java.lang.String> listDatasourceNames()
throws java.io.IOException
- Specified by:
listDatasourceNames
in interface ICsvDatasourceService
- Throws:
java.io.IOException