-
Notifications
You must be signed in to change notification settings - Fork 515
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Rust] Create split in rust code (#448)
bump up prost copy from doris add c bindings add tests write interface in java interface 0.1.0 cargo clippy && cargo fmt use try_logger clean code change splitdesc def Signed-off-by: mag1c1an1 <[email protected]>
- Loading branch information
Showing
30 changed files
with
1,941 additions
and
308 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
lakesoul-common/src/main/java/com/dmetasoul/lakesoul/meta/jnr/SplitDesc.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
package com.dmetasoul.lakesoul.meta.jnr; | ||
|
||
import com.alibaba.fastjson.annotation.JSONField; | ||
import org.apache.commons.lang3.builder.ToStringBuilder; | ||
import org.apache.commons.lang3.builder.ToStringStyle; | ||
import org.apache.hadoop.util.hash.Hash; | ||
|
||
import java.util.HashMap; | ||
import java.util.List; | ||
|
||
public class SplitDesc { | ||
@JSONField(name = "file_paths") | ||
private List<String> filePaths; | ||
@JSONField(name = "primary_keys") | ||
private List<String> primaryKeys; | ||
@JSONField(name = "partition_desc") | ||
private HashMap<String, String> partitionDesc; | ||
@JSONField(name = "table_schema") | ||
private String tableSchema; | ||
|
||
public List<String> getFilePaths() { | ||
return filePaths; | ||
} | ||
|
||
public void setFilePaths(List<String> filePaths) { | ||
this.filePaths = filePaths; | ||
} | ||
|
||
public List<String> getPrimaryKeys() { | ||
return primaryKeys; | ||
} | ||
|
||
public void setPrimaryKeys(List<String> primaryKeys) { | ||
this.primaryKeys = primaryKeys; | ||
} | ||
|
||
public HashMap<String, String> getPartitionDesc() { | ||
return partitionDesc; | ||
} | ||
|
||
public void setPartitionDesc(HashMap<String, String> partitionDesc) { | ||
this.partitionDesc= partitionDesc; | ||
} | ||
|
||
public String getTableSchema() { | ||
return tableSchema; | ||
} | ||
|
||
public void setTableSchema(String tableSchema) { | ||
this.tableSchema = tableSchema; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) | ||
.append("file_paths", filePaths) | ||
.append("primary_keys", primaryKeys) | ||
.append("partition_desc", partitionDesc) | ||
.append("table_schema", tableSchema) | ||
.toString(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.