Package org.intermine.web.logic.export
Interface Exporter
-
- All Known Implementing Classes:
ExporterImpl
public interface Exporter
Simple exporter interface. Objects implementing this interface are able to make export.- Author:
- Jakub Kulaviak
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
UNIX_SEPARATOR
Unix line separator only LFstatic java.lang.String
WINDOWS_SEPARATOR
Windows line separator CR+LF
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canExport(java.util.List<java.lang.Class<?>> clazzes)
This method finds out if result row composed from instances of these classes can be exported with actual implementation of exporter.void
export(java.util.Iterator<? extends java.util.List<ResultElement>> resultIt)
Perform the export with the exporter's defaults in the absence of path collection changes.void
export(java.util.Iterator<? extends java.util.List<ResultElement>> it, java.util.Collection<Path> unionPathCollection, java.util.Collection<Path> newPathCollection)
Do export.int
getWrittenResultsCount()
-
-
-
Field Detail
-
WINDOWS_SEPARATOR
static final java.lang.String WINDOWS_SEPARATOR
Windows line separator CR+LF- See Also:
- Constant Field Values
-
UNIX_SEPARATOR
static final java.lang.String UNIX_SEPARATOR
Unix line separator only LF- See Also:
- Constant Field Values
-
-
Method Detail
-
export
void export(java.util.Iterator<? extends java.util.List<ResultElement>> it, java.util.Collection<Path> unionPathCollection, java.util.Collection<Path> newPathCollection)
Do export.- Parameters:
it
- iterator over stuff to be exportedunionPathCollection
- a collection of Path combining old and new viewsnewPathCollection
- a collection of Path to export from the results
-
export
void export(java.util.Iterator<? extends java.util.List<ResultElement>> resultIt)
Perform the export with the exporter's defaults in the absence of path collection changes.- Parameters:
resultIt
- iterator over stuff to be exported.
-
canExport
boolean canExport(java.util.List<java.lang.Class<?>> clazzes)
This method finds out if result row composed from instances of these classes can be exported with actual implementation of exporter.- Parameters:
clazzes
- classes in row- Returns:
- true if result row can be exported or false
-
getWrittenResultsCount
int getWrittenResultsCount()
- Returns:
- count of written results
-
-