Class Split.Builder
- java.lang.Object
-
- com.amazonaws.athena.connector.lambda.domain.Split.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Split.Builder
add(String key, String value)
Adds the provided property key,value pair to the Split, overwriting any previous value for the key.Split.Builder
applyProperties(Map<String,String> inputProperties)
Apply a map of properties to the splitSplit
build()
Builds the SplitSplit.Builder
withEncryptionKey(EncryptionKey key)
Sets the optional EncryptionKey this Split can use to encrypt/decrypt data.Split.Builder
withSpillLocation(SpillLocation val)
Sets the optional SpillLocation this Split can write to.
-
-
-
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.
-
-