×

Automatic file structure and field data type detection

  • US 9,268,801 B2
  • Filed: 03/11/2013
  • Issued: 02/23/2016
  • Est. Priority Date: 03/11/2013
  • Status: Active Grant
First Claim
Patent Images

1. A computer-implemented method for determining data structure and field types of a data source that is to be processed by an application, the method being executed using one or more processors and comprising:

  • receiving the data source;

    providing base data associated with the data source;

    determining, by the one or more processors, a number of fields of the data source and, for each field, a field type based on the data source and the base data, wherein determining the number of fields of the data source comprises;

    selecting a field separator from a plurality of field separators;

    for each sample row in a set of sample rows, determining an estimated number of fields based on the field separator; and

    iterating over all separators in the plurality of field separators and determining that, for each field separator, the estimated number of fields for each sample row is unequal across two or more sample rows in the set of sample rows, and in response, setting the number of fields equal to one;

    generating, by the one or more processors, data structure data, the data structure data comprising the number of fields and field types; and

    providing, by the one or more processors, the data structure data to the application.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×