@Generated(value="config_generator.py") public class FileGraphConfig extends AbstractFileGraphConfig
| Modifier and Type | Class and Description |
|---|---|
static class |
FileGraphConfig.Field
Fields of PGX Engine File Graph Config
|
ENV_SEPARATOR, ENV_VARIABLE_PREFIX, SYSTEM_PROPERTY_PREFIX| Modifier and Type | Method and Description |
|---|---|
java.util.Map |
getAttributes()
additional attributes needed to read/write the graph data
|
static FileGraphConfig.Field[] |
getConfigFields() |
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.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)
|
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 |
getPoint2d()
longitude and latitude as floating point values separated by a space
|
java.lang.String |
getSeparator()
separator string for text files.
|
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.util.Map<FileGraphConfig.Field,java.lang.Object> |
getValues()
Gets the parsed values.
|
java.util.Map<FileGraphConfig.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(FileGraphConfig.Field field)
Checks for default value.
|
java.lang.Boolean |
hasEdgeLabel()
Deprecated.
|
java.lang.Boolean |
hasVertexLabels()
Deprecated.
|
java.lang.Boolean |
isDetectGzip()
enable/disable automatic gzip compression detection when loading graphs
|
boolean |
isEmpty()
Checks if it's empty.
|
java.lang.Boolean |
isHeader()
first line of file is meant for headers, e.g.
|
static FileGraphConfig |
parse(java.io.InputStream is, boolean strict, java.lang.String parentPath)
Parses an input stream.
|
static FileGraphConfig |
parse(java.util.Map<java.lang.String,java.lang.Object> raw, boolean strict, java.lang.String parentPath)
Parses a raw key/value mapping.
|
static FileGraphConfig |
parse(java.util.Properties props, boolean strict)
Parses a properties file.
|
java.lang.String |
toString() |
java.lang.String |
toString(boolean hashSensitiveData) |
equals, getName, getUri, getUris, hashCodecreateDateFormat, createLocalDateFormat, createTimeFormat, createTimestampFormat, createTimestampWithTimezoneFormat, createTimeWithTimezoneFormat, getEdgeIdType, 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, skipEdgeLoading, skipVertexLoading, supportsEdgeLabel, supportsEdgeLabel, supportsVertexLabels, supportsVertexLabelsgetValueFromEnvironment, getValueFromEnvironment, parseString, setSerializablepublic java.util.Map getAttributes()
getAttributes in class GraphConfigpublic static FileGraphConfig.Field[] getConfigFields()
public java.lang.String getDateFormat()
getDateFormat in class GraphConfigpublic java.util.List<GraphPropertyConfig> getEdgeProps()
getEdgeProps in class GraphConfigpublic java.util.List<java.lang.String> getEdgeUris()
getEdgeUris in class AbstractFileGraphConfigpublic GraphErrorHandlingConfig getErrorHandling()
getErrorHandling in class GraphConfigpublic Format getFormat()
getFormat in class GraphConfigpublic GraphLoadingConfig getLoading()
getLoading in class GraphConfigpublic java.util.List<java.lang.String> getLocalDateFormat()
getLocalDateFormat in class GraphConfigpublic java.lang.String getPoint2d()
public java.lang.String getSeparator()
getSeparator in class AbstractFileGraphConfigpublic java.util.List<java.lang.String> getTimeFormat()
getTimeFormat in class GraphConfigpublic java.util.List<java.lang.String> getTimestampFormat()
getTimestampFormat in class GraphConfigpublic java.util.List<java.lang.String> getTimestampWithTimezoneFormat()
getTimestampWithTimezoneFormat in class GraphConfigpublic java.util.List<java.lang.String> getTimeWithTimezoneFormat()
getTimeWithTimezoneFormat in class GraphConfigpublic java.util.Map<FileGraphConfig.Field,java.lang.Object> getValues()
public java.util.Map<FileGraphConfig.Field,java.lang.Object> getValuesWithoutDefaults()
public IdType getVertexIdType()
getVertexIdType in class GraphConfigpublic java.util.List<GraphPropertyConfig> getVertexProps()
getVertexProps in class GraphConfigpublic java.util.List<java.lang.String> getVertexUris()
getVertexUris in class AbstractFileGraphConfigpublic boolean hasDefaultValue(FileGraphConfig.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 java.lang.Boolean isDetectGzip()
isDetectGzip in class AbstractFileGraphConfigpublic boolean isEmpty()
public java.lang.Boolean isHeader()
isHeader in class AbstractFileGraphConfigpublic static FileGraphConfig 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 FileGraphConfig 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 FileGraphConfig 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.Objectpublic java.lang.String toString(boolean hashSensitiveData)
Copyright © 2016, 2018 Oracle and/or its affiliates. All Rights Reserved.