Package org.apache.sqoop.schema.type

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


        break;
      case TEXT:
        output = new Text().setSize(size);
        break;
      case TIME:
        output = new Time().setFraction(fraction);
        break;
      case UNSUPPORTED:
        output = new Unsupported().setJdbcType(jdbcType);
        break;
      default:
View Full Code Here


      case Types.DATE:
        return new Date();

      case Types.TIME:
        return new Time();

      case Types.TIMESTAMP:
        return new DateTime();

      case Types.CLOB:
View Full Code Here

    transferAndAssert(t);
  }

  @Test
  public void testTime() {
    Schema t = new Schema("t").addColumn(new Time("t", Boolean.FALSE));
    transferAndAssert(t);
  }
View Full Code Here

      .addColumn(new FixedPoint("h"))
      .addColumn(new FloatingPoint("i"))
      .addColumn(new Map("j", new Text(), new Text()))
      .addColumn(new Set("k", new Text()))
      .addColumn(new Text("l"))
      .addColumn(new Time("m"))
      .addColumn(new Unsupported("u"))
    ;
    transferAndAssert(allTypes);
  }
View Full Code Here

TOP

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

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.