chore: remove PerfectHasingFunction Filters (#10627)

Co-authored-by: joshieDo <93316087+joshieDo@users.noreply.github.com>
This commit is contained in:
nk_ysg
2024-09-04 22:46:46 +08:00
committed by GitHub
parent 9257c8a9d4
commit 2c28438505
11 changed files with 33 additions and 445 deletions

View File

@ -1,7 +1,7 @@
use super::mask::{ColumnSelectorOne, ColumnSelectorThree, ColumnSelectorTwo};
use derive_more::{Deref, DerefMut};
use reth_db_api::table::Decompress;
use reth_nippy_jar::{DataReader, NippyJar, NippyJarCursor, NippyJarError};
use reth_nippy_jar::{DataReader, NippyJar, NippyJarCursor};
use reth_primitives::{static_file::SegmentHeader, B256};
use reth_storage_errors::provider::{ProviderError, ProviderResult};
use std::sync::Arc;
@ -39,7 +39,7 @@ impl<'a> StaticFileCursor<'a> {
}
let row = match key_or_num {
KeyOrNumber::Key(_) => Err(NippyJarError::UnsupportedFilterQuery),
KeyOrNumber::Key(_) => unimplemented!(),
KeyOrNumber::Number(n) => match self.jar().user_header().start() {
Some(offset) => {
if offset > n {