This package demonstrates a series of abstract interfaces for tabular data structures in Julia. Its objective is to support modularity and extensibility in the development of data management facilities. In particular, we demonstrate support for querying facilities that are generic over the class of so-called column-indexable tabular data structures. The latter are in-memory Julia objects that satisfy the column-indexable interface. The querying interface itself is provided by (code-name) StructuredQueries and extended by the present package.
We take an interface that may be satisfied by a Julia data type
T to include:
- A collection of requisite methods that must be defined for
- A collection of provided methods that depend on the existence of the above requisite methods;
- (Possibly) the requirement that
Tbe defined as a subtype of some abstract type specific to the interface.
We say that an interface I includes an interface J if all of the requisite methods (and subtypings) for J are also requisite for I.
The present package defines three interfaces:
- A basic
- A column-indexable interface
- A query interface for column-indexable
AbstractTable interface for a tabular data type
T <: AbstractTable consists of minimalist funtionality concerning only the "schema" of tables of type
T <: AbstractTable; it neither requires nor exposes any methods that depend on specific storage layouts of the data contained in the table.
The column-indexable interface is designed to suit tabular data types
T <: AbstractTable for which entire columns can be retrieved as or set from in-memory iterable Julia vector-like objects (If you have suggestions as to how the foregoing chain of adjectives ought to be arranged, please file a PR).
Base.setindex!(tbl::T, col, field)
Query interface (column-indexable specific)
The query interface for column-indexable types
T <: AbstractTable leverages the ability to retrieve and set columns represented as in-memory Julia vectors in its extension of the