Class AzureBlobStorageSource

All Implemented Interfaces:
Serializable, ActualOperator, ElementaryOperator, Operator
Direct Known Subclasses:
JavaAzureBlobStorageSource

public class AzureBlobStorageSource extends UnarySource<String>
This source reads a blob file stored in Azure Blob Storage and outputs the lines as data units.
See Also:
  • Constructor Details

    • AzureBlobStorageSource

      public AzureBlobStorageSource(String storageContainer, String blobName, String filePathToCredentialsFile)
    • AzureBlobStorageSource

      public AzureBlobStorageSource(String storageContainer, String blobName, String filePathToCredentialsFile, String encoding)
    • AzureBlobStorageSource

      public AzureBlobStorageSource(AzureBlobStorageSource that)
      Copies an instance (exclusive of broadcasts).
      Parameters:
      that - that should be copied
  • Method Details

    • getEncoding

      public String getEncoding()
    • getStorageContainer

      public String getStorageContainer()
    • getBlobName

      public String getBlobName()
    • getFilePathToCredentialsFile

      public String getFilePathToCredentialsFile()
    • getBlobByteSize

      public OptionalLong getBlobByteSize()
      Returns:
      the total size of the bytes in the Blob file. Returns empty OptionalLong if an exception is caught.
    • getInputStream

      public InputStream getInputStream() throws Exception
      Retrieves an InputStream to the specified Azure blob file.
      Returns:
      InputStream to the Blob file.
      Throws:
      Exception - if an error occurs during Azure client creation or file rertrieval.