@Generated(value="config_generator.py") public class SingleFileGraphConfig extends AbstractSingleFileGraphConfig
Modifier and Type | Class and Description |
---|---|
static class |
SingleFileGraphConfig.Field
Fields of PGX Engine Single File Graph Config
|
ENV_VARIABLE_PREFIX, SYSTEM_PROPERTY_PREFIX
Modifier and Type | Method and Description |
---|---|
java.util.Map |
getAttributes()
file-system specific additional attributes needed to read/write the graph data
|
java.lang.String |
getDateFormat()
the date format to use when loading and storing date properties.
|
java.util.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
|
java.lang.String |
getSeparator()
[file formats only] separator string for text files.
|
java.lang.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: ) |
java.util.Map<SingleFileGraphConfig.Field,java.lang.Object> |
getValues()
Gets the parsed values.
|
java.util.Map<SingleFileGraphConfig.Field,java.lang.Object> |
getValuesWithoutDefaults()
Gets the values without defaults.
|
IdType |
getVertexIdType()
type of the vertex ID
|
java.util.List<GraphPropertyConfig> |
getVertexProps()
specification of vertex properties associated with graph
|
boolean |
hasDefaultValue(SingleFileGraphConfig.Field field)
Checks for default value.
|
java.lang.Boolean |
isEdgeLabel()
whether the graph has the edge label or not
|
boolean |
isEmpty()
Checks if it's empty.
|
java.lang.Boolean |
isHeader()
first line of file is meant for headers, e.g.
|
java.lang.Boolean |
isVertexLabels()
whether the graph has the vertex label or not
|
static SingleFileGraphConfig |
parse(java.io.InputStream is, boolean strict, java.lang.String parentPath)
Parses an input stream.
|
static SingleFileGraphConfig |
parse(java.util.Map<java.lang.String,java.lang.Object> raw, boolean strict, java.lang.String parentPath)
Parses a raw key/value mapping.
|
static SingleFileGraphConfig |
parse(java.util.Properties props, boolean strict)
Parses a properties file.
|
java.lang.String |
toString() |
equals, getName, hashCode
getEdgePropertyDefault, getEdgePropertyDimension, getEdgePropertyName, getEdgePropertyType, getNodeKeyType, getNodePropertyDefault, getNodePropertyDimension, getNodePropertyName, getNodePropertyType, hasEdgeLabel, hasVertexLabels, isFileFormat, isFileFormat, isLoadEdgeKeys, isLoadVertexKeys, isMultipleFileFormat, isMultipleFileFormat, isSingleFileFormat, isSingleFileFormat, numEdgeProperties, numNodeProperties
getValueFromEnvironment, parseString, setSerializable
public java.util.Map getAttributes()
getAttributes
in class AbstractFileGraphConfig
public java.lang.String getDateFormat()
getDateFormat
in class GraphConfig
public java.util.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 java.lang.String getSeparator()
getSeparator
in class AbstractFileGraphConfig
public java.lang.String getUri()
http://'
or https://
), a HDFS path (prefix hdfs:
) or a classpath (prefix classpath:/
or jar:
)public java.util.Map<SingleFileGraphConfig.Field,java.lang.Object> getValues()
public java.util.Map<SingleFileGraphConfig.Field,java.lang.Object> getValuesWithoutDefaults()
public IdType getVertexIdType()
getVertexIdType
in class GraphConfig
public java.util.List<GraphPropertyConfig> getVertexProps()
getVertexProps
in class GraphConfig
public boolean hasDefaultValue(SingleFileGraphConfig.Field field)
field
- the fieldpublic java.lang.Boolean isEdgeLabel()
isEdgeLabel
in class GraphConfig
true
if this graph configuration has the edge label.public boolean isEmpty()
public java.lang.Boolean isHeader()
isHeader
in class AbstractFileGraphConfig
public java.lang.Boolean isVertexLabels()
isVertexLabels
in class GraphConfig
true
if this graph configuration has the vertex label.public static SingleFileGraphConfig parse(java.io.InputStream is, boolean strict, java.lang.String parentPath) throws java.io.IOException
is
- the input streamstrict
- if true, parses in strict modeparentPath
- if not null, resolves relative paths against this parentPathjava.io.IOException
- Signals that an I/O exception has occurred.public static SingleFileGraphConfig parse(java.util.Map<java.lang.String,java.lang.Object> raw, boolean strict, java.lang.String parentPath)
raw
- the raw key/value mapping to parsestrict
- if true, parses in strict modeparentPath
- if not null, resolves relative paths against this parentPathpublic static SingleFileGraphConfig parse(java.util.Properties props, boolean strict)
props
- the properties to parsestrict
- if true, parses in strict modepublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2016 Oracle Corp. All Rights Reserved.