Class TwoTablesTextGraphConfig

All Implemented Interfaces:
CommonLoadableConfig<Format>, oracle.pgx.config.internal.ConvertibleToGraphConfigBuilder, TwoTablesGraphConfig

@Generated("config_generator.py") public class TwoTablesTextGraphConfig extends AbstractTwoTablesTextGraphConfig
PGX Engine Two Tables Text Graph Config
  • Method Details

    • parse

      public static TwoTablesTextGraphConfig parse(InputStream is, boolean strict, String parentPath) throws IOException
      Parses an input stream.
      Parameters:
      is - the input stream
      strict - if true, parses in strict mode
      parentPath - if not null, resolves relative paths against this parentPath
      Returns:
      the parsed graph config
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • parse

      public static TwoTablesTextGraphConfig parse(Map<String,Object> raw, boolean strict, String parentPath)
      Parses a raw key/value mapping.
      Parameters:
      raw - the raw key/value mapping to parse
      strict - if true, parses in strict mode
      parentPath - if not null, resolves relative paths against this parentPath
      Returns:
      the parsed graph config
    • parse

      public static TwoTablesTextGraphConfig parse(Properties props, boolean strict)
      Parses a properties file.
      Parameters:
      props - the properties to parse
      strict - if true, parses in strict mode
      Returns:
      the parsed graph config
    • getConfigFields

      public static TwoTablesTextGraphConfig.Field[] getConfigFields()
    • getValues

      Gets the parsed values.
      Specified by:
      getValues in class AbstractConfig
      Returns:
      the parsed values
    • isEmpty

      public boolean isEmpty()
      Checks if it's empty.
      Returns:
      true, if the Map 'values' is empty.
    • hasDefaultValue

      public boolean hasDefaultValue(TwoTablesTextGraphConfig.Field field)
      Checks for default value.
      Parameters:
      field - the field
      Returns:
      true, if value for given field is the default value
    • getValuesWithoutDefaults

      public Map<TwoTablesTextGraphConfig.Field,Object> getValuesWithoutDefaults()
      Gets the values without defaults.
      Returns:
      the values without defaults
    • getLeftoverValues

      public Map<String,Object> getLeftoverValues()
      Gets the values that do not belong to any field.
      Returns:
      the values that do not belong to any field
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toString

      public String toString(boolean hideSensitiveData)
    • getVertexUris

      public List<String> getVertexUris()
      list of unified resource identifiers
      Specified by:
      getVertexUris in class AbstractFileGraphConfig
      Returns:
      the list of URIs
    • getEdgeUris

      public List<String> getEdgeUris()
      list of unified resource identifiers
      Specified by:
      getEdgeUris in class AbstractFileGraphConfig
      Returns:
      the list of URIs
    • getVertexIdColumn

      public Object getVertexIdColumn()
      name or index (starting from 1) of column corresponding to vertex id (for CSV format only)
      Specified by:
      getVertexIdColumn in class AbstractFileGraphConfig
    • getEdgeIdColumn

      public Object getEdgeIdColumn()
      name or index (starting from 1) of column corresponding to edge id (for CSV format only)
      Specified by:
      getEdgeIdColumn in class AbstractFileGraphConfig
    • getEdgeSourceColumn

      public Object getEdgeSourceColumn()
      name or index (starting from 1) of column corresponding to edge source (for CSV format only)
      Specified by:
      getEdgeSourceColumn in class AbstractFileGraphConfig
    • getEdgeDestinationColumn

      public Object getEdgeDestinationColumn()
      name or index (starting from 1) of column corresponding to edge destination (for CSV format only)
      Specified by:
      getEdgeDestinationColumn in class AbstractFileGraphConfig
    • getVertexLabelsColumn

      public Object getVertexLabelsColumn()
      name or index (starting from 1) of column corresponding to vertex labels (for CSV format only)
      Specified by:
      getVertexLabelsColumn in class AbstractFileGraphConfig
    • getEdgeLabelColumn

      public Object getEdgeLabelColumn()
      name or index (starting from 1) of column corresponding to edge label (for CSV format only)
      Specified by:
      getEdgeLabelColumn in class AbstractFileGraphConfig
    • getSeparator

      public String getSeparator()
      a series of single-character separators for tokenizing. The characters ", {, } and \n cannot be used as separators. Default value is "," for CSV files, and "\t " for other formats. The first character will be used as a separator when storing.
      Specified by:
      getSeparator in class AbstractFileGraphConfig
      Returns:
      the separator
    • isHeader

      public Boolean isHeader()
      first line of file is meant for headers, e.g. 'EdgeId, SourceId, DestId, EdgeProp1, EdgeProp2'
      Specified by:
      isHeader in class AbstractFileGraphConfig
      Returns:
      Whether the file has a header or not
    • isDetectGzip

      public Boolean isDetectGzip()
      enable/disable automatic gzip compression detection when loading graphs
      Specified by:
      isDetectGzip in class AbstractFileGraphConfig
      Returns:
      true if GZip file automatic detection is enabled, false otherwise.
    • getStoringOptions

      public FileGraphStoringConfig getStoringOptions()
      storing-specific configuration
      Specified by:
      getStoringOptions in class AbstractFileGraphConfig
      Returns:
      the storing configuration
    • getOptimizedFor

      public GraphOptimizedFor getOptimizedFor()
      Indicates if the graph should use data-structures optimized for read-intensive scenarios or for fast updates
      Specified by:
      getOptimizedFor in class GraphConfig
      Returns:
      by_label if the graph should be partitioned during loading, false Indicates if the graph should use data-structures optimized for fast updates
    • getPartitionWhileLoading

      public PartitionWhileLoading getPartitionWhileLoading()
      Indicates if the graph should be partitioned while loading
      Specified by:
      getPartitionWhileLoading in class GraphConfig
      Returns:
      true if the graph should be heterogenized during loading, false or null otherwise
    • getVertexIdStrategy

      public IdStrategy getVertexIdStrategy()
      Indicates what ID strategy should be used for the vertices of this graph. If not specified (or set to null), the strategy will be automatically detected
    • getEdgeIdStrategy

      public IdStrategy getEdgeIdStrategy()
      Indicates what ID strategy should be used for the edges of this graph. If not specified (or set to null), the strategy will be determined during loading or using a default value
    • getVertexIdType

      public IdType getVertexIdType()
      type of the vertex ID. If not specified (or set to null), it will default to some type (depending on the origin of the data).
      Specified by:
      getVertexIdType in class GraphConfig
      Returns:
      the vertex ID type
    • getEdgeIdType

      public IdType getEdgeIdType()
      type of the edge ID. If not specified (or set to null), it will default to long.
      Overrides:
      getEdgeIdType in class GraphConfig
      Returns:
      the edge ID type
    • getFormat

      public Format getFormat()
      graph format
      Returns:
      the format
    • getArrayCompactionThreshold

      public 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. If lower than the engine min_array_compaction_threshold value, min_array_compaction_threshold will be used instead
      Specified by:
      getArrayCompactionThreshold in class GraphConfig
      Returns:
      the compaction threshold
    • getVertexProps

      public List<GraphPropertyConfig> getVertexProps()
      specification of vertex properties associated with graph
      Specified by:
      getVertexProps in class GraphConfig
      Returns:
      the list of vertex properties
    • getEdgeProps

      public List<GraphPropertyConfig> getEdgeProps()
      specification of edge properties associated with graph
      Specified by:
      getEdgeProps in class GraphConfig
      Returns:
      the list of vertex properties
    • getLoadingOptions

      public GraphLoadingConfig getLoadingOptions()
      loading-specific configuration
      Specified by:
      getLoadingOptions in class GraphConfig
      Returns:
      the loading configuration
    • getErrorHandling

      public GraphErrorHandlingConfig getErrorHandling()
      error handling configuration
      Returns:
      the error handling configuration
    • getLocalDateFormat

      public List<String> getLocalDateFormat()
      array of local_date formats to use when loading and storing local_date properties. Please see DateTimeFormatter for a documentation of the format string
      Returns:
      the date format
    • getTimeFormat

      public List<String> getTimeFormat()
      the time format to use when loading and storing time properties. Please see DateTimeFormatter for a documentation of the format string
      Returns:
      the time format
    • getTimestampFormat

      public List<String> getTimestampFormat()
      the timestamp format to use when loading and storing timestamp properties. Please see DateTimeFormatter for a documentation of the format string
      Returns:
      the timestamp format
    • getTimeWithTimezoneFormat

      public List<String> getTimeWithTimezoneFormat()
      the time with timezone format to use when loading and storing time with timezone properties. Please see DateTimeFormatter for a documentation of the format string
      Returns:
      the time with timezone format
    • getTimestampWithTimezoneFormat

      public List<String> getTimestampWithTimezoneFormat()
      the timestamp with timezone format to use when loading and storing timestamp with timezone properties. Please see DateTimeFormatter for a documentation of the format string
      Returns:
      the timestamp with timezone format
    • getVectorComponentDelimiter

      public Character getVectorComponentDelimiter()
      delimiter for the different components of vector properties
    • getPoint2d

      public String getPoint2d()
      longitude and latitude as floating point values separated by a space
    • getAttributes

      public Map getAttributes()
      additional attributes needed to read/write the graph data
      Returns:
      the map of attributes
    • getKeystoreAlias

      public String getKeystoreAlias()
      alias to the keystore to use when connecting to database
      Returns:
      the keystore alias or null if underlying format does not require a keystore
    • getDatastore

      public TwoTablesDatastore getDatastore()
      underlying datastore
      Returns:
      the datastore
    • getNodesKeyColumn

      public String getNodesKeyColumn()
      name of primary key column in nodes table
    • getEdgesKeyColumn

      public String getEdgesKeyColumn()
      name of primary key column in edges table
    • getFromNidColumn

      public String getFromNidColumn()
      column name for source node
    • getToNidColumn

      public String getToNidColumn()
      column name for destination node
    • getNodesLabelColumn

      public String getNodesLabelColumn()
      column name for node label
    • getEdgesLabelColumn

      public String getEdgesLabelColumn()
      column name for edge label
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class AbstractTwoTablesTextGraphConfig