@Generated(value="config_generator.py") public class GraphBuilderConfig extends AbstractGraphBuilderConfig
Modifier and Type | Class and Description |
---|---|
static class |
GraphBuilderConfig.Field
Fields of Graph Builder Parameters
|
ENV_VARIABLE_PREFIX, SYSTEM_PROPERTY_PREFIX
Modifier and Type | Method and Description |
---|---|
java.util.Map<GraphBuilderConfig.Field,java.lang.Object> |
getValues()
Gets the parsed values.
|
java.util.Map<GraphBuilderConfig.Field,java.lang.Object> |
getValuesWithoutDefaults()
Gets the values without defaults.
|
boolean |
hasDefaultValue(GraphBuilderConfig.Field field)
Checks for default value.
|
boolean |
isEmpty()
Checks if it's empty.
|
java.lang.Boolean |
isRetainEdgeId()
if
true keep the edge id after graph construction. |
java.lang.Boolean |
isRetainVertexId()
if
true keep the vertex id after graph construction. |
static GraphBuilderConfig |
parse(java.io.InputStream is, boolean strict, java.lang.String parentPath)
Parses an input stream.
|
static GraphBuilderConfig |
parse(java.util.Map<java.lang.String,java.lang.Object> raw, boolean strict, java.lang.String parentPath)
Parses a raw key/value mapping.
|
static GraphBuilderConfig |
parse(java.util.Properties props, boolean strict)
Parses a properties file.
|
java.lang.String |
toString() |
equals, hashCode
getValueFromEnvironment, getValueFromEnvironment, parseString, setSerializable
public java.util.Map<GraphBuilderConfig.Field,java.lang.Object> getValues()
getValues
in class AbstractGraphBuilderConfig
public java.util.Map<GraphBuilderConfig.Field,java.lang.Object> getValuesWithoutDefaults()
public boolean hasDefaultValue(GraphBuilderConfig.Field field)
field
- the fieldpublic boolean isEmpty()
public java.lang.Boolean isRetainEdgeId()
true
keep the edge id after graph construction. If false
drop the edge id.public java.lang.Boolean isRetainVertexId()
true
keep the vertex id after graph construction. If false
drop the vertex id.public static GraphBuilderConfig 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 GraphBuilderConfig 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 GraphBuilderConfig 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 © 2017 Oracle Corp. All Rights Reserved.