Class DbSolutionRepositoryImportSource
- java.lang.Object
-
- org.pentaho.platform.plugin.services.importexport.legacy.AbstractImportSource
-
- org.pentaho.platform.plugin.services.importexport.legacy.DbSolutionRepositoryImportSource
-
- All Implemented Interfaces:
ImportSource
public class DbSolutionRepositoryImportSource extends AbstractImportSource
AnImportSource
that connects to the legacy database-based solution repository. This implementation works in the following way:- Fetch all (joined) rows in a single query.
- Process the result set, creating files, ACLs, and possibly temporary files containing the files' data.
- Write this info to disk in batches.
- Close the result set.
- Iterate over the batches, one at a time.
- Author:
- mlowery
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.pentaho.platform.plugin.services.importexport.ImportSource
ImportSource.IRepositoryFileBundle
-
-
Constructor Summary
Constructors Constructor Description DbSolutionRepositoryImportSource(DataSource dataSource, String srcCharset, String requiredCharset, String ownerName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCount()
The set is created dynamically - so we can't know thisIterable<ImportSource.IRepositoryFileBundle>
getFiles()
Returns the set of files available by this Import Source.-
Methods inherited from class org.pentaho.platform.plugin.services.importexport.legacy.AbstractImportSource
getMimeType
-
-
-
-
Constructor Detail
-
DbSolutionRepositoryImportSource
public DbSolutionRepositoryImportSource(DataSource dataSource, String srcCharset, String requiredCharset, String ownerName)
-
-
Method Detail
-
getCount
public int getCount()
The set is created dynamically - so we can't know this
-
getFiles
public Iterable<ImportSource.IRepositoryFileBundle> getFiles()
Description copied from interface:ImportSource
Returns the set of files available by this Import Source. NOTE: the Iterable object MUST support theIterator.remove()
method as the consumer of this information will be iterating over the data and will remove items that they process (and shouldn't be processed by down-stream consumers)- Returns:
-
-