Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

No Format
//todo VB

Table of Contents

Associated  JIRA ticket : SQOOP-1350 

...

Column is an abstraction to represent a field in a row. There are custom classes for sub type such as String, Number, Date, Map, Array. It has attributed that provide metadata about the column data such as is that field nullable, if that field is a String, what is its maxsize, if it is DateTime, does it support timezone, if it is a Map, what is the type of the key and what the is the type of the value, if it is Array, what is the type of the elements, if it is Enum, what are the supported options for the enum 

Code Block

/**
 * Base class for all the supported types in the Sqoop {@link #Schema}
 */
public abstract class Column {
  /**
   * Name of the column. It is optional
   */
  String name;
  /**
   * Whether the column value can be empty/null
   */
  Boolean nullable;
  /**
   * By default a column is nullable
   */

...