Class PartitionedGraphConfigBuilder

    • Constructor Detail

      • PartitionedGraphConfigBuilder

        public PartitionedGraphConfigBuilder()
        default constructor
    • Method Detail

      • setEsIndexName

        public PartitionedGraphConfigBuilder setEsIndexName​(java.lang.String esIndexName)
        Sets the default esIndexName pointing to elasticsearch index
      • setScrollTime

        public PartitionedGraphConfigBuilder setScrollTime​(java.lang.String scrollTime)
        Sets the default Time a elasticsearch query remains open
      • setMaxBatchSize

        public PartitionedGraphConfigBuilder setMaxBatchSize​(int maxBatchSize)
        Sets the default maximal amount of JSON Objects fetched per Request
      • setJdbcUrl

        public PartitionedGraphConfigBuilder setJdbcUrl​(java.lang.String jdbcUrl)
        Sets the default jdbc URL pointing to database (for providers in RDBMS format only)
      • setUsername

        public PartitionedGraphConfigBuilder setUsername​(java.lang.String username)
        Sets the default username to use when connecting to database (for providers in RDBMS format only)
      • setMaxPrefetchedRows

        public PartitionedGraphConfigBuilder setMaxPrefetchedRows​(int maxPrefetchedRows)
        Sets the default maximun number or rows prefetched during each round trip resultset-database (for providers in RDBMS format only)
      • setNumConnections

        public PartitionedGraphConfigBuilder setNumConnections​(int numConnections)
        Sets the default number of connections to read/write data from/to the database provider (for providers in RDBMS format only)
      • setDataSourceId

        public PartitionedGraphConfigBuilder setDataSourceId​(java.lang.String dataSourceId)
        Sets the default data source id to use to connect to database (for providers in RDBMS format only)
      • setSchema

        public PartitionedGraphConfigBuilder setSchema​(java.lang.String schema)
        Sets default schema where the provider is going to be written (for providers in RDBMS format only)
      • setVertexProviders

        public PartitionedGraphConfigBuilder setVertexProviders​(java.lang.Iterable<? extends oracle.pgx.config.internal.ConvertibleToEntityProviderConfigBuilder> providers)
        Set the vertex providers of the graph
        Parameters:
        providers - the provider configurations
        Returns:
        this builder
      • setVertexProviders

        public PartitionedGraphConfigBuilder setVertexProviders​(oracle.pgx.config.internal.ConvertibleToEntityProviderConfigBuilder... providers)
        Set the vertex providers of the graph
        Parameters:
        providers - the provider configurations
        Returns:
        this builder
      • removeVertexProvider

        public PartitionedGraphConfigBuilder removeVertexProvider​(java.lang.String name)
        Removes a vertex provider from this builder
        Parameters:
        name - the name of the vertex provider to remove
        Returns:
        this builder
      • clearVertexProviders

        public PartitionedGraphConfigBuilder clearVertexProviders()
        Clears the vertex providers of the graph
        Returns:
        this builder
      • setEdgeProviders

        public PartitionedGraphConfigBuilder setEdgeProviders​(java.lang.Iterable<? extends oracle.pgx.config.internal.ConvertibleToEntityProviderConfigBuilder> providers)
        Set the edge providers of the graph
        Parameters:
        providers - the provider configuration
        Returns:
        this builder
      • setEdgeProviders

        public PartitionedGraphConfigBuilder setEdgeProviders​(oracle.pgx.config.internal.ConvertibleToEntityProviderConfigBuilder... providers)
        Set the edge providers of the graph
        Parameters:
        providers - the provider configuration
        Returns:
        this builder
      • removeEdgeProvider

        public PartitionedGraphConfigBuilder removeEdgeProvider​(java.lang.String name)
        Removes an edge provider from this builder
        Parameters:
        name - the name of the edge provider to remove
        Returns:
        this builder
      • setName

        public PartitionedGraphConfigBuilder setName​(java.lang.String name)
        Set the name of the graph
        Parameters:
        name - the name of the graph
        Returns:
        this builder
      • setQueries

        public PartitionedGraphConfigBuilder setQueries​(java.util.List<java.lang.String> queries)
        Set the name of the PG view used for loading
        Parameters:
        queries - the queries to use to load the graph
        Returns:
        this builder
      • setSourceType

        public PartitionedGraphConfigBuilder setSourceType​(SourceType sourceType)
        The type of the graph source. This is only applicable, if the graph is loaded from a database.
        Parameters:
        sourceType - The database graph source type.
        Returns:
        This builder.