JingsongLi opened a new pull request, #6320:
URL: https://github.com/apache/paimon/pull/6320

   <!-- Please specify the module before the PR name: [core] ... or [flink] ... 
-->
   
   ### Purpose
   
   <!-- Linking this pull request to the issue -->
   Introduce util methods:
   ```java
       static Blob fromData(byte[] data) {
           return new BlobData(data);
       }
   
       static Blob fromLocal(String file) {
           return fromFile(LocalFileIO.create(), new BlobDescriptor(file, 0, 
-1));
       }
   
       static Blob fromHttp(String uri) {
           return fromDescriptor(UriReader.fromHttp(), new BlobDescriptor(uri, 
0, -1));
       }
   
       static Blob fromFile(FileIO fileIO, BlobDescriptor descriptor) {
           return fromDescriptor(UriReader.fromFile(fileIO), descriptor);
       }
   
       static Blob fromDescriptor(UriReader reader, BlobDescriptor descriptor) {
           return new BlobRef(reader, descriptor);
       }
   ```
   
   <!-- What is the purpose of the change -->
   
   ### Tests
   
   <!-- List UT and IT cases to verify this change -->
   
   ### API and Format
   
   <!-- Does this change affect API or storage format -->
   
   ### Documentation
   
   <!-- Does this change introduce a new feature -->
   


-- 
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