You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "JingsongLi (via GitHub)" <gi...@apache.org> on 2025/09/24 03:27:27 UTC
[PR] [core] Introduce creation methods to Blob [paimon]
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [core] Introduce creation methods to Blob [paimon]
Posted by "lucasfang (via GitHub)" <gi...@apache.org>.
lucasfang commented on PR #6320:
URL: https://github.com/apache/paimon/pull/6320#issuecomment-3328629297
+1
--
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [core] Introduce creation methods to Blob [paimon]
Posted by "leaves12138 (via GitHub)" <gi...@apache.org>.
leaves12138 merged PR #6320:
URL: https://github.com/apache/paimon/pull/6320
--
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [core] Introduce creation methods to Blob [paimon]
Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi closed pull request #6320: [core] Introduce creation methods to Blob
URL: https://github.com/apache/paimon/pull/6320
--
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org