@Generated(value="config_generator.py") public class FileGraphConfig extends AbstractFileGraphConfig
Modifier and Type | Class and Description |
---|---|
static class |
FileGraphConfig.Field
Fields of PGX Engine File Graph Config
|
Modifier and Type | Method and Description |
---|---|
Charset |
getCharset()
Gets the charset.
|
String |
getDateFormat()
the date format to use when loading and storing date properties.
|
String |
getEdgeExtension()
[two_tables_text only]] edges file extension
|
List<GraphPropertyConfig> |
getEdgeProps()
specification of edge properties associated with graph
|
GraphErrorHandlingConfig |
getErrorHandling()
error handling configuration
|
Format |
getFormat()
graph format (Note: bin is deprecated, use pgb instead)
|
GraphLoadingConfig |
getLoading()
loading-specific configuration
|
String |
getNodeExtension()
[two_tables_text only] nodes file extension
|
String |
getSeparator()
[edge_list, adj_list only] separator string for text files
|
String |
getUri()
unified resource identifier, either pointing to a a local file (relative to the location of this config or absolute), a web resource (prefix
http://' or https:// ), a HDFS path (prefix hdfs: ) or a classpath (prefix classpath: or jar: ) |
Map<FileGraphConfig.Field,Object> |
getValues()
Gets the parsed values.
|
Map<FileGraphConfig.Field,Object> |
getValuesWithoutDefaults()
Gets the values without defaults.
|
IdType |
getVertexIdType()
type of the vertex ID
|
List<GraphPropertyConfig> |
getVertexProps()
specification of vertex properties associated with graph
|
boolean |
hasDefaultValue(FileGraphConfig.Field field)
Checks for default value.
|
static FileGraphConfig |
parse(InputStream is, boolean strict, File parent)
Parses an input stream.
|
static FileGraphConfig |
parse(Map<String,Object> raw, boolean strict, File parent)
Parses a raw key/value mapping.
|
static FileGraphConfig |
parse(Properties props, boolean strict)
Parses a properties file.
|
String |
toString() |
equals, getName, hashCode
getEdgePropertyDefault, getEdgePropertyName, getEdgePropertyType, getNodeKeyType, getNodePropertyDefault, getNodePropertyName, getNodePropertyType, isFileFormat, isFileFormat, numEdgeProperties, numNodeProperties
setSerializable
public Charset getCharset()
public String getDateFormat()
public String getEdgeExtension()
public List<GraphPropertyConfig> getEdgeProps()
getEdgeProps
in class GraphConfig
public GraphErrorHandlingConfig getErrorHandling()
getErrorHandling
in class GraphConfig
public Format getFormat()
getFormat
in class GraphConfig
public GraphLoadingConfig getLoading()
getLoading
in class GraphConfig
public String getNodeExtension()
public String getSeparator()
public String getUri()
http://'
or https://
), a HDFS path (prefix hdfs:
) or a classpath (prefix classpath:
or jar:
)public Map<FileGraphConfig.Field,Object> getValues()
public Map<FileGraphConfig.Field,Object> getValuesWithoutDefaults()
public IdType getVertexIdType()
getVertexIdType
in class GraphConfig
public List<GraphPropertyConfig> getVertexProps()
getVertexProps
in class GraphConfig
public boolean hasDefaultValue(FileGraphConfig.Field field)
field
- the fieldpublic static FileGraphConfig parse(InputStream is, boolean strict, File parent) throws IOException
is
- the input streamstrict
- if true, parses in strict modeparent
- if not null, resolves relative paths against this parentIOException
- Signals that an I/O exception has occurred.public static FileGraphConfig parse(Map<String,Object> raw, boolean strict, File parent)
raw
- the raw key/value mapping to parsestrict
- if true, parses in strict modeparent
- if not null, resolves relative paths against this parentpublic static FileGraphConfig parse(Properties props, boolean strict)
props
- the properties to parsestrict
- if true, parses in strict modeCopyright © 2015. All rights reserved.