Skip to content

[Feature-WIP](inverted index) inverted index writer's implementation#15788

Closed
airborne12 wants to merge 1 commit intoapache:masterfrom
airborne12:master
Closed

[Feature-WIP](inverted index) inverted index writer's implementation#15788
airborne12 wants to merge 1 commit intoapache:masterfrom
airborne12:master

Conversation

@airborne12
Copy link
Member

Proposed changes

Issue Number: Step2 of DSIP-023: Add inverted index for full text search
implementation of inverted index writer

related pr: #14207

Problem summary

Describe your changes.

Checklist(Required)

  1. Does it affect the original behavior:
    • Yes
    • No
    • I don't know
  2. Has unit tests been added:
    • Yes
    • No
    • No Need
  3. Has document been added or modified:
    • Yes
    • No
    • No Need
  4. Does it need to update dependencies:
    • Yes
    • No
  5. Are there any changes that cannot be rolled back:
    • Yes (If Yes, please explain WHY)
    • No

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions


#pragma once

#include <CLucene.h>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: 'CLucene.h' file not found [clang-diagnostic-error]

#include <CLucene.h>
         ^

this->_length = length;
}

void CSIndexInput::readInternal(uint8_t* b, const int32_t len) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: method 'readInternal' can be made const [readability-make-member-function-const]

be/src/olap/rowset/segment_v2/inverted_index_compound_reader.cpp:56:

-     void readInternal(uint8_t* /*b*/, const int32_t /*len*/) override;
+     void readInternal(uint8_t* /*b*/, const int32_t /*len*/) const override;
Suggested change
void CSIndexInput::readInternal(uint8_t* b, const int32_t len) {
void CSIndexInput::readInternal(uint8_t* b, const int32_t len) const {

output->close();
}

DorisCompoundReader::~DorisCompoundReader() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: use '= default' to define a trivial destructor [modernize-use-equals-default]

DorisCompoundReader::~DorisCompoundReader() {
                     ^


#pragma once

#include <CLucene.h>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: 'CLucene.h' file not found [clang-diagnostic-error]

#include <CLucene.h>
         ^


#include "olap/rowset/segment_v2/inverted_index_writer.h"

#include <CLucene.h>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: 'CLucene.h' file not found [clang-diagnostic-error]

#include <CLucene.h>
         ^

@airborne12 airborne12 closed this Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant