public interface Connector extends Executor
| Modifier and Type | Method and Description |
|---|---|
void |
deploy(SLI sli,
List<Column> columns,
String dir,
String archiveName)
Create the GoodData data package with the ALL snapshots data
|
void |
dump(String file)
Dumps the source data CSV to a file
|
void |
extract(String dir)
Extracts the source data CSV to the database where it is going to be transformed
|
void |
extractAndTransfer(Command c,
String pid,
Connector cc,
boolean waitForFinish,
CliParams p,
ProcessingContext ctx)
Extract data from the internal database and transfer them to a GoodData project
|
String |
generateMaqlCreate()
Generates the MAQL for the data source
|
SourceSchema |
getSchema()
LDM schema getter
|
void |
setSchema(SourceSchema schema)
LDM schema setter
|
processCommandString generateMaqlCreate()
SourceSchema getSchema()
void extract(String dir) throws IOException
dir - target directory where the data package will be storedIOException - in case of IO issuesvoid dump(String file) throws IOException
file - target fileIOException - in case of IO issuesvoid extractAndTransfer(Command c, String pid, Connector cc, boolean waitForFinish, CliParams p, ProcessingContext ctx) throws IOException, InterruptedException
c - commandpid - project idcc - connectorp - cli parametersctx - current contextwaitForFinish - synchronous execution flagIOException - IO issuesInterruptedException - internal problem with making file writablevoid setSchema(SourceSchema schema)
schema - LDM schemavoid deploy(SLI sli, List<Column> columns, String dir, String archiveName) throws IOException
sli - the SLI interfacecolumns - the SLI columnsdir - target directory where the data package will be storedarchiveName - the name of the target ZIP archiveIOException - IO issuesCopyright © 2014. All rights reserved.