Package net.snowflake.ingest.connection
Class InsertFilesClientInfo
- java.lang.Object
-
- net.snowflake.ingest.connection.InsertFilesClientInfo
-
public class InsertFilesClientInfo extends Object
Just a wrapper class which is serialised into REST request for insertFiles.This is an optional field which can be passed with a required field "files" in the request body.
Here is how the new request could look like
{ "files":[ { "path":"file1.csv.gz" }, { "path":"file2.csv.gz" } ], "clientInfo": { "clientSequencer": 1, "offsetToken": "2" } }
-
-
Field Summary
Fields Modifier and Type Field Description static intMAX_ALLOWED_OFFSET_TOKEN_BYTE_SIZE
-
Constructor Summary
Constructors Constructor Description InsertFilesClientInfo(long clientSequencer, String offsetToken)Constructor with both fields as required.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetClientSequencer()Gets client Sequencer associated with this clientInfo record.StringgetOffsetToken()Gets offsetToken associated with this clientInfo record.StringtoString()Only printing clientSequencer
-
-
-
Field Detail
-
MAX_ALLOWED_OFFSET_TOKEN_BYTE_SIZE
public static final int MAX_ALLOWED_OFFSET_TOKEN_BYTE_SIZE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
InsertFilesClientInfo
public InsertFilesClientInfo(long clientSequencer, String offsetToken)Constructor with both fields as required.
-
-
Method Detail
-
getClientSequencer
public long getClientSequencer()
Gets client Sequencer associated with this clientInfo record.
-
getOffsetToken
public String getOffsetToken()
Gets offsetToken associated with this clientInfo record.
-
-