@@ -364,29 +364,6 @@ static CompletableFuture<ClickHouseResponseSummary> dump(ClickHouseNode server,
364
364
return dump (server , tableOrQuery , ClickHouseFile .of (file , compression , format ));
365
365
}
366
366
367
- /**
368
- * Dumps a table or query result from server into a file. File will be
369
- * created/overwrited as needed.
370
- *
371
- * @param server non-null server to connect to
372
- * @param tableOrQuery table name or a select query
373
- * @param format output format to use
374
- * @param compression compression algorithm to use
375
- * @param file output file
376
- * @return non-null future object to get result
377
- * @throws IllegalArgumentException if any of server, tableOrQuery, and output
378
- * is null
379
- * @throws CompletionException when error occurred during execution
380
- * @deprecated will be dropped in 0.5, please use
381
- * {@link #dump(ClickHouseNode, String, String, ClickHouseCompression, ClickHouseFormat)}
382
- * instead
383
- */
384
- @ Deprecated
385
- static CompletableFuture <ClickHouseResponseSummary > dump (ClickHouseNode server , String tableOrQuery ,
386
- ClickHouseFormat format , ClickHouseCompression compression , String file ) {
387
- return dump (server , tableOrQuery , file , compression , format );
388
- }
389
-
390
367
/**
391
368
* Dumps a table or query result from server into output stream.
392
369
*
@@ -438,31 +415,6 @@ static CompletableFuture<ClickHouseResponseSummary> dump(ClickHouseNode server,
438
415
});
439
416
}
440
417
441
- /**
442
- * Dumps a table or query result from server into output stream.
443
- *
444
- * @param server non-null server to connect to
445
- * @param tableOrQuery table name or a select query
446
- * @param format output format to use, null means
447
- * {@link ClickHouseFormat#TabSeparated}
448
- * @param compression compression algorithm to use, null means
449
- * {@link ClickHouseCompression#NONE}
450
- * @param output output stream, which will be closed automatically at the
451
- * end of the call
452
- * @return future object to get result
453
- * @throws IllegalArgumentException if any of server, tableOrQuery, and output
454
- * is null
455
- * @throws CompletionException when error occurred during execution
456
- * @deprecated will be dropped in 0.5, please use
457
- * {@link #dump(ClickHouseNode, String, OutputStream, ClickHouseCompression, ClickHouseFormat)}
458
- * instead
459
- */
460
- @ Deprecated
461
- static CompletableFuture <ClickHouseResponseSummary > dump (ClickHouseNode server , String tableOrQuery ,
462
- ClickHouseFormat format , ClickHouseCompression compression , OutputStream output ) {
463
- return dump (server , tableOrQuery , output , compression , format );
464
- }
465
-
466
418
/**
467
419
* Loads data from the given pass-thru stream into a table. Pass
468
420
* {@link com.clickhouse.data.ClickHouseFile} to load data from a file, which
@@ -543,50 +495,6 @@ static CompletableFuture<ClickHouseResponseSummary> load(ClickHouseNode server,
543
495
return load (server , table , ClickHouseFile .of (file , compression , format ));
544
496
}
545
497
546
- /**
547
- * Loads data from a file into table using specified format and compression
548
- * algorithm.
549
- *
550
- * @param server non-null server to connect to
551
- * @param table non-null target table
552
- * @param format input format to use
553
- * @param compression compression algorithm to use
554
- * @param file file to load
555
- * @return future object to get result
556
- * @throws IllegalArgumentException if any of server, table, and input is null
557
- * @throws CompletionException when error occurred during execution
558
- * @deprecated will be dropped in 0.5, please use
559
- * {@link #load(ClickHouseNode, String, String, ClickHouseCompression, ClickHouseFormat)}
560
- * instead
561
- */
562
- @ Deprecated
563
- static CompletableFuture <ClickHouseResponseSummary > load (ClickHouseNode server , String table ,
564
- ClickHouseFormat format , ClickHouseCompression compression , String file ) {
565
- return load (server , table , file , compression , format );
566
- }
567
-
568
- /**
569
- * Loads data from a custom writer into a table using specified format and
570
- * compression algorithm.
571
- *
572
- * @param server non-null server to connect to
573
- * @param table non-null target table
574
- * @param writer non-null custom writer to generate data
575
- * @param compression compression algorithm to use
576
- * @param format input format to use
577
- * @return future object to get result
578
- * @throws IllegalArgumentException if any of server, table, and writer is null
579
- * @throws CompletionException when error occurred during execution
580
- * @deprecated will be dropped in 0.5, please use
581
- * {@link #load(ClickHouseNode, String, ClickHouseWriter, ClickHouseCompression, ClickHouseFormat)}
582
- * instead
583
- */
584
- @ Deprecated
585
- static CompletableFuture <ClickHouseResponseSummary > load (ClickHouseNode server , String table ,
586
- ClickHouseFormat format , ClickHouseCompression compression , ClickHouseWriter writer ) {
587
- return load (server , table , writer , compression , format );
588
- }
589
-
590
498
/**
591
499
* Loads data from input stream into a table using specified format and
592
500
* compression algorithm.
@@ -625,29 +533,6 @@ static CompletableFuture<ClickHouseResponseSummary> load(ClickHouseNode server,
625
533
});
626
534
}
627
535
628
- /**
629
- * Loads data from input stream into a table using specified format and
630
- * compression algorithm.
631
- *
632
- * @param server non-null server to connect to
633
- * @param table non-null target table
634
- * @param format input format to use
635
- * @param compression compression algorithm to use
636
- * @param input input stream, which will be closed automatically at the
637
- * end of the call
638
- * @return future object to get result
639
- * @throws IllegalArgumentException if any of server, table, and input is null
640
- * @throws CompletionException when error occurred during execution
641
- * @deprecated will be dropped in 0.5, please use
642
- * {@link #load(ClickHouseNode, String, InputStream, ClickHouseCompression, ClickHouseFormat)}
643
- * instead
644
- */
645
- @ Deprecated
646
- static CompletableFuture <ClickHouseResponseSummary > load (ClickHouseNode server , String table ,
647
- ClickHouseFormat format , ClickHouseCompression compression , InputStream input ) {
648
- return load (server , table , input , compression , format );
649
- }
650
-
651
536
/**
652
537
* Creates a new instance compatible with any of the given protocols.
653
538
*
@@ -906,70 +791,6 @@ default boolean accept(ClickHouseProtocol protocol) {
906
791
return protocol == null || protocol == ClickHouseProtocol .ANY ;
907
792
}
908
793
909
- /**
910
- * Connects to one or more ClickHouse servers. Same as
911
- * {@code connect(ClickHouseNodes.of(uri))}.
912
- *
913
- * @param endpoints non-empty URIs separated by comma
914
- * @return non-null request object holding references to this client and node
915
- * provider
916
- * @deprecated will be dropped in 0.5, please use {@link #read(String)} instead
917
- */
918
- @ Deprecated
919
- default ClickHouseRequest <?> connect (String endpoints ) {
920
- return read (endpoints );
921
- }
922
-
923
- /**
924
- * Connects to a list of managed ClickHouse servers.
925
- *
926
- * @param nodes non-null list of servers to connect to
927
- * @return non-null request object holding references to this client and node
928
- * provider
929
- * @deprecated will be dropped in 0.5, please use {@link #read(ClickHouseNodes)}
930
- * instead
931
- */
932
- @ Deprecated
933
- default ClickHouseRequest <?> connect (ClickHouseNodes nodes ) {
934
- return read (nodes );
935
- }
936
-
937
- /**
938
- * Connects to a ClickHouse server.
939
- *
940
- * @param node non-null server for read
941
- * @return non-null request object holding references to this client and node
942
- * provider
943
- * @deprecated will be dropped in 0.5, please use {@link #read(ClickHouseNode)}
944
- * instead
945
- */
946
- @ Deprecated
947
- default ClickHouseRequest <?> connect (ClickHouseNode node ) {
948
- return read (node );
949
- }
950
-
951
- /**
952
- * Connects to a ClickHouse server defined by the given
953
- * {@link java.util.function.Function}. You can pass either
954
- * {@link ClickHouseCluster}, {@link ClickHouseNodes} or {@link ClickHouseNode}
955
- * here, as all of them implemented the same interface.
956
- *
957
- * <p>
958
- * Please be aware that this is nothing but an intention, so no network
959
- * communication happens until {@link #execute(ClickHouseRequest)} is
960
- * invoked(usually triggered by {@code request.execute()}).
961
- *
962
- * @param nodeFunc function to get a {@link ClickHouseNode} to connect to
963
- * @return non-null request object holding references to this client and node
964
- * provider
965
- * @deprecated will be dropped in 0.5, please use {@link #read(Function, Map)}
966
- * instead
967
- */
968
- @ Deprecated
969
- default ClickHouseRequest <?> connect (Function <ClickHouseNodeSelector , ClickHouseNode > nodeFunc ) {
970
- return read (nodeFunc , null );
971
- }
972
-
973
794
/**
974
795
* Connects to one or more ClickHouse servers to read. Same as
975
796
* {@code read(ClickHouseNodes.of(uri))}.
0 commit comments