-
Notifications
You must be signed in to change notification settings - Fork 857
Feature/internal issue #672 #11370
<
8000
/div>
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
Merged
Merged
Feature/internal issue #672 #11370
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
d41bf1b
Tests now passes
Dronplane 6ab67ce
More tests
Dronplane cd77866
Merge branch 'devel' into feature/internal-issue-#672
Dronplane c0ee917
Added compression settings
Dronplane d988302
Fixed storage compression settings
Dronplane 9c7e874
reworked compression setting
Dronplane e431072
added mock compressor
Dronplane 2cb1112
Merge branch 'devel' into feature/internal-issue-#672
Dronplane b4daac1
fixed linking
Dronplane 63f0fac
added primarySortCompression
Dronplane 61975a8
Merge branch 'devel' into feature/internal-issue-#672
Dronplane a92ce3b
Added tests
Dronplane 5757c47
Merge branch 'devel' into feature/internal-issue-#672
Dronplane ffa1248
fix tests for mac
Dronplane 79561da
added primarySortCompression test
Dronplane e0b220f
Merge branch 'devel' into feature/internal-issue-#672
Dronplane 62ea27b
added primarySortCompression and storedValues compression to js tests.
Dronplane e6a390b
more tests
Dronplane 3b60ac0
Merge branch 'devel' into feature/internal-issue-#672
Dronplane 80583ba
jslint fixes
Dronplane 8a36791
code cleanup. Jaccard function fix for empty arrays
Dronplane b27ab6e
Update CHANGELOG
Dronplane e3f7746
Code cleanup. More tests
Dronplane 8e12b0d
test fixes
Dronplane 8c473c0
fixed bug
Dronplane 373a884
test
Dronplane 91d2f42
Merge branch 'devel' into feature/internal-issue-#672
Dronplane 93dd5f8
Merge branch 'devel' into feature/internal-issue-#672
Dronplane 5c9c0f5
adressed review comments
Dronplane f14afc2
Merge branch 'devel' into feature/internal-issue-#672
Dronplane 6429477
Fix after merge
Dronplane 8edfb98
Merge branch 'devel' into feature/internal-issue-#672
Dronplane 975d709
Merge branch 'devel' into feature/internal-issue-#672
Dronplane 693cd26
fix build
Dronplane a8a3dd5
cleanup
Dronplane 523072b
cleanup
Dronplane da4c6f8
fixed backslash
Dronplane eafd1cf
fix
Dronplane 022ee7a
fix typo
Dronplane File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
added primarySortCompression
- Loading branch information
commit 63f0facf7ac47e55124d8a3f70c2385f5e8bc904
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
//////////////////////////////////////////////////////////////////////////////// | ||
/// DISCLAIMER | ||
/// | ||
/// Copyright 2020 ArangoDB GmbH, Cologne, Germany | ||
/// | ||
/// Licensed under the Apache License, Version 2.0 (the "License"); | ||
/// you may not use this file except in compliance with the License. | ||
/// You may obtain a copy of the License at | ||
/// | ||
/// http://www.apache.org/licenses/LICENSE-2.0 | ||
/// | ||
/// Unless required by applicable law or agreed to in writing, software | ||
/// distributed under the License is distributed on an "AS IS" BASIS, | ||
/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
/// See the License for the specific language governing permissions and | ||
/// limitations under the License. | ||
/// | ||
/// Copyright holder is ArangoDB GmbH, Cologne, Germany | ||
/// | ||
/// @author Andrei Lobov | ||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
#include "IResearchCompression.h" | ||
#include "Basics/debugging.h" | ||
#include <unordered_map> | ||
|
||
namespace { | ||
const std::unordered_map< | ||
Dronplane marked this conversation as resolved.
Show resolved
Hide resolved
Dronplane marked this conversation as resolved.
Show resolved
Hide resolved
|
||
std::string, | ||
Dronplane marked this conversation as resolved.
Show resolved
Hide resolved
|
||
arangodb::iresearch::ColumnCompression> COMPRESSION_CONVERT_MAP = { | ||
{ "lz4", arangodb::iresearch::ColumnCompression::LZ4 }, | ||
{ "none", arangodb::iresearch::ColumnCompression::NONE }, | ||
#ifdef ARANGODB_USE_GOOGLE_TESTS | ||
{ "test", arangodb::iresearch::ColumnCompression::TEST }, | ||
#endif | ||
Dronplane marked this conversation as resolved.
Show resolved
Hide resolved
|
||
}; | ||
} | ||
|
||
|
||
namespace arangodb { | ||
namespace iresearch { | ||
|
||
irs::string_ref columnCompressionToString(ColumnCompression c) { | ||
for (auto const&it : COMPRESSION_CONVERT_MAP) { | ||
if (it.second == c) { | ||
return it.first; | ||
} | ||
} | ||
TRI_ASSERT(false); | ||
return irs::string_ref::NIL; | ||
} | ||
|
||
ColumnCompression columnCompressionFromString(irs::string_ref const& c) { | ||
TRI_ASSERT(!c.null()); | ||
auto it = COMPRESSION_CONVERT_MAP.find(c); | ||
if (it != COMPRESSION_CONVERT_MAP.end()) { | ||
return it->second; | ||
} | ||
return ColumnCompression::INVALID; | ||
} | ||
|
||
} // namespace iresearch | ||
} // namespace arangodb | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
//////////////////////////////////////////////////////////////////////////////// | ||
/// DISCLAIMER | ||
/// | ||
/// Copyright 2020 ArangoDB GmbH, Cologne, Germany | ||
/// | ||
/// Licensed under the Apache License, Version 2.0 (the "License"); | ||
/// you may not use this file except in compliance with the License. | ||
/// You may obtain a copy of the License at | ||
/// | ||
/// http://www.apache.org/licenses/LICENSE-2.0 | ||
/// | ||
/// Unless required by applicable law or agreed to in writing, software | ||
/// distributed under the License is distributed on an "AS IS" BASIS, | ||
/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
/// See the License for the specific language governing permissions and | ||
/// limitations under the License. | ||
/// | ||
/// Copyright holder is ArangoDB GmbH, Cologne, Germany | ||
/// | ||
/// @author Andrei Lobov | ||
//////////////////////////////////////////////////////////////////////////////// | ||
#ifndef ARANGOD_IRESEARCH__IRESEARCH_COMPRESSION_H | ||
#define ARANGOD_IRESEARCH__IRESEARCH_COMPRESSION_H 1 | ||
|
||
#include "utils/string.hpp" | ||
|
||
namespace arangodb { | ||
namespace iresearch { | ||
|
||
enum class ColumnCompression { | ||
Dronplane marked this conversation as resolved.
Show resolved
Hide resolved
|
||
INVALID = 0, | ||
NONE = 1, | ||
LZ4 | ||
#ifdef ARANGODB_USE_GOOGLE_TESTS | ||
, TEST = 999 | ||
#endif | ||
}; | ||
|
||
irs::string_ref columnCompressionToString(ColumnCompression c); | ||
ColumnCompression columnCompressionFromString(irs::string_ref const& c); | ||
} // iresearch | ||
} // arangodb | ||
|
||
#endif // ARANGOD_IRESEARCH__IRESEARCH_COMPRESSION_H |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.