Loading...

vastorbit.VastColumn.store_usage

VastColumn.store_usage() int

Returns the VastColumn expected store usage (unit: b).

Returns:

VastColumn expected store usage.

Return type:

int

Examples

Let’s begin by importing vastorbit.

import vastorbit as vo

Hint

By assigning an alias to vastorbit, we mitigate the risk of code collisions with other libraries. This precaution is necessary because vastorbit uses commonly known function names like “average” and “median”, which can potentially lead to naming conflicts. The use of an alias ensures that the functions from vastorbit are used as intended without interfering with functions from other libraries.

Let us create a dummy dataset and check its expected storage:

vdf = vo.VastFrame({"val": [0, 10, 20]})
123
val
Integer
10
210
320
Rows: 1-3 | Column: val | Type: integer

We can check the expected storage of the VastFrame using:

vdf["val"].store_usage()

See also

VastColumn.memory_usage() : VastColumn memory usage.
VastFrame.explain() : Information on how VAST is computing the current VastFrame relation.