public class FileDataProperties extends Object
FileDataProperties(String, String, String, Boolean)
Constructor and Description |
---|
FileDataProperties()
Default constructor
|
FileDataProperties(String type,
String uri,
String alias,
Boolean addJar)
Create the configuration for a single file at Hadoop HDFS to include and
make available as a 'table' to the Apache Spark SQL Context.
|
public FileDataProperties()
public FileDataProperties(String type, String uri, String alias, Boolean addJar)
type
- file content type. Next types are currently supported:
uri
- hadoop file uri, for example:
hdfs://nn.example.com/hadoop/hadoopfilealias
- the 'table' alias name through which the file content will be
available to the Apache Spark SQL Context.addJar
- flag used to instruct the Spark Context to send the file type
driver to Spark Workers. This is usually required (true).public String getType()
public String getUri()
public String getAlias()
public Boolean isAddJar()
public void setType(String type)
type
- file content typepublic void setUri(String uri)
uri
- hadoop file uripublic void setAlias(String alias)
alias
- the 'table' alias namepublic void setAddJar(Boolean addJar)
addJar
- is send the file type driver to Spark WorkersCopyright © 2010–2017. All rights reserved.