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, transferData
protected DateDimensionConnector()
public static DateDimensionConnector createConnector()
public void extract(String file, boolean transform) throws IOException
extract
in class AbstractConnector
file
- name of the target filetransform
- perform transformationsIOException
public void extractAndTransfer(Command c, String pid, Connector cc, boolean waitForFinish, CliParams p, ProcessingContext ctx) throws IOException, InterruptedException
extractAndTransfer
in interface Connector
extractAndTransfer
in class AbstractConnector
c
- 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
- IOException
public void deploy(String dir, String archiveName) throws IOException
IOException
public String generateMaqlCreate()
generateMaqlCreate
in interface Connector
generateMaqlCreate
in class AbstractConnector
public boolean processCommand(Command c, CliParams cli, ProcessingContext ctx) throws ProcessingException
processCommand
in interface Executor
processCommand
in class AbstractConnector
c
- 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.