public class DateDimensionConnector extends AbstractConnector implements Connector
DATE_LENGTH_UNRESTRICTED, projectId, schema| Modifier | Constructor and Description |
|---|---|
protected |
DateDimensionConnector()
Creates a new Time Dimension Connector
|
| Modifier and Type | Method and Description |
|---|---|
static DateDimensionConnector |
createConnector()
Creates a new Time Dimension Connector
|
void |
deploy(String dir)
Generate manifest file for date dimension in provided directory
|
void |
deploy(String dir,
String archiveName)
Generate manifest file for date dimension in provided directory
and compress it to archiveName zip archive
|
void |
extract(String file,
boolean transform)
Extract rows
|
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
|
String |
getName() |
String |
getType() |
boolean |
isIncludeTime() |
boolean |
processCommand(Command c,
CliParams cli,
ProcessingContext ctx)
Processes single command
|
void |
setIncludeTime(boolean includeTime) |
void |
setName(String name) |
void |
setType(String type) |
checkLoadingStatus, copyAndTransform, deploy, dump, dumpData, expandDates, extract, getProjectId, getResult, getSchema, initSchema, populateColumnsFromSchema, setIncremental, setProjectId, setProjectId, setSchema, transferDataprotected DateDimensionConnector()
public static DateDimensionConnector createConnector()
public void extract(String file, boolean transform) throws IOException
extract in class AbstractConnectorfile - name of the target filetransform - perform transformationsIOExceptionpublic void extractAndTransfer(Command c, String pid, Connector cc, boolean waitForFinish, CliParams p, ProcessingContext ctx) throws IOException, InterruptedException
extractAndTransfer in interface ConnectorextractAndTransfer in class AbstractConnectorc - commandpid - project idcc - connectorwaitForFinish - synchronous execution flagp - cli parametersctx - current contextIOException - IO issuesInterruptedException - internal problem with making file writablepublic void deploy(String dir) throws IOException
dir - IOExceptionpublic void deploy(String dir, String archiveName) throws IOException
IOExceptionpublic String generateMaqlCreate()
generateMaqlCreate in interface ConnectorgenerateMaqlCreate in class AbstractConnectorpublic boolean processCommand(Command c, CliParams cli, ProcessingContext ctx) throws ProcessingException
processCommand in interface ExecutorprocessCommand in class AbstractConnectorc - command to be processedcli - parameters (commandline params)ctx - processing contextProcessingException - in case of issues during the command processingpublic String getName()
public void setName(String name)
name - the date dimension name to setpublic String getType()
public void setType(String type)
public boolean isIncludeTime()
public void setIncludeTime(boolean includeTime)
Copyright © 2014. All rights reserved.