CLI to create and desc hoodie table
This commit is contained in:
committed by
vinoth chandar
parent
0fe92dee55
commit
fb95dbdedb
@@ -23,7 +23,9 @@ import com.uber.hoodie.exception.HoodieIOException;
|
||||
import java.io.IOException;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.Map;
|
||||
import java.util.Properties;
|
||||
import java.util.stream.Collectors;
|
||||
import org.apache.hadoop.fs.FSDataInputStream;
|
||||
import org.apache.hadoop.fs.FSDataOutputStream;
|
||||
import org.apache.hadoop.fs.FileSystem;
|
||||
@@ -172,4 +174,9 @@ public class HoodieTableConfig implements Serializable {
|
||||
public String getArchivelogFolder() {
|
||||
return props.getProperty(HOODIE_ARCHIVELOG_FOLDER_PROP_NAME, DEFAULT_ARCHIVELOG_FOLDER);
|
||||
}
|
||||
|
||||
public Map<String, String> getProps() {
|
||||
return props.entrySet().stream().collect(
|
||||
Collectors.toMap(e -> String.valueOf(e.getKey()), e -> String.valueOf(e.getValue())));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user