Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 721 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 721 Bytes

java-client

This is a simple java wrapper for scala-sdk

Maven

<dependency>
    <groupId>tech.mlsql.byzer-client-sdk</groupId>
    <artifactId>java-client</artifactId>
    <version>0.0.3</version>
</dependency>

Example

String genCode = Byzer.builder().
                load().format("csv").path("/tmp/jack").options().add("header", "true").end().end().
                filter().or().add(Expr.build("a=b")).add(And.build(Expr.build("c>2"), Expr.build("d>10"))).end().end().
                columns().addColumn(Expr.build("split('a',',')[0] as a2")).end().toScript();
System.out.println(genCode);