forked from pola-rs/polars
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,14 @@ | ||
use super::*; | ||
use crate::prelude::*; | ||
|
||
pub type DecimalChunked = Logical<DatetimeType, Int128Type>; | ||
|
||
impl LogicalType for DecimalChunked { | ||
fn dtype(&self) -> &DataType { | ||
self.2.as_ref().unwrap() | ||
} | ||
|
||
fn cast(&self, dtype: &DataType) -> PolarsResult<Series> { | ||
todo!() | ||
} | ||
} |
This file contains 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 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 @@ | ||
use super::{private, IntoSeries, SeriesTrait, SeriesWrap, *}; | ||
use crate::prelude::*; | ||
|
||
unsafe impl IntoSeries for DecimalChunked { | ||
fn into_series(self) -> Series { | ||
Series(Arc::new(SeriesWrap(self))) | ||
} | ||
} | ||
|
||
impl private::PrivateSeriesNumeric for SeriesWrap<DecimalChunked> {} | ||
|
||
impl private::PrivateSeries for SeriesWrap<DecimalChunked> {} | ||
|
||
impl SeriesTrait for SeriesWrap<DecimalChunked> { | ||
fn rename(&mut self, name: &str) { | ||
todo!() | ||
} | ||
|
||
fn chunks(&self) -> &Vec<ArrayRef> { | ||
todo!() | ||
} | ||
|
||
fn take_iter(&self, _iter: &mut dyn TakeIterator) -> PolarsResult<Series> { | ||
todo!() | ||
} | ||
|
||
unsafe fn take_iter_unchecked(&self, _iter: &mut dyn TakeIterator) -> Series { | ||
todo!() | ||
} | ||
|
||
unsafe fn take_unchecked(&self, _idx: &IdxCa) -> PolarsResult<Series> { | ||
todo!() | ||
} | ||
|
||
unsafe fn take_opt_iter_unchecked(&self, _iter: &mut dyn TakeIteratorNulls) -> Series { | ||
todo!() | ||
} | ||
|
||
fn take(&self, _indices: &IdxCa) -> PolarsResult<Series> { | ||
todo!() | ||
} | ||
|
||
fn len(&self) -> usize { | ||
todo!() | ||
} | ||
|
||
fn take_every(&self, n: usize) -> Series { | ||
todo!() | ||
} | ||
|
||
fn has_validity(&self) -> bool { | ||
todo!() | ||
} | ||
|
||
#[cfg(feature = "chunked_ids")] | ||
unsafe fn _take_chunked_unchecked(&self, by: &[ChunkId], sorted: IsSorted) -> Series { | ||
todo!() | ||
} | ||
|
||
#[cfg(feature = "chunked_ids")] | ||
unsafe fn _take_opt_chunked_unchecked(&self, by: &[Option<ChunkId>]) -> Series { | ||
todo!() | ||
} | ||
} |
This file contains 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