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 df3ab39c [opt](RAM dir)fix compile error in _RAMDirectory (#165)
df3ab39c is described below
commit df3ab39ca636e58ed1ee640921444f7ef6d6438d
Author: qiye <[email protected]>
AuthorDate: Tue Dec 26 18:04:44 2023 +0800
[opt](RAM dir)fix compile error in _RAMDirectory (#165)
Change `sizeInBytes` from private to public to access out of CLucene.
---
src/core/CLucene/store/_RAMDirectory.h | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/src/core/CLucene/store/_RAMDirectory.h
b/src/core/CLucene/store/_RAMDirectory.h
index 232b7efd..78493196 100644
--- a/src/core/CLucene/store/_RAMDirectory.h
+++ b/src/core/CLucene/store/_RAMDirectory.h
@@ -32,7 +32,6 @@ private:
int64_t length;
- int64_t sizeInBytes;// Only maintained if in a directory; updates
synchronized on directory
// This is publicly modifiable via Directory::touchFile(), so direct
access not supported
uint64_t lastModified;
@@ -64,6 +63,8 @@ public:
int64_t getSizeInBytes() const;
friend class RAMDirectory;
+
+ int64_t sizeInBytes; // Only maintained if in a directory; updates
synchronized on directory
};
class CLUCENE_EXPORT RAMOutputStream : public IndexOutput {
@@ -89,9 +90,9 @@ public:
/** Construct an empty output buffer. */
virtual ~RAMOutputStream();
- virtual void close();
+ virtual void close() override;
- int64_t length() const;
+ int64_t length() const override;
/** Resets this to an empty buffer. */
void reset();
/** Copy the current contents of this buffer to the named output. */
@@ -102,11 +103,11 @@ public:
void writeBytes(const uint8_t *b, int32_t len) override;
void writeBytes(const uint8_t *b, int32_t len, int32_t offset) override;
- void seek(const int64_t pos);
+ void seek(const int64_t pos) override;
- void flush();
+ void flush()override;
- int64_t getFilePointer() const;
+ int64_t getFilePointer() const override;
const char *getObjectName();
static const char *getClassName();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]