Class S3InputFile

    • Method Detail

      • fromLocation

        public static S3InputFile fromLocation​(java.lang.String location,
                                               software.amazon.awssdk.services.s3.S3Client client,
                                               AwsProperties awsProperties,
                                               MetricsContext metrics)
      • fromLocation

        public static S3InputFile fromLocation​(java.lang.String location,
                                               long length,
                                               software.amazon.awssdk.services.s3.S3Client client,
                                               AwsProperties awsProperties,
                                               MetricsContext metrics)
      • getLength

        public long getLength()
        Note: this may be stale if file was deleted since metadata is cached for size/existence checks.
        Specified by:
        getLength in interface InputFile
        Returns:
        content length
      • location

        public java.lang.String location()
      • exists

        public boolean exists()
        Note: this may be stale if file was deleted since metadata is cached for size/existence checks.
        Returns:
        flag
      • getObjectMetadata

        protected software.amazon.awssdk.services.s3.model.HeadObjectResponse getObjectMetadata()
                                                                                         throws software.amazon.awssdk.services.s3.model.S3Exception
        Throws:
        software.amazon.awssdk.services.s3.model.S3Exception
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object