Mercurial > hg > monetdb-java
annotate onclient.txt @ 927:d311affc65f0
Stop referring to monetdb.org/bugzilla, point straight to github.
author | Sjoerd Mullender <sjoerd@acm.org> |
---|---|
date | Mon, 07 Oct 2024 13:18:07 +0200 (10 months ago) |
parents | 19fba8e8ee17 |
children |
rev | line source |
---|---|
644
901a9873a351
Improve onclient documentation.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
639
diff
changeset
|
1 COPY ... ON CLIENT ... support in the MonetDB JDBC driver and JdbcClient program. |
536
daf6a3b828f9
Add onclient.txt and refer to it from release.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
2 |
644
901a9873a351
Improve onclient documentation.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
639
diff
changeset
|
3 MonetDB provides the non-standard COPY INTO statement to perform bulk inserts and |
738
19fba8e8ee17
Update JDBC documentation text.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
644
diff
changeset
|
4 retrievals, see also: |
19fba8e8ee17
Update JDBC documentation text.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
644
diff
changeset
|
5 https://www.monetdb.org/documentation/user-guide/sql-manual/data-loading/copy-from/ |
19fba8e8ee17
Update JDBC documentation text.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
644
diff
changeset
|
6 https://www.monetdb.org/documentation/user-guide/sql-manual/data-loading/export_data/ |
536
daf6a3b828f9
Add onclient.txt and refer to it from release.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
7 |
daf6a3b828f9
Add onclient.txt and refer to it from release.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
8 By default, COPY INTO accesses files on the server but it also has a mode to |
542
d462000fc410
Various changes suggested by Martin van Dinther
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
541
diff
changeset
|
9 access files on the client. This is supported by the command line tool |
d462000fc410
Various changes suggested by Martin van Dinther
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
541
diff
changeset
|
10 mclient(1) and now also as an extension to the MonetDB JDBC driver. |
536
daf6a3b828f9
Add onclient.txt and refer to it from release.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
11 |
daf6a3b828f9
Add onclient.txt and refer to it from release.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
12 This is how it works: The JDBC client automatically announces that it is capable |
daf6a3b828f9
Add onclient.txt and refer to it from release.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
13 of file transfers. If you execute, for example, |
daf6a3b828f9
Add onclient.txt and refer to it from release.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
14 |
daf6a3b828f9
Add onclient.txt and refer to it from release.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
15 COPY INTO mytable FROM 'data.csv' ON CLIENT; |
daf6a3b828f9
Add onclient.txt and refer to it from release.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
16 |
daf6a3b828f9
Add onclient.txt and refer to it from release.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
17 the server will send a request for file 'data.csv' to the JDBC driver. |
daf6a3b828f9
Add onclient.txt and refer to it from release.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
18 By default, the JDBC driver will refuse with an error message: |
564
c45bfdc2e2c4
Extend JdbcClient with registering default File Transfer upload and download handlers to support ON CLIENT functionality.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
561
diff
changeset
|
19 'No file upload handler has been registered with the JDBC driver' |
c45bfdc2e2c4
Extend JdbcClient with registering default File Transfer upload and download handlers to support ON CLIENT functionality.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
561
diff
changeset
|
20 |
c45bfdc2e2c4
Extend JdbcClient with registering default File Transfer upload and download handlers to support ON CLIENT functionality.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
561
diff
changeset
|
21 or in JdbcClient: |
738
19fba8e8ee17
Update JDBC documentation text.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
644
diff
changeset
|
22 'Error [42000] when opening data.csv: ON CLIENT: No file upload handler has been registered with the JDBC driver' |
536
daf6a3b828f9
Add onclient.txt and refer to it from release.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
23 |
daf6a3b828f9
Add onclient.txt and refer to it from release.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
24 This is for security reasons. However, you can register a callback to handle |
daf6a3b828f9
Add onclient.txt and refer to it from release.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
25 these requests from the server: |
daf6a3b828f9
Add onclient.txt and refer to it from release.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
26 |
daf6a3b828f9
Add onclient.txt and refer to it from release.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
27 Connection conn = DriverManager.getConnection(dbUrl, userName, password); |
daf6a3b828f9
Add onclient.txt and refer to it from release.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
28 MyUploader handler = new MyUploadHandler(); |
daf6a3b828f9
Add onclient.txt and refer to it from release.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
29 conn.unwrap(MonetConnection.class).setUploadHandler(handler); |
daf6a3b828f9
Add onclient.txt and refer to it from release.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
30 |
577
6ab9168ef8e1
Added startup argument --csvdir to JdbcClient program to allow explicit enabling and specification where csv data files are to be read from or written to when the COPY ... ON CLIENT command is executed.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
565
diff
changeset
|
31 or provide the JdbcClient startup argument: --csvdir "/path/to/csvfilesdir" |
6ab9168ef8e1
Added startup argument --csvdir to JdbcClient program to allow explicit enabling and specification where csv data files are to be read from or written to when the COPY ... ON CLIENT command is executed.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
565
diff
changeset
|
32 |
541
31df6a12fd41
Make the MonetUploadHandler and MonetDownloadHandler interfaces part of MonetConnection
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
536
diff
changeset
|
33 Here, MyUploadHandler is an implementation of the interface MonetConnection.UploadHandler, |
639
899f0c120256
Improve and extend information in .txt files.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
583
diff
changeset
|
34 which signature looks like this: |
536
daf6a3b828f9
Add onclient.txt and refer to it from release.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
35 |
560
2261b3d576ba
Some improvements to onclient.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
542
diff
changeset
|
36 public interface UploadHandler { |
2261b3d576ba
Some improvements to onclient.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
542
diff
changeset
|
37 /** |
2261b3d576ba
Some improvements to onclient.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
542
diff
changeset
|
38 * Called if the server sends a request to read file data. |
2261b3d576ba
Some improvements to onclient.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
542
diff
changeset
|
39 * |
2261b3d576ba
Some improvements to onclient.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
542
diff
changeset
|
40 * Use the given handle to receive data or send errors to the server. |
639
899f0c120256
Improve and extend information in .txt files.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
583
diff
changeset
|
41 * |
899f0c120256
Improve and extend information in .txt files.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
583
diff
changeset
|
42 * @param handle Handle to communicate with the server |
560
2261b3d576ba
Some improvements to onclient.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
542
diff
changeset
|
43 * @param name Name of the file the server would like to read. Make sure |
2261b3d576ba
Some improvements to onclient.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
542
diff
changeset
|
44 * to validate this before reading from the file system |
2261b3d576ba
Some improvements to onclient.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
542
diff
changeset
|
45 * @param textMode Whether to open the file as text or binary data. |
2261b3d576ba
Some improvements to onclient.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
542
diff
changeset
|
46 * @param linesToSkip In text mode, number of initial lines to skip. |
2261b3d576ba
Some improvements to onclient.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
542
diff
changeset
|
47 * 0 means upload everything, 1 means skip the first line, etc. |
2261b3d576ba
Some improvements to onclient.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
542
diff
changeset
|
48 * Note: this is different from the OFFSET option of the COPY INTO, |
2261b3d576ba
Some improvements to onclient.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
542
diff
changeset
|
49 * where both 0 and 1 mean 'upload everything' |
639
899f0c120256
Improve and extend information in .txt files.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
583
diff
changeset
|
50 * @throws IOException when I/O problem occurs |
560
2261b3d576ba
Some improvements to onclient.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
542
diff
changeset
|
51 */ |
2261b3d576ba
Some improvements to onclient.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
542
diff
changeset
|
52 void handleUpload(Upload handle, String name, boolean textMode, long linesToSkip) throws IOException; |
536
daf6a3b828f9
Add onclient.txt and refer to it from release.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
53 |
560
2261b3d576ba
Some improvements to onclient.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
542
diff
changeset
|
54 /** |
2261b3d576ba
Some improvements to onclient.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
542
diff
changeset
|
55 * Called when the upload is cancelled halfway by the server. |
2261b3d576ba
Some improvements to onclient.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
542
diff
changeset
|
56 * |
2261b3d576ba
Some improvements to onclient.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
542
diff
changeset
|
57 * The default implementation does nothing. |
2261b3d576ba
Some improvements to onclient.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
542
diff
changeset
|
58 */ |
2261b3d576ba
Some improvements to onclient.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
542
diff
changeset
|
59 default void uploadCancelled() {} |
2261b3d576ba
Some improvements to onclient.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
542
diff
changeset
|
60 } |
2261b3d576ba
Some improvements to onclient.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
542
diff
changeset
|
61 |
2261b3d576ba
Some improvements to onclient.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
542
diff
changeset
|
62 In your implementation of handleUpload(), you can use the 'handle' object to |
536
daf6a3b828f9
Add onclient.txt and refer to it from release.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
63 communicate with the server, for example: |
daf6a3b828f9
Add onclient.txt and refer to it from release.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
64 |
738
19fba8e8ee17
Update JDBC documentation text.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
644
diff
changeset
|
65 - PrintStream handle.getStream() to obtain a stream object to which you can write. |
536
daf6a3b828f9
Add onclient.txt and refer to it from release.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
66 This is useful if you want to generate the data on the fly. |
daf6a3b828f9
Add onclient.txt and refer to it from release.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
67 |
daf6a3b828f9
Add onclient.txt and refer to it from release.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
68 - void uploadFrom(InputStream stream) to have the JDBC driver read data from the |
daf6a3b828f9
Add onclient.txt and refer to it from release.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
69 stream and send it to the server as-is. For text mode uploads this means the |
daf6a3b828f9
Add onclient.txt and refer to it from release.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
70 text must be UTF-8 encoded. |
daf6a3b828f9
Add onclient.txt and refer to it from release.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
71 |
738
19fba8e8ee17
Update JDBC documentation text.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
644
diff
changeset
|
72 - void handle.uploadFrom(Reader reader) to have the JDBC driver read text from the given |
536
daf6a3b828f9
Add onclient.txt and refer to it from release.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
73 Reader and upload it. |
daf6a3b828f9
Add onclient.txt and refer to it from release.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
74 |
738
19fba8e8ee17
Update JDBC documentation text.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
644
diff
changeset
|
75 - void handle.uploadFrom(BufferedReader reader, long linesToSkip) to have the JDBC |
583
6973b4629e50
Update onclient.txt: use 'linesToSkip' rather than 'offset'
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
577
diff
changeset
|
76 driver read from the given BufferedReader and upload the text, skipping the first |
6973b4629e50
Update onclient.txt: use 'linesToSkip' rather than 'offset'
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
577
diff
changeset
|
77 'linesToSkip' lines. Typically you would use the value passed to handleUpload in |
6973b4629e50
Update onclient.txt: use 'linesToSkip' rather than 'offset'
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
577
diff
changeset
|
78 parameter 'linesToSkip'. |
536
daf6a3b828f9
Add onclient.txt and refer to it from release.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
79 |
738
19fba8e8ee17
Update JDBC documentation text.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
644
diff
changeset
|
80 - void handle.sendError(String errorMessage) to refuse the upload. |
536
daf6a3b828f9
Add onclient.txt and refer to it from release.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
81 |
738
19fba8e8ee17
Update JDBC documentation text.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
644
diff
changeset
|
82 See also: |
19fba8e8ee17
Update JDBC documentation text.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
644
diff
changeset
|
83 https://www.monetdb.org/hg/monetdb-java/file/tip/src/main/java/org/monetdb/jdbc/MonetConnection.java#l3546 |
639
899f0c120256
Improve and extend information in .txt files.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
583
diff
changeset
|
84 |
899f0c120256
Improve and extend information in .txt files.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
583
diff
changeset
|
85 If you use sendError() to refuse the upload, the COPY INTO statement will fail but |
899f0c120256
Improve and extend information in .txt files.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
583
diff
changeset
|
86 the connection will remain usable. On the other hand, if your implementation of |
644
901a9873a351
Improve onclient documentation.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
639
diff
changeset
|
87 handleUpload throws an IOException, the connection will be closed because there |
560
2261b3d576ba
Some improvements to onclient.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
542
diff
changeset
|
88 is currently no way to signal errors to the server once the transfer has begun. |
536
daf6a3b828f9
Add onclient.txt and refer to it from release.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
89 |
738
19fba8e8ee17
Update JDBC documentation text.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
644
diff
changeset
|
90 |
639
899f0c120256
Improve and extend information in .txt files.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
583
diff
changeset
|
91 The interface for DownloadHandler is: |
899f0c120256
Improve and extend information in .txt files.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
583
diff
changeset
|
92 |
899f0c120256
Improve and extend information in .txt files.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
583
diff
changeset
|
93 public interface DownloadHandler { |
899f0c120256
Improve and extend information in .txt files.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
583
diff
changeset
|
94 /** |
899f0c120256
Improve and extend information in .txt files.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
583
diff
changeset
|
95 * Called if the server sends a request to write a file. |
899f0c120256
Improve and extend information in .txt files.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
583
diff
changeset
|
96 * |
899f0c120256
Improve and extend information in .txt files.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
583
diff
changeset
|
97 * Use the given handle to send data or errors to the server. |
899f0c120256
Improve and extend information in .txt files.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
583
diff
changeset
|
98 * |
899f0c120256
Improve and extend information in .txt files.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
583
diff
changeset
|
99 * @param handle Handle to communicate with the server |
899f0c120256
Improve and extend information in .txt files.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
583
diff
changeset
|
100 * @param name Name of the file the server would like to write. Make sure |
899f0c120256
Improve and extend information in .txt files.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
583
diff
changeset
|
101 * to validate this before writing to the file system |
899f0c120256
Improve and extend information in .txt files.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
583
diff
changeset
|
102 * @param textMode Whether this is text or binary data. |
899f0c120256
Improve and extend information in .txt files.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
583
diff
changeset
|
103 * @throws IOException when I/O problem occurs |
899f0c120256
Improve and extend information in .txt files.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
583
diff
changeset
|
104 */ |
899f0c120256
Improve and extend information in .txt files.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
583
diff
changeset
|
105 void handleDownload(Download handle, String name, boolean textMode) throws IOException; |
899f0c120256
Improve and extend information in .txt files.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
583
diff
changeset
|
106 } |
536
daf6a3b828f9
Add onclient.txt and refer to it from release.txt
Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
parents:
diff
changeset
|
107 |
738
19fba8e8ee17
Update JDBC documentation text.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
644
diff
changeset
|
108 |
577
6ab9168ef8e1
Added startup argument --csvdir to JdbcClient program to allow explicit enabling and specification where csv data files are to be read from or written to when the COPY ... ON CLIENT command is executed.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
565
diff
changeset
|
109 Class org.monetdb.util.FileTransferHandler provides a default implementation |
6ab9168ef8e1
Added startup argument --csvdir to JdbcClient program to allow explicit enabling and specification where csv data files are to be read from or written to when the COPY ... ON CLIENT command is executed.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
565
diff
changeset
|
110 of both MonetConnection.UploadHandler and MonetConnection.DownloadHandler for |
639
899f0c120256
Improve and extend information in .txt files.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
583
diff
changeset
|
111 reading from and writing to local csv files. |
899f0c120256
Improve and extend information in .txt files.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
583
diff
changeset
|
112 You pass the FileTransferHandler constructor a directory name and a Charset to |
899f0c120256
Improve and extend information in .txt files.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
583
diff
changeset
|
113 specify the encoding used for the data in the csv files. |
899f0c120256
Improve and extend information in .txt files.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
583
diff
changeset
|
114 FileTransferHandler class is intended for situations where you do not need to |
899f0c120256
Improve and extend information in .txt files.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
583
diff
changeset
|
115 generate or transform data while uploading or downloading to a file. |
738
19fba8e8ee17
Update JDBC documentation text.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
644
diff
changeset
|
116 See also: |
19fba8e8ee17
Update JDBC documentation text.
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
644
diff
changeset
|
117 https://www.monetdb.org/hg/monetdb-java/file/tip/src/main/java/org/monetdb/util/FileTransferHandler.java#l29 |
565
228a529b4059
typos
Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
parents:
564
diff
changeset
|
118 |