Class Split.Builder

  • Enclosing class:
    Split

    public static class Split.Builder
    extends Object
    • Method Detail

      • add

        public Split.Builder add​(String key,
                                 String value)
        Adds the provided property key,value pair to the Split, overwriting any previous value for the key.
        Parameters:
        key - The key for the property.
        value - The value for the property.
        Returns:
        The Builder itself.
      • withSpillLocation

        public Split.Builder withSpillLocation​(SpillLocation val)
        Sets the optional SpillLocation this Split can write to.
        Parameters:
        val - The SpillLocation
        Returns:
        The Builder itself.
      • withEncryptionKey

        public Split.Builder withEncryptionKey​(EncryptionKey key)
        Sets the optional EncryptionKey this Split can use to encrypt/decrypt data.
        Parameters:
        key - The EncryptionKey
        Returns:
        The Builder itself.
      • applyProperties

        public Split.Builder applyProperties​(Map<String,​String> inputProperties)
        Apply a map of properties to the split
        Parameters:
        inputProperties -
        Returns:
        Builder
      • build

        public Split build()
        Builds the Split
        Returns:
        A newly constructed Split using the attributes collected by this builder.