/*! * Copyright (c) Microsoft. All rights reserved. * Licensed under the MIT license. See LICENSE file in the project. */ import type { TableMetadata } from '@datashaper/schema' import type ColumnTable from 'arquero/dist/types/table/column-table' export interface TableContainer { /** * This is the formal id for a table, and must be unique within the store. * A URI would normally be appropriate. */ id: string /** * This is the actual Arquero table instance to store. * If it has not been resolved yet it will be undefined. */ table?: ColumnTable /** * Optional metadata block for the table. * This can follow the container around to help avoid recomputes. */ metadata?: TableMetadata /** * Optional contextual data about the table. * For example, if the table was created using a process/transformation * that has additional information to relay, that context can be stored here. */ context?: T }