public class FacebookInsightsConnector extends AbstractConnector implements Connector
DATE_LENGTH_UNRESTRICTED, projectId, schema
Modifier | Constructor and Description |
---|---|
protected |
FacebookInsightsConnector() |
Modifier and Type | Method and Description |
---|---|
static FacebookInsightsConnector |
createConnector()
Creates a new Facebook connector
|
void |
extract(String file,
boolean transform)
Extract rows
|
String |
getBaseUrl() |
org.joda.time.DateTime |
getEndDate() |
String |
getOauthToken() |
org.joda.time.DateTime |
getStartDate() |
boolean |
processCommand(Command c,
CliParams cli,
ProcessingContext ctx)
Processes single command
|
static void |
saveConfigTemplate(String name,
String configFileName,
String folder)
Saves a template of the config file
|
void |
setBaseUrl(String baseUrl) |
void |
setEndDate(org.joda.time.DateTime endDate) |
void |
setOauthToken(String oauthToken) |
void |
setStartDate(org.joda.time.DateTime startDate) |
checkLoadingStatus, copyAndTransform, deploy, dump, dumpData, expandDates, extract, extractAndTransfer, generateMaqlCreate, getProjectId, getResult, getSchema, initSchema, populateColumnsFromSchema, setIncremental, setProjectId, setProjectId, setSchema, transferData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deploy, dump, extract, extractAndTransfer, generateMaqlCreate, getSchema, setSchema
public static FacebookInsightsConnector createConnector()
public static void saveConfigTemplate(String name, String configFileName, String folder) throws IOException
name
- new schema nameconfigFileName
- config file nameIOException
- if there is a problem with writing the config fileSQLException
- if there is a problem with the dbpublic void extract(String file, boolean transform) throws IOException
extract
in class AbstractConnector
file
- name of the target filetransform
- perform transformationsIOException
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 org.joda.time.DateTime getStartDate()
public void setStartDate(org.joda.time.DateTime startDate)
public org.joda.time.DateTime getEndDate()
public void setEndDate(org.joda.time.DateTime endDate)
public String getBaseUrl()
public void setBaseUrl(String baseUrl)
public String getOauthToken()
public void setOauthToken(String oauthToken)
Copyright © 2014. All rights reserved.