[][src]Trait pointcloud::labels::Summary

pub trait Summary {
    fn add(&mut self, v: &Value) -> Result<(), PointCloudError>;
fn combine(v: &[&ValueSummary]) -> Result<ValueSummary, PointCloudError>;
fn to_json(&self) -> String; }

The actual trait the columnar data sources has to implement

Required methods

fn add(&mut self, v: &Value) -> Result<(), PointCloudError>

Adding a single value to the summary. When implementing please check that your value is compatible with your summary

fn combine(v: &[&ValueSummary]) -> Result<ValueSummary, PointCloudError>

Merging several summaries of your data source together. This results in a summary of underlying column over the union of the indexes used to create the input summaries.

fn to_json(&self) -> String

Dumps this to a json value.

Loading content...

Implementors

Loading content...