Class IcebergFileTransferAgent
- java.lang.Object
-
- net.snowflake.ingest.streaming.internal.fileTransferAgent.IcebergFileTransferAgent
-
public class IcebergFileTransferAgent extends Object
-
-
Constructor Summary
Constructors Constructor Description IcebergFileTransferAgent()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static net.snowflake.ingest.streaming.internal.fileTransferAgent.IcebergFileTransferAgent.remoteLocation
extractLocationAndPath(String stageLocationPath)
A small helper for extracting location name and path from full location pathstatic String
uploadWithoutConnection(net.snowflake.client.jdbc.SnowflakeFileTransferMetadataV1 metadata, InputStream uploadStream, Properties proxyProperties, String streamingIngestClientName, String streamingIngestClientKey, String fullFilePath)
Static API function to upload data without JDBC session.
-
-
-
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
-
-