Hi Vladimir,
Thank you for your answer. Emmm.....Actually, most of my methods are the same
as yours except for the following two points:
1、I didn't use ComputeTask. The data is sent to the server node through the
thin client.
2、I didn't use the standard POJO. Key-type is the following code and value-type
is an empty class. That means All columns are dynamically specified through
BinaryObjectBuilder.
public class PubPartionKeys_1_7 {
@AffinityKeyMapped
private String TBDATA_DX01;
private String TBDATA_DX02;
private String TBDATA_DX03;
private String TBDATA_DX04;
private String TBDATA_DX05;
private String TBDATA_DX06;
private String TBDATA_DX07;
public PubPartionKeys_1_7() {
}
// get/set method
// .....
}
I would be appreciate it very much if you attach your code back! :)
Huty,
2022/4/19
At 2022-04-19 12:40:20, [email protected] wrote:
Hi,
I have had the same experience without sql, using KV API only. My cluster
consists of several data nodes and self-written jar application that starts the
client node. When started, client node executes mapreduce tasks for data load
and processing.
The workaround is as follows:
1. create POJO on the client node;
2. convert it to the binary object;
3. on the data node, get binary object over the network and get its builder
(obj.toBuilder());
4. set some fields, build and put in the cache.
The builder on the step 3 seems to be the same as the one on the cluent node.
Hope that helps,
Vladimir
13:06, 18 апреля 2022 г., y <[email protected]>:
Hi ,
When using binary to insert data, I need to get an exist
BinaryObject/BinaryObjectBuilder from the database, similar to the code below.
442062c6$3$1803c222cba$Coremail$hty1994712$163.com
If I create a BinaryObjectBuilder directly, inserting binary data does not map
to table data. The following code will not throw error, but the data is not
mapped to sql. If there is no data in my table at first, how can I insert data?
3ecbd8f9$4$1803c222cba$Coremail$hty1994712$163.com
--
Отправлено из мобильного приложения Яндекс Почты