This is an automated email from the ASF dual-hosted git repository.
jianliangqi pushed a commit to branch clucene
in repository https://gitbox.apache.org/repos/asf/doris-thirdparty.git
The following commit(s) were added to refs/heads/clucene by this push:
new b90069ec [feature](input) Add the file cache interface (#142)
b90069ec is described below
commit b90069ec93d34398b6bb21dd4dc39abac82c81f8
Author: zzzxl <[email protected]>
AuthorDate: Fri Dec 1 10:02:52 2023 +0800
[feature](input) Add the file cache interface (#142)
---
src/core/CLucene/store/IndexInput.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/core/CLucene/store/IndexInput.h
b/src/core/CLucene/store/IndexInput.h
index 8db0826f..4d5b24d8 100644
--- a/src/core/CLucene/store/IndexInput.h
+++ b/src/core/CLucene/store/IndexInput.h
@@ -131,6 +131,11 @@ CL_NS_DEF(store)
virtual const char* getDirectoryType() const = 0;
virtual const char* getObjectName() const = 0;
short readShort();
+
+ virtual void setIdxFileCache(bool index) {
+
_CLTHROWA(CL_ERR_UnsupportedOperation,"UnsupportedOperationException:
IndexInput::setIdxFileCache");
+ }
+
};
/** Abstract base class for input from a file in a {@link Directory}. A
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]