@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 |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Double |
getArrayCompactionThreshold()
[only relevant if the graph is optimized for updates] threshold used to determined when to compact the delta-logs into a new array.
|
java.util.Map |
getAttributes()
additional attributes needed to read/write the graph data
|
static FileGraphConfig.Field[] |
getConfigFields() |
java.lang.Object |
getEdgeDestinationColumn()
name or index (starting from 1) of column corresponding to edge destination (for CSV format only)
|
java.lang.Object |
getEdgeIdColumn()
name or index (starting from 1) of column corresponding to edge id (for CSV format only)
|
IdStrategy |
getEdgeIdStrategy()
Indicates what ID strategy should be used for the edges of this graph.
|
IdType |
getEdgeIdType()
type of the edge ID.
|
java.lang.Object |
getEdgeLabelColumn()
name or index (starting from 1) of column corresponding to edge label (for CSV format only)
|
java.util.List<GraphPropertyConfig> |
getEdgeProps()
specification of edge properties associated with graph
|
java.lang.Object |
getEdgeSourceColumn()
name or index (starting from 1) of column corresponding to edge source (for CSV format only)
|
java.util.List<java.lang.String> |
getEdgeUris()
list of unified resource identifiers
|
GraphErrorHandlingConfig |
getErrorHandling()
error handling configuration
|
java.util.List<ExternalStoreConfig> |
getExternalStores()
Specification of the external stores where external string properties reside.
|
Format |
getFormat()
graph format
|
java.lang.String |
getKeystoreAlias()
alias to the keystore to use when connecting to database
|
java.util.Map<java.lang.String,java.lang.Object> |
getLeftoverValues()
Gets the values that do not belong to any field.
|
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.
|
GraphOptimizedFor |
getOptimizedFor()
Indicates if the graph should use data-structures optimized for read-intensive scenarios or for fast updates
|
PartitionWhileLoading |
getPartitionWhileLoading()
Indicates if the graph should be partitioned while loading
|
java.lang.String |
getPoint2d()
longitude and latitude as floating point values separated by a space
|
java.lang.String |
getSeparator()
a series of single-character separators for tokenizing.
|
FileGraphStoringConfig |
getStoring()
storing-specific configuration
|
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.
|
java.lang.Character |
getVectorComponentDelimiter()
delimiter for the different components of vector properties
|
java.lang.Object |
getVertexIdColumn()
name or index (starting from 1) of column corresponding to vertex id (for CSV format only)
|
IdStrategy |
getVertexIdStrategy()
Indicates what ID strategy should be used for the vertices of this graph.
|
IdType |
getVertexIdType()
type of the vertex ID.
|
java.lang.Object |
getVertexLabelsColumn()
name or index (starting from 1) of column corresponding to vertex labels (for CSV format only)
|
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 |
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 hideSensitiveData) |
getName, getStoringOptions, getUri, getUris, hashCode, toGraphConfigBuilder
getEdgePropertyDefault, getEdgePropertyDimension, getEdgePropertyName, getEdgePropertyType, getEdgePropertyTypes, getLoadingFilter, getLoadingOptions, getNodeKeyType, getNodePropertyDefault, getNodePropertyDimension, getNodePropertyName, getNodePropertyType, getValidatedEdgeIdStrategy, getValidatedEdgeIdType, getValidatedVertexIdStrategy, getValidatedVertexIdType, getVertexPropertyTypes, hasVerticesAndEdgesSeparatedFileFormat, hasVerticesAndEdgesSeparatedFileFormat, isEdgeLabelLoadingEnabled, isFileFormat, isFileFormat, isLoadEdgeKeys, isLoadVertexKeys, isMultipleFileFormat, isMultipleFileFormat, isSingleFileFormat, isSingleFileFormat, isVertexLabelsLoadingEnabled, numEdgeProperties, numNodeProperties, skipEdgeLoading, skipVertexLoading, supportsEdgeLabel, supportsEdgeLabel, supportsPropertyColumn, supportsPropertyColumn, supportsVectorProperties, supportsVectorProperties, supportsVertexLabels, supportsVertexLabels
getDefault, getValueFromEnvironment, getValueFromEnvironment, parseString, setSerializable
createLocalDateFormat, createTimeFormat, createTimestampFormat, createTimestampWithTimezoneFormat, createTimeWithTimezoneFormat
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.Double getArrayCompactionThreshold()
getArrayCompactionThreshold
in class GraphConfig
public java.util.Map getAttributes()
public static FileGraphConfig.Field[] getConfigFields()
public java.lang.Object getEdgeDestinationColumn()
getEdgeDestinationColumn
in class AbstractFileGraphConfig
public java.lang.Object getEdgeIdColumn()
getEdgeIdColumn
in class AbstractFileGraphConfig
public IdStrategy getEdgeIdStrategy()
public IdType getEdgeIdType()
getEdgeIdType
in class GraphConfig
public java.lang.Object getEdgeLabelColumn()
getEdgeLabelColumn
in class AbstractFileGraphConfig
public java.util.List<GraphPropertyConfig> getEdgeProps()
getEdgeProps
in class GraphConfig
public java.lang.Object getEdgeSourceColumn()
getEdgeSourceColumn
in class AbstractFileGraphConfig
public java.util.List<java.lang.String> getEdgeUris()
getEdgeUris
in class AbstractFileGraphConfig
public GraphErrorHandlingConfig getErrorHandling()
public java.util.List<ExternalStoreConfig> getExternalStores()
getExternalStores
in class AbstractFileGraphConfig
public Format getFormat()
public java.lang.String getKeystoreAlias()
public java.util.Map<java.lang.String,java.lang.Object> getLeftoverValues()
public GraphLoadingConfig getLoading()
getLoading
in class GraphConfig
public java.util.List<java.lang.String> getLocalDateFormat()
public GraphOptimizedFor getOptimizedFor()
getOptimizedFor
in class GraphConfig
by_label
if the graph should be partitioned during loading, false
Indicates if the graph should use data-structures optimized for fast updatespublic PartitionWhileLoading getPartitionWhileLoading()
getPartitionWhileLoading
in class GraphConfig
true
if the graph should be heterogenized during loading, false
or null
otherwisepublic java.lang.String getPoint2d()
public java.lang.String getSeparator()
getSeparator
in class AbstractFileGraphConfig
public FileGraphStoringConfig getStoring()
getStoring
in class AbstractFileGraphConfig
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.util.Map<FileGraphConfig.Field,java.lang.Object> getValues()
getValues
in class AbstractConfig
public java.util.Map<FileGraphConfig.Field,java.lang.Object> getValuesWithoutDefaults()
public java.lang.Character getVectorComponentDelimiter()
public java.lang.Object getVertexIdColumn()
getVertexIdColumn
in class AbstractFileGraphConfig
public IdStrategy getVertexIdStrategy()
public IdType getVertexIdType()
getVertexIdType
in class GraphConfig
public java.lang.Object getVertexLabelsColumn()
getVertexLabelsColumn
in class AbstractFileGraphConfig
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(FileGraphConfig.Field field)
field
- the fieldpublic java.lang.Boolean isDetectGzip()
isDetectGzip
in class AbstractFileGraphConfig
public boolean isEmpty()
public java.lang.Boolean isHeader()
isHeader
in class AbstractFileGraphConfig
public 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.Object
public java.lang.String toString(boolean hideSensitiveData)