Package org.apache.sqoop.schema.type

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


    switch (type) {
      case ARRAY:
        output = new Array(key);
        break;
      case BINARY:
        output = new Binary().setSize(size);
        break;
      case BIT:
        output = new Bit();
        break;
      case DATE:
View Full Code Here


      case Types.BINARY:
      case Types.VARBINARY:
      case Types.BLOB:
      case Types.LONGVARBINARY:
        return new Binary();

      default:
        return new Unsupported((long)sqlType);
    }
  }
View Full Code Here

    transferAndAssert(array);
  }

  @Test
  public void testBinary() {
    Schema binary = new Schema("b").addColumn(new Binary("A", 100L));
    transferAndAssert(binary);
  }
View Full Code Here

    transferAndAssert(m);
  }

  @Test
  public void testSet() {
    Schema s = new Schema("s").addColumn(new Set("b", new Binary()));
    transferAndAssert(s);
  }
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()))
View Full Code Here

TOP

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

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.