1
1
use std:: { mem:: transmute, sync:: Arc } ;
2
2
3
- use parquet_lru:: NoopCache ;
4
3
use pyo3:: {
5
4
pyclass, pymethods,
6
5
types:: { PyAnyMethods , PyMapping , PyMappingMethods , PySequenceMethods , PyTuple } ,
7
6
Bound , IntoPy , Py , PyAny , PyResult , Python ,
8
7
} ;
9
8
use pyo3_asyncio:: tokio:: future_into_py;
10
- use tonbo:: { fs :: FileId , record:: DynRecord , transaction, Projection } ;
9
+ use tonbo:: { record:: DynRecord , transaction, Projection } ;
11
10
12
11
use crate :: {
13
12
column:: Column ,
@@ -19,14 +18,14 @@ use crate::{
19
18
20
19
#[ pyclass]
21
20
pub struct Transaction {
22
- txn : Option < transaction:: Transaction < ' static , DynRecord , NoopCache < FileId > > > ,
21
+ txn : Option < transaction:: Transaction < ' static , DynRecord > > ,
23
22
desc : Arc < Vec < Column > > ,
24
23
primary_key_index : usize ,
25
24
}
26
25
27
26
impl Transaction {
28
27
pub ( crate ) fn new < ' txn > (
29
- txn : transaction:: Transaction < ' txn , DynRecord , NoopCache < FileId > > ,
28
+ txn : transaction:: Transaction < ' txn , DynRecord > ,
30
29
desc : Arc < Vec < Column > > ,
31
30
) -> Self {
32
31
let primary_key_index = desc
@@ -38,8 +37,8 @@ impl Transaction {
38
37
Transaction {
39
38
txn : Some ( unsafe {
40
39
transmute :: <
41
- transaction:: Transaction < ' txn , DynRecord , NoopCache < FileId > > ,
42
- transaction:: Transaction < ' static , DynRecord , NoopCache < FileId > > ,
40
+ transaction:: Transaction < ' txn , DynRecord > ,
41
+ transaction:: Transaction < ' static , DynRecord > ,
43
42
> ( txn)
44
43
} ) ,
45
44
desc,
@@ -85,8 +84,8 @@ impl Transaction {
85
84
let txn = self . txn . as_ref ( ) . unwrap ( ) ;
86
85
let txn = unsafe {
87
86
transmute :: <
88
- & transaction:: Transaction < ' _ , DynRecord , NoopCache < FileId > > ,
89
- & ' static transaction:: Transaction < ' _ , DynRecord , NoopCache < FileId > > ,
87
+ & transaction:: Transaction < ' _ , DynRecord > ,
88
+ & ' static transaction:: Transaction < ' _ , DynRecord > ,
90
89
> ( txn)
91
90
} ;
92
91
@@ -170,8 +169,8 @@ impl Transaction {
170
169
let txn = self . txn . as_ref ( ) . unwrap ( ) ;
171
170
let txn = unsafe {
172
171
transmute :: <
173
- & transaction:: Transaction < ' _ , DynRecord , NoopCache < FileId > > ,
174
- & ' static transaction:: Transaction < ' _ , DynRecord , NoopCache < FileId > > ,
172
+ & transaction:: Transaction < ' _ , DynRecord > ,
173
+ & ' static transaction:: Transaction < ' _ , DynRecord > ,
175
174
> ( txn)
176
175
} ;
177
176
let col_desc = self . desc . get ( self . primary_key_index ) . unwrap ( ) ;
0 commit comments