refactor: merge create_serializer_const into create_serializer
thx to
@@ -128,7 +128,8 @@ where Self: Sized
fn create_mutable(&self, capacity: usize) -> Box<dyn MutableColumn>;
- fn create_serializer_const<'a>(&self, col: &'a ColumnRef) -> Result<TypeSerializerImpl<'a>> {
+ fn create_serializer<'a>(&self, col: &'a ColumnRef) -> Result<TypeSerializerImpl<'a>> {
+ if col.is_const() {
let col: &ConstColumn = Series::check_get(col)?;
let inner = Box::new(self.create_serializer_inner(col.inner())?);
Ok(ConstSerializer {
@@ -136,10 +137,6 @@ where Self: Sized
size: col.len(),
}
.into())
- }
- fn create_serializer<'a>(&self, col: &'a ColumnRef) -> Result<TypeSerializerImpl<'a>> {
- if col.is_const() {
- self.create_serializer_const(col)
} else {
self.create_serializer_inner(col)
}
