Package org.apache.sqoop.schema.type

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


        break;
      case MAP:
        output = new Map(key, value);
        break;
      case SET:
        output = new Set(key);
        break;
      case TEXT:
        output = new Text().setSize(size);
        break;
      case TIME:
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

      .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"))
    ;
    transferAndAssert(allTypes);
View Full Code Here

  }

  @Test
  public void testComplex() {
    Schema complex = new Schema("complex")
      .addColumn(new Map(new Array(new Enum(new Text())), new Set(new Array(new Text()))).setName("a"))
    ;
    transferAndAssert(complex);
  }
View Full Code Here

TOP

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

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.