Class AbstractFileGraphConfig

All Implemented Interfaces:
CommonLoadableConfig<Format>, oracle.pgx.config.internal.ConvertibleToGraphConfigBuilder
Direct Known Subclasses:
AbstractTwoTablesTextGraphConfig, FileGraphConfig

public abstract class AbstractFileGraphConfig extends GraphConfig
Abstract super-class for all file-base graph configs
  • Constructor Details

    • AbstractFileGraphConfig

      public AbstractFileGraphConfig()
  • Method Details

    • toGraphConfigBuilder

      public AbstractFileGraphConfigBuilder toGraphConfigBuilder()
    • getUri

      public String getUri()
      Get the unified resource identifier for the file with the graph data
      Returns:
      the uri
    • getUris

      public List<String> getUris()
      Get the unified resource identifiers for the files with the graph data
      Returns:
      the list of URIs
    • getStoringOptions

      public FileGraphStoringConfig getStoringOptions()
      Get the storing configuration
      Returns:
      the storing configuration
    • getVertexUris

      public abstract List<String> getVertexUris()
      Get the unified resource identifiers for the files with the graph vertex data
      Returns:
      the list of URIs
    • getEdgeUris

      public abstract List<String> getEdgeUris()
      Get the unified resource identifiers for the files with the graph edge data
      Returns:
      the list of URIs
    • getSeparator

      public abstract String getSeparator()
      Get the separator of this graph configuration
      Returns:
      the separator
    • isDetectGzip

      public abstract Boolean isDetectGzip()
      Whether GZip file automatic detection is enabled or not.
      Returns:
      true if GZip file automatic detection is enabled, false otherwise.
    • isHeader

      public abstract Boolean isHeader()
      Whether the file has a header. i.e. first line of file is meant for headers, e.g. 'EdgeId, SourceId, DestId, EdgeProp1, EdgeProp2'
      Returns:
      Whether the file has a header or not
    • getVertexIdColumn

      public abstract Object getVertexIdColumn()
      name or index (starting from 1) of column corresponding to vertex id (for CSV format only)
    • getVertexLabelsColumn

      public abstract Object getVertexLabelsColumn()
      name or index (starting from 1) of column corresponding to vertex labels (for CSV format only)
    • getEdgeIdColumn

      public abstract Object getEdgeIdColumn()
      name or index (starting from 1) of column corresponding to edge id (for CSV format only)
    • getEdgeSourceColumn

      public abstract Object getEdgeSourceColumn()
      name or index (starting from 1) of column corresponding to edge source (for CSV format only)
    • getEdgeDestinationColumn

      public abstract Object getEdgeDestinationColumn()
      name or index (starting from 1) of column corresponding to edge destination (for CSV format only)
    • getEdgeLabelColumn

      public abstract Object getEdgeLabelColumn()
      name or index (starting from 1) of column corresponding to edge label (for CSV format only)
    • getExternalStores

      public abstract List<ExternalStoreConfig> getExternalStores()
      Specified by:
      getExternalStores in class GraphConfig
    • getName

      public String getName()
      Description copied from interface: CommonLoadableConfig
      Get the graph name of this graph configuration. Note: for file-based graph configurations, this is the file name of the URI this configuration points to.
      Returns:
      the graph name
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class GraphConfig
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class GraphConfig