@Generated(value="config_generator.py") public class TwoTablesTextGraphConfig extends AbstractTwoTablesTextGraphConfig
Modifier and Type | Class and Description |
---|---|
static class |
TwoTablesTextGraphConfig.Field
Fields of PGX Engine Two Tables Text 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
|
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<java.lang.String> |
getEdgeUris()
list of unified resource identifiers
|
GraphErrorHandlingConfig |
getErrorHandling()
error handling configuration
|
Format |
getFormat()
graph format (Note: bin is deprecated, use pgb instead)
|
java.lang.String |
getFromNidColumn()
column name for source node
|
GraphLoadingConfig |
getLoading()
loading-specific configuration
|
java.lang.String |
getNodesKeyColumn()
name of primary key column in nodes table
|
java.lang.String |
getNodesLabelColumn()
column name for node label
|
java.lang.String |
getSeparator()
separator string for text files.
|
java.lang.String |
getToNidColumn()
column name for destination node
|
java.util.Map<TwoTablesTextGraphConfig.Field,java.lang.Object> |
getValues()
Gets the parsed values.
|
java.util.Map<TwoTablesTextGraphConfig.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<java.lang.String> |
getVertexUris()
list of unified resource identifiers
|
boolean |
hasDefaultValue(TwoTablesTextGraphConfig.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 |
isHeader()
first line of file is meant for headers, e.g.
|
static TwoTablesTextGraphConfig |
parse(java.io.InputStream is, boolean strict, java.lang.String parentPath)
Parses an input stream.
|
static TwoTablesTextGraphConfig |
parse(java.util.Map<java.lang.String,java.lang.Object> raw, boolean strict, java.lang.String parentPath)
Parses a raw key/value mapping.
|
static TwoTablesTextGraphConfig |
parse(java.util.Properties props, boolean strict)
Parses a properties file.
|
java.lang.String |
toString() |
equals, hasEdgeKeys, hashCode
getName, getUri, getUris
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 java.util.Map getAttributes()
getAttributes
in class AbstractFileGraphConfig
public TwoTablesDatastore getDatastore()
public java.lang.String getDateFormat()
getDateFormat
in class GraphConfig
public java.util.List<GraphPropertyConfig> getEdgeProps()
getEdgeProps
in class GraphConfig
public java.lang.String getEdgesKeyColumn()
public java.lang.String getEdgesLabelColumn()
public java.util.List<java.lang.String> getEdgeUris()
getEdgeUris
in class AbstractFileGraphConfig
public GraphErrorHandlingConfig getErrorHandling()
getErrorHandling
in class GraphConfig
public Format getFormat()
getFormat
in class GraphConfig
public java.lang.String getFromNidColumn()
public GraphLoadingConfig getLoading()
getLoading
in class GraphConfig
public java.lang.String getNodesKeyColumn()
public java.lang.String getNodesLabelColumn()
public java.lang.String getSeparator()
getSeparator
in class AbstractFileGraphConfig
public java.lang.String getToNidColumn()
public java.util.Map<TwoTablesTextGraphConfig.Field,java.lang.Object> getValues()
public java.util.Map<TwoTablesTextGraphConfig.Field,java.lang.Object> getValuesWithoutDefaults()
public IdType getVertexIdType()
getVertexIdType
in class GraphConfig
public java.util.List<GraphPropertyConfig> getVertexProps()
getVertexProps
in class GraphConfig
public java.util.List<java.lang.String> getVertexUris()
getVertexUris
in class AbstractFileGraphConfig
public boolean hasDefaultValue(TwoTablesTextGraphConfig.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 isHeader()
isHeader
in class AbstractFileGraphConfig
public static TwoTablesTextGraphConfig 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 TwoTablesTextGraphConfig 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 TwoTablesTextGraphConfig 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.