-
Notifications
You must be signed in to change notification settings - Fork 12
Labels
good first issueGood for newcomersGood for newcomers
Description
Search before asking
- I searched in the issues and found nothing similar.
Description
as title, finish todo for
impl<'a> InternalRow for GenericRow<'a> {
fn get_field_count(&self) -> usize {
self.values.len()
}
fn is_null_at(&self, _pos: usize) -> bool {
false
}
fn get_boolean(&self, _pos: usize) -> bool {
todo!()
}
fn get_byte(&self, _pos: usize) -> i8 {
todo!()
}
fn get_short(&self, _pos: usize) -> i16 {
todo!()
}
fn get_int(&self, pos: usize) -> i32 {
self.values.get(pos).unwrap().try_into().unwrap()
}
fn get_long(&self, _pos: usize) -> i64 {
self.values.get(_pos).unwrap().try_into().unwrap()
}
fn get_float(&self, _pos: usize) -> f32 {
todo!()
}
fn get_double(&self, _pos: usize) -> f64 {
todo!()
}
fn get_char(&self, _pos: usize, _length: usize) -> String {
todo!()
}
fn get_string(&self, pos: usize) -> &str {
self.values.get(pos).unwrap().try_into().unwrap()
}
fn get_binary(&self, _pos: usize, _length: usize) -> Vec<u8> {
todo!()
}
fn get_bytes(&self, _pos: usize) -> Vec<u8> {
todo!()
}
}
Willingness to contribute
- I'm willing to submit a PR!
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers