@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_SEPARATOR, ENV_VARIABLE_PREFIX, SYSTEM_PROPERTY_PREFIX| Modifier and Type | Method and Description |
|---|---|
default java.text.DateFormat |
createDateFormat() |
default java.util.List<java.time.format.DateTimeFormatter> |
createLocalDateFormat() |
default java.util.List<java.time.format.DateTimeFormatter> |
createTimeFormat() |
default java.util.List<java.time.format.DateTimeFormatter> |
createTimestampFormat() |
default java.util.List<java.time.format.DateTimeFormatter> |
createTimestampWithTimezoneFormat() |
default java.util.List<java.time.format.DateTimeFormatter> |
createTimeWithTimezoneFormat() |
java.util.Map |
getAttributes()
additional attributes needed to read/write the graph data
|
static TwoTablesSparkGraphConfig.Field[] |
getConfigFields() |
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
|
java.lang.String |
getEdgesKeyColumn()
name of primary key column in edges table
|
java.lang.String |
getEdgesLabelColumn()
column name for edge label
|
java.util.List<GraphTableConfig> |
getEdgeTables()
list of edge tables in this graph
|
GraphErrorHandlingConfig |
getErrorHandling()
error handling configuration
|
Format |
getFormat()
graph format
|
java.lang.String |
getFromNidColumn()
column name for source node
|
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.util.List<java.lang.String> |
getLocalDateFormat()
array of local_date formats to use when loading and storing local_date properties.
|
java.lang.String |
getNodesKeyColumn()
name of primary key column in nodes table
|
java.lang.String |
getNodesLabelColumn()
column name for node label
|
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.lang.String |
getPoint2d()
longitude and latitude as floating point values separated by a space
|
java.util.List<java.lang.String> |
getTimeFormat()
the time format to use when loading and storing time properties.
|
java.util.List<java.lang.String> |
getTimestampFormat()
the timestamp format to use when loading and storing timestamp properties.
|
java.util.List<java.lang.String> |
getTimestampWithTimezoneFormat()
the timestamp with timezone format to use when loading and storing timestamp with timezone properties.
|
java.util.List<java.lang.String> |
getTimeWithTimezoneFormat()
the time with timezone format to use when loading and storing time with timezone properties.
|
java.lang.String |
getToNidColumn()
column name for destination node
|
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
|
java.util.List<GraphTableConfig> |
getVertexTables()
list of vertex tables in this 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.
|
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.Boolean |
skipEdges()
Deprecated.
|
java.lang.Boolean |
skipNodes()
Deprecated.
|
java.lang.String |
toString() |
java.lang.String |
toString(boolean hideSensitiveData) |
equals, getName, hasEdgeKeys, hashCode, skipEdgeLoading, skipVertexLoadinggetEdgeIdType, 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, supportsVertexLabelsgetValueFromEnvironment, getValueFromEnvironment, parseString, setSerializablepublic java.util.Map getAttributes()
public static TwoTablesSparkGraphConfig.Field[] getConfigFields()
public TwoTablesSparkDataFormat getDataFormat()
getDataFormat in class AbstractTwoTablesSparkGraphConfigpublic TwoTablesDatastore getDatastore()
public java.lang.String getDateFormat()
public java.util.List<GraphPropertyConfig> getEdgeProps()
getEdgeProps in class GraphConfigpublic java.lang.String getEdgesKeyColumn()
public java.lang.String getEdgesLabelColumn()
public java.util.List<GraphTableConfig> getEdgeTables()
public GraphErrorHandlingConfig getErrorHandling()
public Format getFormat()
public java.lang.String getFromNidColumn()
public java.lang.Integer getListeningSocketTimeout()
public GraphLoadingConfig getLoading()
getLoading in class GraphConfigpublic java.util.List<java.lang.String> getLocalDateFormat()
public java.lang.String getNodesKeyColumn()
public java.lang.String getNodesLabelColumn()
public java.lang.Integer getNumSparkEdgeWorkers()
getNumSparkEdgeWorkers in class AbstractSparkGraphConfigpublic java.lang.Integer getNumSparkNodeWorkers()
getNumSparkNodeWorkers in class AbstractSparkGraphConfigpublic java.lang.String getPoint2d()
public java.util.List<java.lang.String> getTimeFormat()
public java.util.List<java.lang.String> getTimestampFormat()
public java.util.List<java.lang.String> getTimestampWithTimezoneFormat()
public java.util.List<java.lang.String> getTimeWithTimezoneFormat()
public java.lang.String getToNidColumn()
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 GraphConfigpublic java.util.List<GraphPropertyConfig> getVertexProps()
getVertexProps in class GraphConfigpublic java.util.List<GraphTableConfig> getVertexTables()
public boolean hasDefaultValue(TwoTablesSparkGraphConfig.Field field)
field - the field@Deprecated public java.lang.Boolean hasEdgeLabel()
hasEdgeLabel in class GraphConfigtrue if this graph configuration has the edge label, false otherwise@Deprecated public java.lang.Boolean hasVertexLabels()
hasVertexLabels in class GraphConfigtrue if this graph configuration has the vertex label, false otherwisepublic boolean isEmpty()
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 mode@Deprecated public java.lang.Boolean skipEdges()
@Deprecated public java.lang.Boolean skipNodes()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(boolean hideSensitiveData)
public java.text.DateFormat createDateFormat()
public java.util.List<java.time.format.DateTimeFormatter> createLocalDateFormat()
public java.util.List<java.time.format.DateTimeFormatter> createTimeFormat()
public java.util.List<java.time.format.DateTimeFormatter> createTimestampFormat()
public java.util.List<java.time.format.DateTimeFormatter> createTimestampWithTimezoneFormat()
public java.util.List<java.time.format.DateTimeFormatter> createTimeWithTimezoneFormat()
Copyright © 2016, 2019, Oracle and/or its affiliates. All Rights Reserved.