IF
- Input format typepublic abstract class InputFormatDescription<IF extends GiraphInputFormat> extends Object
MultiVertexInputFormat
and MultiEdgeInputFormat
)Constructor and Description |
---|
InputFormatDescription(Class<? extends IF> inputFormatClass)
Constructor with input format class
|
InputFormatDescription(String description)
Constructor with json string describing this input format
|
Modifier and Type | Method and Description |
---|---|
void |
addParameter(String name,
String value)
Add parameter to this input format description
|
void |
addParameters(org.json.JSONObject parametersJson)
Add all parameters from json object
|
Class<? extends IF> |
getInputFormatClass() |
void |
putParametersToConfiguration(org.apache.hadoop.conf.Configuration conf)
Put parameters from this input format description to configuration
|
void |
setInputFormatClass(Class<? extends IF> inputFormatClass) |
org.json.JSONArray |
toJsonArray()
Convert input format description to json array
|
static String |
toJsonString(Iterable<? extends InputFormatDescription> descriptions)
Create JSON string for the InputFormatDescriptions
|
String |
toString() |
public InputFormatDescription(Class<? extends IF> inputFormatClass)
inputFormatClass
- Input format classpublic InputFormatDescription(String description)
description
- Json string describing this input formatpublic void addParameter(String name, String value)
name
- Parameter namevalue
- Parameter valuepublic void addParameters(org.json.JSONObject parametersJson)
parametersJson
- Json object to read parameters frompublic org.json.JSONArray toJsonArray()
public void putParametersToConfiguration(org.apache.hadoop.conf.Configuration conf)
conf
- Configuration to put parameters topublic static String toJsonString(Iterable<? extends InputFormatDescription> descriptions)
descriptions
- InputFormatDescriptionsCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.