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, transferData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deploy, extract, extractAndTransfer, generateMaqlCreate, getSchema, setSchema
public 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
AbstractConnector
dump
in interface Connector
dump
in class AbstractConnector
file
- target fileIOException
- in case of IO issuespublic 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 String getOauthToken()
public void setOauthToken(String oauthToken)
public String getQuery()
public void setQuery(String query)
Copyright © 2014. All rights reserved.