Hi, I like the new way!
—————————————————
Jialin Qiao
School of Software, Tsinghua University

乔嘉林
清华大学 软件学院


谭新宇 <[email protected]> 于2021年7月9日周五 上午8:57写道:

> Great Work JiaJun :)
> ———————
> Best,
> Xinyu Tan
>
> > 在 2021年7月8日,下午10:26,Xiangdong Huang <[email protected]> 写道:
> >
> > Ok. look forward.
> > (But do not remove stale APIs for compatibility).
> >
> > -----------------------------------
> > Xiangdong Huang
> > School of Software, Tsinghua University
> >
> > 黄向东
> > 清华大学 软件学院
> >
> > Xiangwei Wei <[email protected]> 于2021年7月8日周四 下午4:52写道:
> >>
> >> Hi Jiajun,
> >>
> >> Good job !
> >>
> >> Jiajun Liu <[email protected]> 于2021年7月8日周四 下午12:45写道:
> >>
> >>> Hi all,
> >>>
> >>> We have added new builder classes to construct Session and SessionPool
> in
> >>> Java Native API, providing a cleaner way to configure the various
> >>> parameters. Feel free to try it out and give your feedback!
> >>>
> >>> *Old way:*
> >>> Session(String host, int rpcPort)
> >>> Session(String host, String rpcPort, String username, String password)
> >>> Session(String host, int rpcPort, String username, String password)
> >>>
> >>> *New way:*
> >>>    session =
> >>>        new Session.Builder()
> >>>            .host(String host)
> >>>            .port(int port)
> >>>            .fetchSize(int fetchSize)
> >>>            .username(String username)
> >>>            .password(String password)
> >>>            .thriftDefaultBufferSize(int thriftDefaultBufferSize)
> >>>            .thriftMaxFrameSize(int thriftMaxFrameSize)
> >>>            .enableCacheLeader(boolean enableCacheLeader)
> >>>            .build();
> >>>
> >>> Docs:
> >>>
> >>>
> https://iotdb.apache.org/UserGuide/Master/API/Programming-Java-Native-API.html#native-apis
> >>> JIRA: https://issues.apache.org/jira/browse/IOTDB-1463
> >>>
> >>> <https://issues.apache.org/jira/browse/IOTDB-1463>
> >>> Regards,
> >>> Jiajun
> >>> School of Computing, National University of Singapore
> >>>
> >>
> >>
> >> --
> >> Best,
> >> Xiangwei Wei
> >
>
>

Reply via email to