Struct shardio::ShardReader[][src]

pub struct ShardReader<T, S = DefaultSort> where
    S: SortKey<T>, 
{ /* fields omitted */ }
Expand description

Read from a collection of shardio files. The input data is merged to give a single sorted view of the combined dataset. The input files must be created with the same sort order S as they are read with.

Implementations

Open a single shard files into reader

Open a set of shard files into an aggregated reader

Read data from the given range into data buffer. The data buffer is cleared before adding items.

Iterate over items in the given range

Iterate over all items

Total number of items

Generate num_chunks ranges covering the give range, each with a roughly equal numbers of elements. The ranges can be fed to iter_range

Estimate an upper bound on the total number of values held by a range

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.