The MakeSchema object provides helper methods for making database schema. It attempts to infers the domain (data-type) for a column of data, e.g., from a csv file or database table. The domain for a column is inferred by examining the data elements in a sample from its vector (VectorS).
Attributes
See also
makeSchemaTest2 for an example of making a schema for a datafile.
Analyze the type of a given column as a VectorS by using regular expression matching. Types can be Double (D), Integer (I), Long (L), String (S), or TimeNum (T).
Analyze the type of a given column as a VectorS by using regular expression matching. Types can be Double (D), Integer (I), Long (L), String (S), or TimeNum (T).
Value parameters
c
the column/VectorS to have its type analyzed
samplePerc
the percentage of c used to analyze the type of column c