Package org.apache.sqoop.schema.type

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


        break;
      case BINARY:
        output = new Binary().setSize(size);
        break;
      case BIT:
        output = new Bit();
        break;
      case DATE:
        output = new Date();
        break;
      case DATE_TIME:
View Full Code Here


      case Types.BIGINT:
        return new Decimal();

      case Types.BIT:
      case Types.BOOLEAN:
        return new Bit();

      case Types.BINARY:
      case Types.VARBINARY:
      case Types.BLOB:
      case Types.LONGVARBINARY:
View Full Code Here

    transferAndAssert(binary);
  }

  @Test
  public void testBit() {
    Schema bit = new Schema("b").addColumn(new Bit("B"));
    transferAndAssert(bit);
  }
View Full Code Here

  @Test
  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"))
View Full Code Here

TOP

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

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.