Home

Awesome

PooledElements

Build Status

This is an in-development package to provide pooled elements. The target use is for columns of DataFrames. The pooled elements provide a mapping to integers. This reduces storage and speeds up times for grouping and sorting. The main types provided are:

A global string pool is also provided, and many of the PooledString and PooledStringArray methods default to using this global pool.

Many of the features of pools and pooled elements are similar to categorical types from CategoricalData.jl. Pools and pooled elements contain an ID in the type to try to prevent objects from mixing with the wrong pool.

The PooledElement, PooledString, and PooledStringArray all support null values. A null is indicated when the reference to the Pool associated with the element or array is zero. Many of the Nullable methods from Base and NullableArrays are supported (like isnull and nullify!).