public abstract class GraphConfig extends AbstractConfig
ENV_VARIABLE_PREFIX, SYSTEM_PROPERTY_PREFIX| Constructor and Description |
|---|
GraphConfig() |
| Modifier and Type | Method and Description |
|---|---|
java.text.DateFormat |
createDateFormat() |
boolean |
equals(java.lang.Object obj) |
abstract java.lang.String |
getDateFormat()
The date format to use when loading and storing date properties.
|
java.lang.Object |
getEdgePropertyDefault(int i)
Get the default value of a edge property by index
|
int |
getEdgePropertyDimension(int i)
Get the dimension of a edge property by index
|
java.lang.String |
getEdgePropertyName(int i)
Get the name of a edge property by index
|
PropertyType |
getEdgePropertyType(int i)
Get the name of a edge property by index
|
java.util.Map<java.lang.String,PropertyType> |
getEdgePropertyTypes() |
abstract java.util.List<GraphPropertyConfig> |
getEdgeProps()
Get the vertex properties of this graph configuration
|
abstract GraphErrorHandlingConfig |
getErrorHandling()
Get the error handling configuration of this graph configuration
|
abstract Format |
getFormat()
Get the format of this graph configuration
|
abstract GraphLoadingConfig |
getLoading()
Get the loading configuration of this graph configuration
|
java.util.Optional<GraphFilter> |
getLoadingFilter() |
abstract java.lang.String |
getName()
Get the graph name of this graph configuration.
|
IdType |
getNodeKeyType()
alias for
getVertexIdType() |
java.lang.Object |
getNodePropertyDefault(int i)
Get the default value of a vertex property by index
|
int |
getNodePropertyDimension(int i)
Get the dimension of a node property by index
|
java.lang.String |
getNodePropertyName(int i)
Get the name of a vertex property by index
|
PropertyType |
getNodePropertyType(int i)
Get the type of a vertex property by index
|
abstract IdType |
getVertexIdType()
Get the vertex ID type of this graph configuration
|
java.util.Map<java.lang.String,PropertyType> |
getVertexPropertyTypes() |
abstract java.util.List<GraphPropertyConfig> |
getVertexProps()
Get the vertex properties of this graph configuration
|
int |
hashCode() |
boolean |
hasVerticesAndEdgesSeparatedFileFormat()
Check if this graph configuration has vertices and edges separated in different files
|
static boolean |
hasVerticesAndEdgesSeparatedFileFormat(Format format)
Check if a format has vertices and edges separated in different files
|
boolean |
isEdgeLabelLoadingEnabled() |
boolean |
isFileFormat()
Check if this graph configuration is a file-based configuration.
|
static boolean |
isFileFormat(Format format)
Check if a format is a file-based format
|
boolean |
isLoadEdgeKeys() |
boolean |
isLoadVertexKeys() |
boolean |
isMultipleFileFormat()
Check if this graph configuration has vertices and edges separated in different files
|
static boolean |
isMultipleFileFormat(Format format)
Check if a format has vertices and edges separated in different files
|
boolean |
isSingleFileFormat()
Check if this graph configuration has vertices and edges combined in same file
|
static boolean |
isSingleFileFormat(Format format)
Check if a format has vertices and edges combined in same file
|
boolean |
isVertexLabelsLoadingEnabled() |
int |
numEdgeProperties()
Get the number of edge properties in this graph configuration
|
int |
numNodeProperties()
Get the number of vertex properties in this graph configuration
|
boolean |
supportsEdgeLabel()
Check if this graph configuration's format supports having an edge label or not
|
static boolean |
supportsEdgeLabel(Format format)
Check if a format supports having an edge label or not
|
boolean |
supportsVertexLabels()
Check if this graph configuration's format supports having an vertex labels or not
|
static boolean |
supportsVertexLabels(Format format)
Check if a format support having an vertex labels or not
|
getValueFromEnvironment, getValueFromEnvironment, parseString, setSerializablepublic java.text.DateFormat createDateFormat()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic abstract java.lang.String getDateFormat()
public java.lang.Object getEdgePropertyDefault(int i)
i - the 0-based index of the edge propertypublic int getEdgePropertyDimension(int i)
i - the 0-based index of the edge propertypublic java.lang.String getEdgePropertyName(int i)
i - the 0-based index of the edge propertypublic PropertyType getEdgePropertyType(int i)
i - the 0-based index of the edge propertypublic java.util.Map<java.lang.String,PropertyType> getEdgePropertyTypes()
public abstract java.util.List<GraphPropertyConfig> getEdgeProps()
public abstract GraphErrorHandlingConfig getErrorHandling()
public abstract Format getFormat()
public abstract GraphLoadingConfig getLoading()
public java.util.Optional<GraphFilter> getLoadingFilter()
Optional.empty() otherwisepublic abstract java.lang.String getName()
public IdType getNodeKeyType()
getVertexIdType()public java.lang.Object getNodePropertyDefault(int i)
i - the 0-based index of the vertex propertypublic int getNodePropertyDimension(int i)
i - the 0-based index of the node propertypublic java.lang.String getNodePropertyName(int i)
i - the 0-based index of the vertex propertypublic PropertyType getNodePropertyType(int i)
i - the 0-based index of the vertex propertypublic abstract IdType getVertexIdType()
public java.util.Map<java.lang.String,PropertyType> getVertexPropertyTypes()
public abstract java.util.List<GraphPropertyConfig> getVertexProps()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean hasVerticesAndEdgesSeparatedFileFormat()
true if this graph configuration's format has vertices and edges separated in different files, false otherwisepublic static boolean hasVerticesAndEdgesSeparatedFileFormat(Format format)
format - the format to checktrue if given format has vertices and edges separated in different files, false otherwisepublic boolean isEdgeLabelLoadingEnabled()
public boolean isFileFormat()
true if this graph configuration has a file-based format, false otherwisepublic static boolean isFileFormat(Format format)
format - the format to checktrue if given format is a file-based format, false otherwisepublic boolean isLoadEdgeKeys()
public boolean isLoadVertexKeys()
public boolean isMultipleFileFormat()
format - the format to checktrue if this graph configuration's format has vertices and edges separated in different files, false otherwisepublic static boolean isMultipleFileFormat(Format format)
format - the format to checktrue if given format has vertices and edges separated in different files, false otherwisepublic boolean isSingleFileFormat()
format - the format to checktrue if this graph configuration's format has vertices and edges combined in same file, false otherwisepublic static boolean isSingleFileFormat(Format format)
format - the format to checktrue if given format has vertices and edges combined in same file, false otherwisepublic boolean isVertexLabelsLoadingEnabled()
public int numEdgeProperties()
public int numNodeProperties()
public boolean supportsEdgeLabel()
format - the format to checktrue if this graph configuration's format supports edge label, false otherwisepublic static boolean supportsEdgeLabel(Format format)
format - the format to checktrue if given format supports edge label, false otherwisepublic boolean supportsVertexLabels()
format - the format to checktrue if this graph configuration's format supports vertex labels, false otherwisepublic static boolean supportsVertexLabels(Format format)
format - the format to checktrue if given format supports vertex labels, false otherwiseCopyright © 2017 Oracle Corp. All Rights Reserved.