You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by ji...@apache.org on 2023/12/14 08:33:09 UTC
(doris-thirdparty) 01/05: [feature](input) Add the file cache interface (#142)
This is an automated email from the ASF dual-hosted git repository.
jianliangqi pushed a commit to branch clucene-2.0
in repository https://gitbox.apache.org/repos/asf/doris-thirdparty.git
commit 29cf1b21913e852fb96c66a26a13f592c9877674
Author: zzzxl <33...@users.noreply.github.com>
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: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org