Class AzureBlobStorageSource
java.lang.Object
dev.langchain4j.data.document.source.azure.storage.blob.AzureBlobStorageSource
- All Implemented Interfaces:
DocumentSource
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAzureBlobStorageSource
(InputStream inputStream, String containerName, String accountName, String blobName, com.azure.storage.blob.models.BlobProperties properties) -
Method Summary
Modifier and TypeMethodDescriptionProvides anInputStream
to read the content of the document.metadata()
Returns the metadata associated with the source of the document.
-
Field Details
-
SOURCE
- See Also:
-
-
Constructor Details
-
AzureBlobStorageSource
public AzureBlobStorageSource(InputStream inputStream, String containerName, String accountName, String blobName, com.azure.storage.blob.models.BlobProperties properties)
-
-
Method Details
-
inputStream
Description copied from interface:DocumentSource
Provides anInputStream
to read the content of the document. This method can be implemented to read from various sources like a local file or a network connection.- Specified by:
inputStream
in interfaceDocumentSource
- Returns:
- An InputStream from which the document content can be read.
-
metadata
Description copied from interface:DocumentSource
Returns the metadata associated with the source of the document. This could include details such as the source location, date of creation, owner, etc.- Specified by:
metadata
in interfaceDocumentSource
- Returns:
- A Metadata object containing information associated with the source of the document.
-