@Generated(value="config_generator.py") public class GraphLoadingConfig extends AbstractConfig
Modifier and Type | Class and Description |
---|---|
static class |
GraphLoadingConfig.Field
Fields of PGX Engine Graph Loading Config
|
Modifier and Type | Method and Description |
---|---|
Charset |
getCharset()
Gets the charset.
|
String |
getFilterExpr()
if not
null , load subgraph specified by this expression |
Integer |
getRefreshIntervalMs()
if non-negative, the graph gets refreshed periodically after specified milliseconds have passed.
|
Map<GraphLoadingConfig.Field,Object> |
getValues()
Gets the parsed values.
|
Map<GraphLoadingConfig.Field,Object> |
getValuesWithoutDefaults()
Gets the values without defaults.
|
boolean |
hasDefaultValue(GraphLoadingConfig.Field field)
Checks for default value.
|
Boolean |
isCreateEdgeIdIndex()
if
true , an index is prepared during loading which enables retrieval of edge paths |
Boolean |
isCreateEdgeIdMapping()
if
true , a mapping is prepared during loading which enables edge key arguments and filters containing edge keys |
Boolean |
isCreateVertexIdIndex()
if
true , an index is prepared during loading which enables retrieval of vertex paths |
Boolean |
isCreateVertexIdMapping()
if
true , a mapping is prepared during loading which enables vertex arguments and vertex filters |
static GraphLoadingConfig |
parse(InputStream is, boolean strict, File parent)
Parses an input stream.
|
static GraphLoadingConfig |
parse(Map<String,Object> raw, boolean strict, File parent)
Parses a raw key/value mapping.
|
static GraphLoadingConfig |
parse(Properties props, boolean strict)
Parses a properties file.
|
String |
toString() |
setSerializable
public Charset getCharset()
public String getFilterExpr()
null
, load subgraph specified by this expressionpublic Integer getRefreshIntervalMs()
public Map<GraphLoadingConfig.Field,Object> getValues()
public Map<GraphLoadingConfig.Field,Object> getValuesWithoutDefaults()
public boolean hasDefaultValue(GraphLoadingConfig.Field field)
field
- the fieldpublic Boolean isCreateEdgeIdIndex()
true
, an index is prepared during loading which enables retrieval of edge pathspublic Boolean isCreateEdgeIdMapping()
true
, a mapping is prepared during loading which enables edge key arguments and filters containing edge keyspublic Boolean isCreateVertexIdIndex()
true
, an index is prepared during loading which enables retrieval of vertex pathspublic Boolean isCreateVertexIdMapping()
true
, a mapping is prepared during loading which enables vertex arguments and vertex filterspublic static GraphLoadingConfig 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 GraphLoadingConfig 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 GraphLoadingConfig parse(Properties props, boolean strict)
props
- the properties to parsestrict
- if true, parses in strict modeCopyright © 2015. All rights reserved.