Package org.teiid.translator.excel
Class BaseExcelExecution
- java.lang.Object
-
- org.teiid.translator.excel.BaseExcelExecution
-
- All Implemented Interfaces:
org.teiid.translator.Execution
- Direct Known Subclasses:
ExcelExecution,ExcelUpdateExecution
public class BaseExcelExecution extends Object implements org.teiid.translator.Execution
-
-
Field Summary
Fields Modifier and Type Field Description protected org.teiid.file.VirtualFileConnectionconnectionprotected org.apache.poi.ss.usermodel.FormulaEvaluatorevaluatorprotected org.teiid.translator.ExecutionContextexecutionContextprotected booleanimmutableprotected org.teiid.metadata.RuntimeMetadatametadataprotected Iterator<org.apache.poi.ss.usermodel.Row>rowIteratorprotected ExcelQueryVisitorvisitorprotected org.apache.poi.ss.usermodel.Workbookworkbook
-
Constructor Summary
Constructors Constructor Description BaseExcelExecution(org.teiid.translator.ExecutionContext executionContext, org.teiid.metadata.RuntimeMetadata metadata, org.teiid.file.VirtualFileConnection connection, boolean immutable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel()voidclose()voidexecute()protected org.teiid.file.VirtualFilegetCurrentXLSFile()protected org.teiid.file.VirtualFilegetNextXLSFile()org.apache.poi.ss.usermodel.RownextRow()voidsetDataFormatter(org.apache.poi.ss.usermodel.DataFormatter dataFormatter)voidvisit(org.teiid.language.LanguageObject command)
-
-
-
Field Detail
-
executionContext
protected org.teiid.translator.ExecutionContext executionContext
-
metadata
protected org.teiid.metadata.RuntimeMetadata metadata
-
connection
protected org.teiid.file.VirtualFileConnection connection
-
immutable
protected boolean immutable
-
rowIterator
protected Iterator<org.apache.poi.ss.usermodel.Row> rowIterator
-
visitor
protected ExcelQueryVisitor visitor
-
evaluator
protected org.apache.poi.ss.usermodel.FormulaEvaluator evaluator
-
workbook
protected org.apache.poi.ss.usermodel.Workbook workbook
-
-
Method Detail
-
visit
public void visit(org.teiid.language.LanguageObject command) throws org.teiid.translator.TranslatorException- Throws:
org.teiid.translator.TranslatorException
-
execute
public void execute() throws org.teiid.translator.TranslatorException- Specified by:
executein interfaceorg.teiid.translator.Execution- Throws:
org.teiid.translator.TranslatorException
-
nextRow
public org.apache.poi.ss.usermodel.Row nextRow() throws org.teiid.translator.TranslatorException, org.teiid.translator.DataNotAvailableException- Throws:
org.teiid.translator.TranslatorExceptionorg.teiid.translator.DataNotAvailableException
-
getNextXLSFile
protected org.teiid.file.VirtualFile getNextXLSFile() throws org.teiid.translator.TranslatorException- Throws:
org.teiid.translator.TranslatorException
-
getCurrentXLSFile
protected org.teiid.file.VirtualFile getCurrentXLSFile()
-
close
public void close()
- Specified by:
closein interfaceorg.teiid.translator.Execution
-
cancel
public void cancel() throws org.teiid.translator.TranslatorException- Specified by:
cancelin interfaceorg.teiid.translator.Execution- Throws:
org.teiid.translator.TranslatorException
-
setDataFormatter
public void setDataFormatter(org.apache.poi.ss.usermodel.DataFormatter dataFormatter)
-
-