Class XmlTestImportQuery

All Implemented Interfaces:
RemoteQuery<Inflatable<Table>>, Serializable

public class XmlTestImportQuery extends AbstractTestImportQuery
This is a local in-memory table instantiation from a schema document, tightly coupled to XML representation and the Schema Editor
See Also:
  • Constructor Details

    • XmlTestImportQuery

      public XmlTestImportQuery(org.jdom2.Element schemaElement, Map<String,Object> typeSpecificFields)
      Constructor.
      Parameters:
      schemaElement - The schema element for the import query whose preview table is being generated
      typeSpecificFields - The type specific fields map object that has all the extracted values from the current import query
  • Method Details

    • getNoDataError

      @NotNull protected String getNoDataError()
      Description copied from class: AbstractTestImportQuery
      Returns an implementation specific informative error message when no partitions were generated.
      Overrides:
      getNoDataError in class AbstractTestImportQuery
      Returns:
      error message that no data was found.
    • doImportAndGetWriterFactory

      @NotNull protected PreviewTableImportTableWriterFactory doImportAndGetWriterFactory(@NotNull com.fishlib.io.logger.Logger logger)
      Generates an in memory preview table or table stored at a temp location using the provided properties.
      Specified by:
      doImportAndGetWriterFactory in class AbstractTestImportQuery
      Parameters:
      logger - The (logger) of the current process
      Returns:
      The generated preview table instance