Class IcebergFileTransferAgent


  • public class IcebergFileTransferAgent
    extends Object
    • Constructor Detail

      • IcebergFileTransferAgent

        public IcebergFileTransferAgent()
    • Method Detail

      • uploadWithoutConnection

        public static String uploadWithoutConnection​(net.snowflake.client.jdbc.SnowflakeFileTransferMetadataV1 metadata,
                                                     InputStream uploadStream,
                                                     Properties proxyProperties,
                                                     String streamingIngestClientName,
                                                     String streamingIngestClientKey,
                                                     String fullFilePath)
                                              throws Exception
        Static API function to upload data without JDBC session.

        NOTE: This function is developed based on getUploadFileCallable().

        Throws:
        Exception - if error occurs while data upload.
      • extractLocationAndPath

        public static net.snowflake.ingest.streaming.internal.fileTransferAgent.IcebergFileTransferAgent.remoteLocation extractLocationAndPath​(String stageLocationPath)
        A small helper for extracting location name and path from full location path
        Parameters:
        stageLocationPath - stage location
        Returns:
        remoteLocation object