-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[core]JindoFileIO support cache using JindoCache #6949
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
Changes from 7 commits
dc3a429
d4e35e8
8c12687
d0673cf
9f78609
46e465a
59cd04c
de4693a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -103,4 +103,27 @@ public class RESTCatalogOptions { | |
| .stringType() | ||
| .noDefaultValue() | ||
| .withDescription("REST Catalog DLF OSS endpoint."); | ||
|
|
||
| public static final ConfigOption<Boolean> DLF_FILE_IO_CACHE_ENABLED = | ||
| ConfigOptions.key("dlf.io-cache-enabled") | ||
| .booleanType() | ||
| .defaultValue(false) | ||
| .withDescription( | ||
| "Enable cache for visiting files using file io (currently only JindoFileIO supports cache)."); | ||
| public static final ConfigOption<String> DLF_FILE_IO_CACHE_WHITELIST_PATH = | ||
| ConfigOptions.key("dlf.io-cache.whitelist-path") | ||
|
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. just
Contributor
Author
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. fixed |
||
| .stringType() | ||
| .defaultValue("bucket-,manifest") | ||
| .withDescription( | ||
| "Cache is only applied to paths which contain the specified pattern, and * means all paths."); | ||
| public static final ConfigOption<String> DLF_FILE_IO_CACHE_POLICY = | ||
| ConfigOptions.key("dlf.io-cache.policy") | ||
|
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. just
Contributor
Author
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. fixed |
||
| .stringType() | ||
| .noDefaultValue() | ||
| .withDescription( | ||
| "The table-level cache policy provided by the REST server, combined with: meta,read,write." | ||
| + "`meta`: meta cache is enabled for visiting files; " | ||
| + "`read`: cache is enabled when reading files; " | ||
| + "`write`: data is also cached when writing files; " | ||
| + "`none`: cache is all disabled."); | ||
| } | ||
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.
just
io-cache.enabled.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.
fixed