DataFrameCompoundWriter class

Writer for DataFrame objects using compound datatype strategy

This class converts a DataFrame into an HDF5 dataset using a compound datatype, where each row is stored as a struct-like record with fields for each column. This is the default storage strategy for DataFrames with homogeneous or mixed datatypes.

The compound datatype approach:

  • Stores data row-by-row as compound records
  • Each column becomes a field in the compound type
  • Column names are stored as an attribute
  • Efficient for row-oriented access patterns
  • Compatible with pandas and h5py

Example usage:

final df = DataFrame([
  [1, 'Alice', 25.5],
  [2, 'Bob', 30.0],
], columns: ['id', 'name', 'age']);

final writer = DataFrameCompoundWriter();
final result = writer.createCompoundDataset(df);

Constructors

DataFrameCompoundWriter()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createCompoundDataset(DataFrame df) Map<String, dynamic>
Create compound dataset information from a DataFrame
getFieldInfo(DataFrame df) Map<String, dynamic>
Get field information for a DataFrame
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited