Class S3BlockSpillReader


  • public class S3BlockSpillReader
    extends Object
    • Constructor Detail

      • S3BlockSpillReader

        public S3BlockSpillReader​(com.amazonaws.services.s3.AmazonS3 amazonS3,
                                  BlockAllocator allocator)
    • Method Detail

      • read

        public Block read​(S3SpillLocation spillLocation,
                          EncryptionKey key,
                          org.apache.arrow.vector.types.pojo.Schema schema)
        Reads a spilled block.
        Parameters:
        spillLocation - The location to read the spilled Block from.
        key - The encryption key to use when reading the spilled Block.
        schema - The Schema to use when deserializing the spilled Block.
        Returns:
        The Block stored at the spill location.
      • read

        public byte[] read​(S3SpillLocation spillLocation,
                           EncryptionKey key)
        Reads spilled data as a byte[].
        Parameters:
        spillLocation - The location to read the spilled Block from.
        key - The encryption key to use when reading the spilled Block.
        Returns:
        The Block stored at the spill location.