Interface Parser

All Superinterfaces:
Serializable
All Known Subinterfaces:
FormParser, TableParser

public interface Parser extends Serializable
A high-level abstraction over the idea of taking a WorkbookWithMetadata and returning some data.

A consumer of this library will generally create one or more objects of classes that implement this interface and register them with a TransformsExcelParser as part of their transform code. While making a custom implementation class is supported, the vast majority of consumers will use one of the built-in implementation classes provided with this library.

  • Method Details

    • parseWorkbook

      Collection<ParsedRecord> parseWorkbook(WorkbookWithMetadata workbook)
      Return a collection of parsed records. The returned collection can be empty.
    • columnNameToType

      default Map<String,org.apache.spark.sql.types.DataType> columnNameToType()