Class S3SpillLocation
- java.lang.Object
-
- com.amazonaws.athena.connector.lambda.domain.spill.S3SpillLocation
-
- All Implemented Interfaces:
SpillLocation
public class S3SpillLocation extends Object implements SpillLocation
Defines a SpillLocation that is backed by S3.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
S3SpillLocation.Builder
-
Constructor Summary
Constructors Constructor Description S3SpillLocation(String bucket, String key, boolean directory)
Constructs an S3 SpillLocation.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getBucket()
The S3 bucket that we may have spilled data to.String
getKey()
The S3 key that we may have spilled data to.int
hashCode()
boolean
isDirectory()
Indicates if the Key is actually a key prefix for a location that may have multiple blocks.static S3SpillLocation.Builder
newBuilder()
String
toString()
-
-
-
Constructor Detail
-
S3SpillLocation
public S3SpillLocation(String bucket, String key, boolean directory)
Constructs an S3 SpillLocation.- Parameters:
bucket
- The S3 bucket that is the root of the spill location.key
- The S3 key that represents the spill locationdirectory
- Boolean that if True indicates the key is a pre-fix (aka directory) where multiple Blocks may be spilled.
-
-
Method Detail
-
getBucket
public String getBucket()
The S3 bucket that we may have spilled data to.- Returns:
- String containing the S3 bucket name.
-
getKey
public String getKey()
The S3 key that we may have spilled data to.- Returns:
- String containing the S3 key.
-
isDirectory
public boolean isDirectory()
Indicates if the Key is actually a key prefix for a location that may have multiple blocks.- Returns:
- True if the key is actually a prefix for a location that may have multiple blocks, False if the location points to a specific S3 object.
-
newBuilder
public static S3SpillLocation.Builder newBuilder()
-
-