Class ResourceHint

java.lang.Object
org.apache.beam.sdk.transforms.resourcehints.ResourceHint

public abstract class ResourceHint extends Object
Provides a definition of a resource hint known to the SDK.
  • Constructor Details

    • ResourceHint

      public ResourceHint()
  • Method Details

    • mergeWithOuter

      public ResourceHint mergeWithOuter(ResourceHint outer, boolean isSum)
      Reconciles values of a hint when the hint specified on a transform is also defined in an outer context, for example on a composite transform, or specified in the transform's execution environment. Override this method for a custom reconciliation logic. If isSum is true the merge result will be flipped.
    • toBytes

      public abstract byte[] toBytes()
      Defines how to represent the as bytestring.
    • equals

      public abstract boolean equals(@Nullable Object other)
      Overrides:
      equals in class Object
    • hashCode

      public abstract int hashCode()
      Overrides:
      hashCode in class Object