Package org.apache.sqoop.schema.type

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


        break;
      case FIXED_POINT:
        output = new FixedPoint().setByteSize(size).setUnsigned(unsigned);
        break;
      case FLOATING_POINT:
        output = new FloatingPoint().setByteSize(size);
        break;
      case MAP:
        output = new Map(key, value);
        break;
      case SET:
View Full Code Here


   * @return
   */
  public Schema getSchema(String name) {
    return new Schema(name)
      .addColumn(new FixedPoint("ICOL"))
      .addColumn(new FloatingPoint("DCOL"))
      .addColumn(new Text("VCOL"))
    ;
  }
View Full Code Here

      case Types.CLOB:
      case Types.FLOAT:
      case Types.REAL:
      case Types.DOUBLE:
        return new FloatingPoint();

      case Types.NUMERIC:
      case Types.DECIMAL:
      case Types.BIGINT:
        return new Decimal();
View Full Code Here

    transferAndAssert(f);
  }

  @Test
  public void testFloatingPoint() {
    Schema fp = new Schema("fp").addColumn(new FloatingPoint("k", 4L));
    transferAndAssert(fp);
  }
View Full Code Here

      .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()))
      .addColumn(new Set("k", new Text()))
      .addColumn(new Text("l"))
      .addColumn(new Time("m"))
      .addColumn(new Unsupported("u"))
View Full Code Here

TOP

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

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.