public abstract class GraphConfig extends AbstractConfig implements CommonLoadableConfig<Format>, oracle.pgx.config.internal.ConvertibleToGraphConfigBuilder
ENV_SEPARATOR, ENV_VARIABLE_PREFIX, SYSTEM_PROPERTY_PREFIX| Constructor and Description |
|---|
GraphConfig() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.Double |
getArrayCompactionThreshold()
For graphs optimized for updates, the value corresponds to the ratio at which the delta-logs are compacted
into new arrays.
|
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 java.util.List<ExternalStoreConfig> |
getExternalStores() |
java.util.Optional<GraphFilter> |
getLoadingFilter() |
GraphLoadingConfig |
getLoadingOptions()
Get the loading configuration 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 GraphOptimizedFor |
getOptimizedFor()
Indicates if the graph should be partitioned during loading
|
abstract PartitionWhileLoading |
getPartitionWhileLoading()
Indicates if the graph should be heterogenized during loading
|
IdStrategy |
getValidatedEdgeIdStrategy()
Validates and return the ID strategy used for edges (checking if the strategy is compatible with the rest of
the graph configuration)
|
IdType |
getValidatedEdgeIdType()
Validates and return the ID type used for edges (checking if the type is compatible with the rest of the
configuration)
|
IdStrategy |
getValidatedVertexIdStrategy()
Validates and return the ID strategy used for vertices (checking if the strategy is compatible with the rest of
the graph configuration)
|
IdType |
getValidatedVertexIdType()
Validates and return the ID type used for vertices (checking if the type is compatible with the rest of the
configuration)
|
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 |
supportsPropertyColumn()
Check if this graph configuration's format supports having a column indication for properties
|
static boolean |
supportsPropertyColumn(Format format)
Check if a format support having a column indication for properties
|
boolean |
supportsVectorProperties()
Check if this graph configuration's format supports having vector properties or not
|
static boolean |
supportsVectorProperties(Format format)
Check if a format support having vector properties 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
|
getDefault, getValueFromEnvironment, getValueFromEnvironment, parseString, setSerializableequals, getClass, notify, notifyAll, toString, wait, wait, waitcreateLocalDateFormat, createTimeFormat, createTimestampFormat, createTimestampWithTimezoneFormat, createTimeWithTimezoneFormat, getAttributes, getErrorHandling, getFormat, getKeystoreAlias, getLocalDateFormat, getName, getTimeFormat, getTimestampFormat, getTimestampWithTimezoneFormat, getTimeWithTimezoneFormat, getVectorComponentDelimiterpublic abstract java.lang.Double getArrayCompactionThreshold()
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 java.util.List<ExternalStoreConfig> getExternalStores()
public java.util.Optional<GraphFilter> getLoadingFilter()
Optional.empty() otherwisepublic GraphLoadingConfig getLoadingOptions()
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 GraphOptimizedFor getOptimizedFor()
by_label if the graph should be partitioned during loading, false
Indicates if the graph should use data-structures optimized for fast updatespublic abstract PartitionWhileLoading getPartitionWhileLoading()
true if the graph should be heterogenized during loading, false
or null otherwisepublic IdStrategy getValidatedEdgeIdStrategy()
public IdType getValidatedEdgeIdType()
public IdStrategy getValidatedVertexIdStrategy()
public IdType getValidatedVertexIdType()
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()
true 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()
true 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()
true 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 supportsPropertyColumn()
true if this graph configuration's format supports property columns, false
otherwisepublic static boolean supportsPropertyColumn(Format format)
format - the format to checktrue if given format supports property columns, false otherwisepublic boolean supportsVectorProperties()
true if this graph configuration's format supports vector proeprties, false
otherwisepublic static boolean supportsVectorProperties(Format format)
format - the format to checktrue if given format supports vector properties, false otherwisepublic boolean supportsVertexLabels()
true 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 © 2015 - 2020 Oracle and/or its affiliates. All Rights Reserved.