Class 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 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.
      • toString

        public String toString()
        Only printing clientSequencer
        Overrides:
        toString in class Object