fresh-borzoni opened a new pull request, #296:
URL: https://github.com/apache/fluss-rust/pull/296

   ## Summary                                                                   
                                                                                
                                                                                
      
         closes #293 
                                                                 
     - Align CPP Table API with Java/Rust builder pattern (                     
                                                                                
                                                                                
   
     - Rename `Connection::Connect` to `Connection::Create` to align with 
Java's `createConnection`                                                       
                                                                                
              
                                                                                
                                                                                
                                                                                
        
     ### API changes                                           
   
     ```cpp
     // Before -> After
   
     // Connection
     Connection::Connect(addr, conn)            ->  Connection::Create(addr, 
conn)
   
     // Append
     table.NewAppendWriter(writer)              -> 
table.NewAppend().CreateWriter(writer)
   
     // Upsert
     table.NewUpsertWriter(writer)               -> 
table.NewUpsert().CreateWriter(writer)
     table.NewUpsertWriter(writer, names)        -> 
table.NewUpsert().PartialUpdateByName(names).CreateWriter(writer)
     table.NewUpsertWriter(writer, indices)      -> 
table.NewUpsert().PartialUpdateByIndex(indices).CreateWriter(writer)
   
     // Lookup
     table.NewLookuper(lookuper)                 -> 
table.NewLookup().CreateLookuper(lookuper)
   
     // Scan — unchanged, already uses builder pattern
     table.NewScan().ProjectByIndex({0, 7}).CreateLogScanner(scanner)
   ```
     Rust FFI consolidation
   
     - 4 scanner FFI methods -> 1 (create_scanner(column_indices, batch))
     - 3 upsert FFI methods -> 1 (create_upsert_writer(column_indices))
     - Column name -> index resolution moved to C++ side
     - Added fluss_table() helper to eliminate repeated FlussTable construction


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to