Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 3.9k
Support load json-data into Doris by RoutineLoad or StreamLoad#3230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -6,6 +6,7 @@ output | ||
| docs/.temp | ||
| docs/.vuepress/dist | ||
| docs/node_modules | ||
| docs/build | ||
| gensrc/build | ||
| fe/target | ||
| thirdparty/src | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -34,6 +34,16 @@ class FileReader { | ||
| // is set to zero. | ||
| virtual Status read(uint8_t* buf, size_t* buf_len, bool* eof) = 0; | ||
| virtual Status readat(int64_t position, int64_t nbytes, int64_t* bytes_read, void* out) = 0; | ||
| /** | ||
| * if read eof then return Status::OK and length is set 0 and buf is set NULL, | ||
| * other return readed bytes. | ||
| * | ||
| * !! Important !! | ||
| * the buf must be deleted by user, otherwise leak memory | ||
| * !! Important !! | ||
| */ | ||
| virtual Status read_all(uint8_t** buf, size_t *length) = 0; | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is read_one_message a better name? Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. comment to explain why add this api | ||
| virtual int64_t size () = 0; | ||
| virtual Status seek(int64_t position) = 0; | ||
| virtual Status tell(int64_t* position) = 0; | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.