@Generated(value="config_generator.py") public class TwoTablesSparkGraphConfig extends AbstractTwoTablesSparkGraphConfig
Modifier and Type | Class and Description |
---|---|
static class |
TwoTablesSparkGraphConfig.Field
Fields of PGX Engine Two Tables Spark Graph Config
|
ENV_VARIABLE_PREFIX, SYSTEM_PROPERTY_PREFIX
Modifier and Type | Method and Description |
---|---|
TwoTablesSparkDataFormat |
getDataFormat()
type of the spark data format
|
TwoTablesDatastore |
getDatastore()
underlying datastore
|
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)
|
java.lang.Integer |
getListeningSocketTimeout()
PGX side listening socket will be expired after this timeout value (default: 30000 ms, 30 secs)
|
GraphLoadingConfig |
getLoading()
loading-specific configuration
|
java.lang.Integer |
getNumSparkEdgeWorkers()
number of available spark workers for edge table
|
java.lang.Integer |
getNumSparkNodeWorkers()
number of available spark workers for node table
|
java.util.Map<TwoTablesSparkGraphConfig.Field,java.lang.Object> |
getValues()
Gets the parsed values.
|
java.util.Map<TwoTablesSparkGraphConfig.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(TwoTablesSparkGraphConfig.Field field)
Checks for default value.
|
java.lang.Boolean |
hasEdgeLabel()
Deprecated.
|
java.lang.Boolean |
hasVertexLabels()
Deprecated.
|
boolean |
isEmpty()
Checks if it's empty.
|
java.lang.Boolean |
isSkipEdges()
skip edges data if set as true
|
java.lang.Boolean |
isSkipNodes()
skip nodes data if set as true
|
static TwoTablesSparkGraphConfig |
parse(java.io.InputStream is, boolean strict, java.lang.String parentPath)
Parses an input stream.
|
static TwoTablesSparkGraphConfig |
parse(java.util.Map<java.lang.String,java.lang.Object> raw, boolean strict, java.lang.String parentPath)
Parses a raw key/value mapping.
|
static TwoTablesSparkGraphConfig |
parse(java.util.Properties props, boolean strict)
Parses a properties file.
|
java.lang.String |
toString() |
equals, getName, hashCode
createDateFormat, getEdgePropertyDefault, getEdgePropertyDimension, getEdgePropertyName, getEdgePropertyType, getEdgePropertyTypes, getLoadingFilter, getNodeKeyType, getNodePropertyDefault, getNodePropertyDimension, getNodePropertyName, getNodePropertyType, getVertexPropertyTypes, hasVerticesAndEdgesSeparatedFileFormat, hasVerticesAndEdgesSeparatedFileFormat, isEdgeLabelLoadingEnabled, isFileFormat, isFileFormat, isLoadEdgeKeys, isLoadVertexKeys, isMultipleFileFormat, isMultipleFileFormat, isSingleFileFormat, isSingleFileFormat, isVertexLabelsLoadingEnabled, numEdgeProperties, numNodeProperties, supportsEdgeLabel, supportsEdgeLabel, supportsVertexLabels, supportsVertexLabels
getValueFromEnvironment, getValueFromEnvironment, parseString, setSerializable
public TwoTablesSparkDataFormat getDataFormat()
getDataFormat
in class AbstractTwoTablesSparkGraphConfig
public TwoTablesDatastore getDatastore()
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 java.lang.Integer getListeningSocketTimeout()
public GraphLoadingConfig getLoading()
getLoading
in class GraphConfig
public java.lang.Integer getNumSparkEdgeWorkers()
getNumSparkEdgeWorkers
in class AbstractSparkGraphConfig
public java.lang.Integer getNumSparkNodeWorkers()
getNumSparkNodeWorkers
in class AbstractSparkGraphConfig
public java.util.Map<TwoTablesSparkGraphConfig.Field,java.lang.Object> getValues()
public java.util.Map<TwoTablesSparkGraphConfig.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(TwoTablesSparkGraphConfig.Field field)
field
- the field@Deprecated public java.lang.Boolean hasEdgeLabel()
hasEdgeLabel
in class GraphConfig
true
if this graph configuration has the edge label, false
otherwise@Deprecated public java.lang.Boolean hasVertexLabels()
hasVertexLabels
in class GraphConfig
true
if this graph configuration has the vertex label, false
otherwisepublic boolean isEmpty()
public java.lang.Boolean isSkipEdges()
public java.lang.Boolean isSkipNodes()
public static TwoTablesSparkGraphConfig 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 TwoTablesSparkGraphConfig 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 TwoTablesSparkGraphConfig 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.