Hierarchy

  • ParquetUtils

Properties

Properties

parse: ((data, tableName) => Promise<DataTable>)

Type declaration

    • (data, tableName): Promise<DataTable>
    • A utility method to parse Parquet data into a DataTable object.

      This function returns a Promise that resolves to a DataTable object.

      Parameters

      • data: Uint8Array
      • tableName: string

      Returns Promise<DataTable>

      Example

       import { ParquetUtils } from '@tableau/taco-toolkit/handlers'

      export default class MyParser extends Parser<Uint8Array> {
      parse(data: Uint8Array, options: ParseOptions): DataContainer {
      const result = await ParquetUtils.parse(data, 'tablename')
      // result: a DataTable object
      }
      }

Generated using TypeDoc