我想看看我是否可以在spark数据帧中拆分列.像这样,
Select employee, split(department,"_") from Employee
Run Code Online (Sandbox Code Playgroud) 我在Redis(Spring Data Redis)中有以下键,
localhost>Keys *
"1+ { \"_id":"1", \"Name\" : \"C5796\" , \"Site\" : \"DRG1\"}"
"2+ { \"_id":"2", \"Name\" : \"CX1XE\" , \"Site\" : \"DG1\"}"
"3+ { \"_id":"3", \"Name\" : \"C553\" , \"Site\" : \"DG1\"}"
Run Code Online (Sandbox Code Playgroud)
如果我想根据id/name/site进行排序,我该怎么办呢Spring Redis
?
List<Object> keys = redistemplate.sort(SortQueryBuilder.sort("Customer").build());
Run Code Online (Sandbox Code Playgroud)
和,
SortQuery<String> sort = SortQueryBuilder.sort(key).noSort().get(field).build();
List<?> keys = redistemplate.boundHashOps(key).getOperations().sort(sort);
Run Code Online (Sandbox Code Playgroud)
不工作.
我正在做Spring Redis
,我把钥匙作为
redistemplate.opsForHash().put("Customer", Customer.class, List<Customers>)
Run Code Online (Sandbox Code Playgroud)
我想从 搜索List<>
,
ScanOptions options = ScanOptions.scanOptions().match(pattern).count(1).build();
Cursor<Entry<Object, Object>> keys = redistemplate.opsForHash().scan("Customer", options);
Run Code Online (Sandbox Code Playgroud)
也不工作。请帮忙!!