Package org.apache.sqoop.schema.type

Examples of org.apache.sqoop.schema.type.Date


        break;
      case BIT:
        output = new Bit();
        break;
      case DATE:
        output = new Date();
        break;
      case DATE_TIME:
        output = new DateTime().setFraction(fraction).setTimezone(timezone);
        break;
      case DECIMAL:
View Full Code Here


      case Types.NCHAR:
      case Types.LONGNVARCHAR:
        return new Text();

      case Types.DATE:
        return new Date();

      case Types.TIME:
        return new Time();

      case Types.TIMESTAMP:
View Full Code Here

    transferAndAssert(bit);
  }

  @Test
  public void testDate() {
    Schema date = new Schema("d").addColumn(new Date("d"));
    transferAndAssert(date);
  }
View Full Code Here

  public void testAllTypes() {
    Schema allTypes = new Schema("all-types")
      .addColumn(new Array("a", new Text()))
      .addColumn(new Binary("b"))
      .addColumn(new Bit("c"))
      .addColumn(new Date("d"))
      .addColumn(new DateTime("e"))
      .addColumn(new Decimal("f"))
      .addColumn(new Enum("g", new Text()))
      .addColumn(new FixedPoint("h"))
      .addColumn(new FloatingPoint("i"))
View Full Code Here

TOP

Related Classes of org.apache.sqoop.schema.type.Date

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.