public class FacebookConnector extends AbstractConnector implements Connector
DATE_LENGTH_UNRESTRICTED, projectId, schema| Constructor and Description |
|---|
FacebookConnector() |
| Modifier and Type | Method and Description |
|---|---|
static FacebookConnector |
createConnector()
Creates a new Facebook connector
|
void |
dump(String file)
Dumps the source data CSV to a file
|
void |
extract(String file,
boolean transform)
Extract rows
|
String |
getOauthToken() |
String |
getQuery() |
boolean |
processCommand(Command c,
CliParams cli,
ProcessingContext ctx)
Processes single command
|
static void |
saveConfigTemplate(String name,
String configFileName,
String query,
String folder)
Saves a template of the config file
|
void |
setOauthToken(String oauthToken) |
void |
setQuery(String query) |
checkLoadingStatus, copyAndTransform, deploy, dumpData, expandDates, extract, extractAndTransfer, generateMaqlCreate, getProjectId, getResult, getSchema, initSchema, populateColumnsFromSchema, setIncremental, setProjectId, setProjectId, setSchema, transferDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeploy, extract, extractAndTransfer, generateMaqlCreate, getSchema, setSchemapublic static FacebookConnector createConnector()
public static void saveConfigTemplate(String name, String configFileName, String query, String folder) throws IOException
name - new schema nameconfigFileName - config file namequery - FQL queryIOException - if there is a problem with writing the config fileSQLException - if there is a problem with the dbpublic void dump(String file) throws IOException
AbstractConnectordump in interface Connectordump in class AbstractConnectorfile - target fileIOException - in case of IO issuespublic void extract(String file, boolean transform) throws IOException
extract in class AbstractConnectorfile - name of the target filetransform - perform transformationsIOExceptionpublic 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 getOauthToken()
public void setOauthToken(String oauthToken)
public String getQuery()
public void setQuery(String query)
Copyright © 2014. All rights reserved.