Package org.teiid.s3

Class S3VirtualFile

    • Constructor Detail

      • S3VirtualFile

        public S3VirtualFile​(com.amazonaws.services.s3.AmazonS3 s3Client,
                             com.amazonaws.services.s3.model.S3ObjectSummary s3ObjectSummary,
                             S3Configuration s3Config)
    • Method Detail

      • openInputStream

        public InputStream openInputStream​(boolean b)
                                    throws IOException
        Description copied from interface: VirtualFile
        Open a stream for reading
        Specified by:
        openInputStream in interface VirtualFile
        Parameters:
        b - true if a lock is requested. It's up to the implementation whether to actually honor the lock.
        Throws:
        IOException
      • getLastModified

        public long getLastModified()
        Description copied from interface: VirtualFile
        The last modified time in UTC milliseconds
        Specified by:
        getLastModified in interface VirtualFile
      • getCreationTime

        public long getCreationTime()
        Description copied from interface: VirtualFile
        The creation time in UTC milliseconds
        Specified by:
        getCreationTime in interface VirtualFile
      • getSize

        public long getSize()
        Description copied from interface: VirtualFile
        The size in bytes.
        Specified by:
        getSize in interface VirtualFile
        Returns:
        the size or -1 if unknown.