public abstract class GraphConfig extends AbstractConfig
ENV_SEPARATOR, ENV_VARIABLE_PREFIX, SYSTEM_PROPERTY_PREFIX| Constructor and Description |
|---|
GraphConfig() |
| Modifier and Type | Method and Description |
|---|---|
java.text.DateFormat |
createDateFormat() |
java.util.List<java.time.format.DateTimeFormatter> |
createLocalDateFormat() |
java.util.List<java.time.format.DateTimeFormatter> |
createTimeFormat() |
java.util.List<java.time.format.DateTimeFormatter> |
createTimestampFormat() |
java.util.List<java.time.format.DateTimeFormatter> |
createTimestampWithTimezoneFormat() |
java.util.List<java.time.format.DateTimeFormatter> |
createTimeWithTimezoneFormat() |
boolean |
equals(java.lang.Object obj) |
abstract java.util.Map |
getAttributes()
Get the specific additional attributes needed to read/write the graph data
|
abstract java.lang.String |
getDateFormat()
The date format to use when loading and storing date properties.
|
IdType |
getEdgeIdType()
Get the edge ID type of this graph configuration
|
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.util.List<java.lang.String> |
getLocalDateFormat()
The list of date formats to use when loading and storing local_date properties.
|
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 java.util.List<java.lang.String> |
getTimeFormat()
The list of time formats to use when loading and storing time properties.
|
abstract java.util.List<java.lang.String> |
getTimestampFormat()
The list of timestamp formats to use when loading and storing timestamp properties.
|
abstract java.util.List<java.lang.String> |
getTimestampWithTimezoneFormat()
The list of timestamp with timezone formats to use when loading and storing timestamp with timezone properties.
|
abstract java.util.List<java.lang.String> |
getTimeWithTimezoneFormat()
The list of time with timezone formats to use when loading and storing time with timezone properties.
|
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 |
skipEdgeLoading() |
boolean |
skipVertexLoading() |
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 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()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic abstract java.util.Map getAttributes()
public abstract java.lang.String getDateFormat()
public IdType getEdgeIdType()
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.util.List<java.lang.String> getLocalDateFormat()
public 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 java.util.List<java.lang.String> getTimeFormat()
public abstract java.util.List<java.lang.String> getTimestampFormat()
public abstract java.util.List<java.lang.String> getTimestampWithTimezoneFormat()
public abstract java.util.List<java.lang.String> getTimeWithTimezoneFormat()
public 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 skipEdgeLoading()
public boolean skipVertexLoading()
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 © 2016, 2018 Oracle and/or its affiliates. All Rights Reserved.