Package cascading.lingual.tap.local

Examples of cascading.lingual.tap.local.SQLTypedTextDelimited


      + "from \"example\".\"sales_fact_1997\" as s\n"
      + "join \"example\".\"employee\" as e\n"
      + "on e.\"EMPID\" = s.\"CUST_ID\""
      + "\n order by e.\"EMPID\"";

    Tap empTap = new FileTap( new SQLTypedTextDelimited( ",", "\"" ),
      "src/main/resources/data/example/employee.tcsv", SinkMode.KEEP );
    Tap salesTap = new FileTap( new SQLTypedTextDelimited( ",", "\"" ),
      "src/main/resources/data/example/sales_fact_1997.tcsv", SinkMode.KEEP );

    Tap resultsTap = new FileTap( new SQLTypedTextDelimited( ",", "\"" ),
      "build/test/output/flow/results.tcsv", SinkMode.REPLACE );

    FlowDef flowDef = FlowDef.flowDef()
      .setName( "sql flow" )
      .addSource( "example.employee", empTap )
View Full Code Here


  @Override
  protected Scheme newScheme( Fields fields, String delimiter, String quote, boolean typed, boolean header, boolean strict, boolean safe )
    {
    if( typed )
      return new SQLTypedTextDelimited( fields, delimiter, quote, header, strict, safe );

    DelimitedParser delimitedParser = new DelimitedParser( delimiter, quote, null, strict, safe );
    return new TextDelimited( fields, header, delimitedParser );
    }
View Full Code Here

TOP

Related Classes of cascading.lingual.tap.local.SQLTypedTextDelimited

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.