pub struct ParLasZipCompressor<W> { /* private fields */ }
Expand description

LasZip compressor that compresses using multiple threads

This supports both variable-size and fixed-size chunks. The method you need to call in order to compress data depends on which type of sized chunks you want to write.

Its the LazVlr that controls which type of chunks you want to write.

You must call done when you have compressed all the points you wanted.

Fixed-Size

Use compress_many

This works by forming complete chunks of points with the points data passed when compress_many is called. These complete chunks are compressed & written right away and points that are ‘leftovers’ are kept until the next call to compress_many or done.

Variable-Size

Use compress_chunks

Implementations§

Creates a new ParLasZipCompressor

Reserves and prepares the offset to chunk table that will be updated when done is called.

This method will automatically be called on the first point(s) being compressed, but for some scenarios, manually calling this might be useful.

Compresses many points using multiple threads.

Important

This must be called only when writing fixed-size chunks. This will panic otherwise.

Note

For this function to actually use multiple threads, the points buffer shall hold more points that the vlr’s chunk_size.

Compresses multiple chunks using multiple threads.

Important

This must be called only when writing variable-size chunks. This will panic otherwise.

Note

For this function to actually use multiple threads, their should be more that one chunk. buffer shall hold more points that the vlr’s chunk_size.

Tells the compressor that no more points will be compressed

  • Compresses & writes the rest of the points to form the last chunk
  • Writes the chunk table
  • update the offset to the chunk_table

Trait Implementations§

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
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.