Package org.apache.sqoop.schema.type

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


        break;
      case DATE:
        output = new Date();
        break;
      case DATE_TIME:
        output = new DateTime().setFraction(fraction).setTimezone(timezone);
        break;
      case DECIMAL:
        output = new Decimal().setPrecision(precision).setScale(scale);
        break;
      case ENUM:
View Full Code Here


      case Types.TIME:
        return new Time();

      case Types.TIMESTAMP:
        return new DateTime();

      case Types.CLOB:
      case Types.FLOAT:
      case Types.REAL:
      case Types.DOUBLE:
View Full Code Here

    transferAndAssert(date);
  }

  @Test
  public void testDateTime() {
    Schema dateTime = new Schema("dt").addColumn(new DateTime("dt", Boolean.FALSE, Boolean.TRUE));
    transferAndAssert(dateTime);
  }
View Full Code Here

    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"))
      .addColumn(new Map("j", new Text(), new Text()))
View Full Code Here

TOP

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

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.