Interface GraphAlterationEmptyProviderBuilder

    • Method Detail

      • setLabel

        GraphAlterationEmptyProviderBuilder setLabel​(java.lang.String label)
        Associates a different provider label to the empty provider than the name of the provider
        Parameters:
        label - the label to associate to the provider
        Returns:
        the empty provider builder
        Since:
        21.4
      • setKeyColumn

        GraphAlterationEmptyProviderBuilder setKeyColumn​(java.lang.Object column)
        Sets the name or index (1-based index) of the key property for the provider. (Only useful when the ID strategy is PARTITIONED_IDS)
        Parameters:
        column - the key column name or index
        Returns:
        the empty provider builder
        Since:
        21.4
      • createKeyMapping

        GraphAlterationEmptyProviderBuilder createKeyMapping​(boolean create)
        Sets whether the provider should have a key mapping Should be false when the ID strategy is UNSTABLE_GENERATED_IDS, true when the ID strategy is KEYS_AS_IDS, and can be true or false if the ID strategy is PARTITIONED_IDS.
        Parameters:
        create - boolean indicating if the provider key mapping should be created
        Returns:
        the empty provider builder
        Since:
        21.4
      • addProperty

        GraphAlterationEmptyProviderBuilder addProperty​(java.lang.String name,
                                                        PropertyType type)
        Adds a property of the given name and type to the provider.
        Parameters:
        name - the name of the property to add
        type - the type of the property to add
        Returns:
        the empty provider builder
        Since:
        21.4
      • addProperty

        GraphAlterationEmptyProviderBuilder addProperty​(java.lang.String name,
                                                        PropertyType type,
                                                        int dimension)
        Adds a property of the given name, type and dimension to the provider.
        Parameters:
        name - the name of the property to add
        type - the type of the property to add
        dimension - the dimension of the property (0 for scalar properties, >0 for vector properties)
        Returns:
        the empty provider builder
        Since:
        21.4
      • addProperties

        GraphAlterationEmptyProviderBuilder addProperties​(java.util.List<GraphPropertyConfig> configs)
        Adds properties from the different property configurations
        Parameters:
        configs - the property configurations
        Returns:
        the empty provider builder
        Since:
        21.4