Interface FeatureDefinition.Builder

All Superinterfaces:
Buildable, CopyableBuilder<FeatureDefinition.Builder,FeatureDefinition>, SdkBuilder<FeatureDefinition.Builder,FeatureDefinition>, SdkPojo
Enclosing class:
FeatureDefinition

public static interface FeatureDefinition.Builder extends SdkPojo, CopyableBuilder<FeatureDefinition.Builder,FeatureDefinition>
  • Method Details

    • featureName

      FeatureDefinition.Builder featureName(String featureName)

      The name of a feature. The type must be a string. FeatureName cannot be any of the following: is_deleted, write_time, api_invocation_time.

      The name:

      • Must start with an alphanumeric character.

      • Can only include alphanumeric characters, underscores, and hyphens. Spaces are not allowed.

      Parameters:
      featureName - The name of a feature. The type must be a string. FeatureName cannot be any of the following: is_deleted, write_time, api_invocation_time.

      The name:

      • Must start with an alphanumeric character.

      • Can only include alphanumeric characters, underscores, and hyphens. Spaces are not allowed.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • featureType

      FeatureDefinition.Builder featureType(String featureType)

      The value type of a feature. Valid values are Integral, Fractional, or String.

      Parameters:
      featureType - The value type of a feature. Valid values are Integral, Fractional, or String.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • featureType

      FeatureDefinition.Builder featureType(FeatureType featureType)

      The value type of a feature. Valid values are Integral, Fractional, or String.

      Parameters:
      featureType - The value type of a feature. Valid values are Integral, Fractional, or String.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • collectionType

      FeatureDefinition.Builder collectionType(String collectionType)

      A grouping of elements where each element within the collection must have the same feature type ( String, Integral, or Fractional).

      • List: An ordered collection of elements.

      • Set: An unordered collection of unique elements.

      • Vector: A specialized list that represents a fixed-size array of elements. The vector dimension is determined by you. Must have elements with fractional feature types.

      Parameters:
      collectionType - A grouping of elements where each element within the collection must have the same feature type ( String, Integral, or Fractional).

      • List: An ordered collection of elements.

      • Set: An unordered collection of unique elements.

      • Vector: A specialized list that represents a fixed-size array of elements. The vector dimension is determined by you. Must have elements with fractional feature types.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • collectionType

      FeatureDefinition.Builder collectionType(CollectionType collectionType)

      A grouping of elements where each element within the collection must have the same feature type ( String, Integral, or Fractional).

      • List: An ordered collection of elements.

      • Set: An unordered collection of unique elements.

      • Vector: A specialized list that represents a fixed-size array of elements. The vector dimension is determined by you. Must have elements with fractional feature types.

      Parameters:
      collectionType - A grouping of elements where each element within the collection must have the same feature type ( String, Integral, or Fractional).

      • List: An ordered collection of elements.

      • Set: An unordered collection of unique elements.

      • Vector: A specialized list that represents a fixed-size array of elements. The vector dimension is determined by you. Must have elements with fractional feature types.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • collectionConfig

      FeatureDefinition.Builder collectionConfig(CollectionConfig collectionConfig)

      Configuration for your collection.

      Parameters:
      collectionConfig - Configuration for your collection.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • collectionConfig

      default FeatureDefinition.Builder collectionConfig(Consumer<CollectionConfig.Builder> collectionConfig)

      Configuration for your collection.

      This is a convenience method that creates an instance of the CollectionConfig.Builder avoiding the need to create one manually via CollectionConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to collectionConfig(CollectionConfig).

      Parameters:
      collectionConfig - a consumer that will call methods on CollectionConfig.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: