This is an automated email from the ASF dual-hosted git repository.

weibin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-graphar.git


The following commit(s) were added to refs/heads/main by this push:
     new c658cfa5 feat(java-info): rename of yaml (#624)
c658cfa5 is described below

commit c658cfa5aef3e4996d91fbf566f63195fddbfacb
Author: John <[email protected]>
AuthorDate: Mon Sep 9 20:49:30 2024 +0800

    feat(java-info): rename of yaml (#624)
    
    * rename to type and adj_lists
    
    * rename XxxYamlParser to XxxYaml
    
    * format
---
 .../java/org/apache/graphar/info/AdjacentList.java |  4 +-
 .../java/org/apache/graphar/info/EdgeInfo.java     | 23 ++++---
 .../java/org/apache/graphar/info/GraphInfo.java    | 13 ++--
 .../java/org/apache/graphar/info/Property.java     |  4 +-
 .../org/apache/graphar/info/PropertyGroup.java     |  4 +-
 .../java/org/apache/graphar/info/VertexInfo.java   | 16 ++---
 ...ntListYamlParser.java => AdjacentListYaml.java} |  8 +--
 .../yaml/{EdgeYamlParser.java => EdgeYaml.java}    | 72 +++++++++++-----------
 .../yaml/{GraphYamlParser.java => GraphYaml.java}  |  6 +-
 ...GroupYamlParser.java => PropertyGroupYaml.java} | 14 ++---
 .../{PropertyYamlParser.java => PropertyYaml.java} |  6 +-
 .../{VertexYamlParser.java => VertexYaml.java}     | 28 ++++-----
 12 files changed, 97 insertions(+), 101 deletions(-)

diff --git 
a/maven-projects/info/src/main/java/org/apache/graphar/info/AdjacentList.java 
b/maven-projects/info/src/main/java/org/apache/graphar/info/AdjacentList.java
index 017452bf..091cc80c 100644
--- 
a/maven-projects/info/src/main/java/org/apache/graphar/info/AdjacentList.java
+++ 
b/maven-projects/info/src/main/java/org/apache/graphar/info/AdjacentList.java
@@ -21,7 +21,7 @@ package org.apache.graphar.info;
 
 import org.apache.graphar.info.type.AdjListType;
 import org.apache.graphar.info.type.FileType;
-import org.apache.graphar.info.yaml.AdjacentListYamlParser;
+import org.apache.graphar.info.yaml.AdjacentListYaml;
 
 public class AdjacentList {
     private final AdjListType type;
@@ -34,7 +34,7 @@ public class AdjacentList {
         this.prefix = prefix;
     }
 
-    AdjacentList(AdjacentListYamlParser yamlParser) {
+    AdjacentList(AdjacentListYaml yamlParser) {
         this.type =
                 AdjListType.fromOrderedAndAlignedBy(
                         yamlParser.isOrdered(), yamlParser.isAligned_by());
diff --git 
a/maven-projects/info/src/main/java/org/apache/graphar/info/EdgeInfo.java 
b/maven-projects/info/src/main/java/org/apache/graphar/info/EdgeInfo.java
index 1187b7d6..ff974c63 100644
--- a/maven-projects/info/src/main/java/org/apache/graphar/info/EdgeInfo.java
+++ b/maven-projects/info/src/main/java/org/apache/graphar/info/EdgeInfo.java
@@ -28,8 +28,8 @@ import java.util.stream.Collectors;
 import java.util.stream.Stream;
 import org.apache.graphar.info.type.AdjListType;
 import org.apache.graphar.info.type.DataType;
-import org.apache.graphar.info.yaml.EdgeYamlParser;
-import org.apache.graphar.info.yaml.GraphYamlParser;
+import org.apache.graphar.info.yaml.EdgeYaml;
+import org.apache.graphar.info.yaml.GraphYaml;
 import org.apache.graphar.util.GeneralParams;
 import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.fs.FSDataInputStream;
@@ -78,17 +78,17 @@ public class EdgeInfo {
         this.version = version;
     }
 
-    private EdgeInfo(EdgeYamlParser yamlParser) {
+    private EdgeInfo(EdgeYaml yamlParser) {
         this(
-                yamlParser.getSrc_label(),
-                yamlParser.getEdge_label(),
-                yamlParser.getDst_label(),
+                yamlParser.getSrc_type(),
+                yamlParser.getEdge_type(),
+                yamlParser.getDst_type(),
                 yamlParser.getChunk_size(),
                 yamlParser.getSrc_chunk_size(),
                 yamlParser.getDst_chunk_size(),
                 yamlParser.isDirected(),
                 yamlParser.getPrefix(),
-                yamlParser.getAdjacent_lists().stream()
+                yamlParser.getAdj_lists().stream()
                         .map(AdjacentList::new)
                         .collect(Collectors.toUnmodifiableList()),
                 yamlParser.getProperty_groups().stream()
@@ -134,9 +134,8 @@ public class EdgeInfo {
             throw new IllegalArgumentException("FileSystem is null");
         }
         FSDataInputStream inputStream = fileSystem.open(new 
Path(edgeInfoPath));
-        Yaml edgeInfoYamlLoader =
-                new Yaml(new Constructor(EdgeYamlParser.class, new 
LoaderOptions()));
-        EdgeYamlParser edgeInfoYaml = edgeInfoYamlLoader.load(inputStream);
+        Yaml edgeInfoYamlLoader = new Yaml(new Constructor(EdgeYaml.class, new 
LoaderOptions()));
+        EdgeYaml edgeInfoYaml = edgeInfoYamlLoader.load(inputStream);
         return new EdgeInfo(edgeInfoYaml);
     }
 
@@ -276,8 +275,8 @@ public class EdgeInfo {
     }
 
     public String dump() {
-        Yaml yaml = new Yaml(GraphYamlParser.getDumperOptions());
-        EdgeYamlParser edgeYaml = new EdgeYamlParser(this);
+        Yaml yaml = new Yaml(GraphYaml.getDumperOptions());
+        EdgeYaml edgeYaml = new EdgeYaml(this);
         return yaml.dump(edgeYaml);
     }
 
diff --git 
a/maven-projects/info/src/main/java/org/apache/graphar/info/GraphInfo.java 
b/maven-projects/info/src/main/java/org/apache/graphar/info/GraphInfo.java
index 977112ae..c8d00d61 100644
--- a/maven-projects/info/src/main/java/org/apache/graphar/info/GraphInfo.java
+++ b/maven-projects/info/src/main/java/org/apache/graphar/info/GraphInfo.java
@@ -27,7 +27,7 @@ import java.util.Optional;
 import java.util.function.Function;
 import java.util.stream.Collectors;
 import java.util.stream.Stream;
-import org.apache.graphar.info.yaml.GraphYamlParser;
+import org.apache.graphar.info.yaml.GraphYaml;
 import org.apache.graphar.util.GeneralParams;
 import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.fs.FSDataInputStream;
@@ -70,7 +70,7 @@ public class GraphInfo {
                                         EdgeInfo::getConcat, 
Function.identity()));
     }
 
-    private GraphInfo(GraphYamlParser graphYaml, Configuration conf) throws 
IOException {
+    private GraphInfo(GraphYaml graphYaml, Configuration conf) throws 
IOException {
         this(
                 graphYaml.getName(),
                 vertexFileNames2VertexInfos(graphYaml.getVertices(), conf),
@@ -114,9 +114,8 @@ public class GraphInfo {
         Path path = new Path(graphPath);
         FileSystem fileSystem = path.getFileSystem(conf);
         FSDataInputStream inputStream = fileSystem.open(path);
-        Yaml graphYamlLoader =
-                new Yaml(new Constructor(GraphYamlParser.class, new 
LoaderOptions()));
-        GraphYamlParser graphYaml = graphYamlLoader.load(inputStream);
+        Yaml graphYamlLoader = new Yaml(new Constructor(GraphYaml.class, new 
LoaderOptions()));
+        GraphYaml graphYaml = graphYamlLoader.load(inputStream);
         return new GraphInfo(graphYaml, conf);
     }
 
@@ -141,8 +140,8 @@ public class GraphInfo {
     }
 
     public String dump() {
-        Yaml yaml = new Yaml(GraphYamlParser.getDumperOptions());
-        GraphYamlParser graphYaml = new GraphYamlParser(this);
+        Yaml yaml = new Yaml(GraphYaml.getDumperOptions());
+        GraphYaml graphYaml = new GraphYaml(this);
         return yaml.dump(graphYaml);
     }
 
diff --git 
a/maven-projects/info/src/main/java/org/apache/graphar/info/Property.java 
b/maven-projects/info/src/main/java/org/apache/graphar/info/Property.java
index 01b35028..1221ebc1 100644
--- a/maven-projects/info/src/main/java/org/apache/graphar/info/Property.java
+++ b/maven-projects/info/src/main/java/org/apache/graphar/info/Property.java
@@ -20,7 +20,7 @@
 package org.apache.graphar.info;
 
 import org.apache.graphar.info.type.DataType;
-import org.apache.graphar.info.yaml.PropertyYamlParser;
+import org.apache.graphar.info.yaml.PropertyYaml;
 
 public class Property {
     private final String name;
@@ -35,7 +35,7 @@ public class Property {
         this.nullable = nullable;
     }
 
-    Property(PropertyYamlParser yamlParser) {
+    Property(PropertyYaml yamlParser) {
         this.name = yamlParser.getName();
         this.dataType = DataType.fromString(yamlParser.getData_type());
         this.primary = yamlParser.getIs_primary();
diff --git 
a/maven-projects/info/src/main/java/org/apache/graphar/info/PropertyGroup.java 
b/maven-projects/info/src/main/java/org/apache/graphar/info/PropertyGroup.java
index 800392ec..1d922c99 100644
--- 
a/maven-projects/info/src/main/java/org/apache/graphar/info/PropertyGroup.java
+++ 
b/maven-projects/info/src/main/java/org/apache/graphar/info/PropertyGroup.java
@@ -29,7 +29,7 @@ import java.util.stream.Collectors;
 import java.util.stream.Stream;
 import org.apache.graphar.info.type.DataType;
 import org.apache.graphar.info.type.FileType;
-import org.apache.graphar.info.yaml.PropertyGroupYamlParser;
+import org.apache.graphar.info.yaml.PropertyGroupYaml;
 import org.apache.graphar.util.GeneralParams;
 
 public class PropertyGroup implements Iterable<Property> {
@@ -49,7 +49,7 @@ public class PropertyGroup implements Iterable<Property> {
         this.prefix = prefix;
     }
 
-    PropertyGroup(PropertyGroupYamlParser yamlParser) {
+    PropertyGroup(PropertyGroupYaml yamlParser) {
         this(
                 yamlParser.getProperties().stream()
                         .map(Property::new)
diff --git 
a/maven-projects/info/src/main/java/org/apache/graphar/info/VertexInfo.java 
b/maven-projects/info/src/main/java/org/apache/graphar/info/VertexInfo.java
index 2ccadc6e..c03bab5d 100644
--- a/maven-projects/info/src/main/java/org/apache/graphar/info/VertexInfo.java
+++ b/maven-projects/info/src/main/java/org/apache/graphar/info/VertexInfo.java
@@ -24,8 +24,8 @@ import java.util.List;
 import java.util.Optional;
 import java.util.stream.Collectors;
 import org.apache.graphar.info.type.DataType;
-import org.apache.graphar.info.yaml.GraphYamlParser;
-import org.apache.graphar.info.yaml.VertexYamlParser;
+import org.apache.graphar.info.yaml.GraphYaml;
+import org.apache.graphar.info.yaml.VertexYaml;
 import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.fs.FSDataInputStream;
 import org.apache.hadoop.fs.FSDataOutputStream;
@@ -55,9 +55,9 @@ public class VertexInfo {
         this.version = version;
     }
 
-    private VertexInfo(VertexYamlParser parser) {
+    private VertexInfo(VertexYaml parser) {
         this(
-                parser.getLabel(),
+                parser.getType(),
                 parser.getChunk_size(),
                 parser.getProperty_groups().stream()
                         .map(PropertyGroup::new)
@@ -96,8 +96,8 @@ public class VertexInfo {
         }
         FSDataInputStream inputStream = fileSystem.open(new 
Path(vertexInfoPath));
         Yaml vertexInfoYamlLoader =
-                new Yaml(new Constructor(VertexYamlParser.class, new 
LoaderOptions()));
-        VertexYamlParser vertexInfoYaml = 
vertexInfoYamlLoader.load(inputStream);
+                new Yaml(new Constructor(VertexYaml.class, new 
LoaderOptions()));
+        VertexYaml vertexInfoYaml = vertexInfoYamlLoader.load(inputStream);
         return new VertexInfo(vertexInfoYaml);
     }
 
@@ -169,8 +169,8 @@ public class VertexInfo {
     }
 
     public String dump() {
-        Yaml yaml = new Yaml(GraphYamlParser.getDumperOptions());
-        VertexYamlParser vertexYaml = new VertexYamlParser(this);
+        Yaml yaml = new Yaml(GraphYaml.getDumperOptions());
+        VertexYaml vertexYaml = new VertexYaml(this);
         return yaml.dump(vertexYaml);
     }
 
diff --git 
a/maven-projects/info/src/main/java/org/apache/graphar/info/yaml/AdjacentListYamlParser.java
 
b/maven-projects/info/src/main/java/org/apache/graphar/info/yaml/AdjacentListYaml.java
similarity index 91%
rename from 
maven-projects/info/src/main/java/org/apache/graphar/info/yaml/AdjacentListYamlParser.java
rename to 
maven-projects/info/src/main/java/org/apache/graphar/info/yaml/AdjacentListYaml.java
index a971c03f..90d3a1cb 100644
--- 
a/maven-projects/info/src/main/java/org/apache/graphar/info/yaml/AdjacentListYamlParser.java
+++ 
b/maven-projects/info/src/main/java/org/apache/graphar/info/yaml/AdjacentListYaml.java
@@ -19,22 +19,20 @@
 
 package org.apache.graphar.info.yaml;
 
-import org.apache.graphar.info.AdjacentList;
-
-public class AdjacentListYamlParser {
+public class AdjacentListYaml {
     private boolean ordered;
     private String aligned_by;
     private String file_type;
     private String prefix;
 
-    public AdjacentListYamlParser() {
+    public AdjacentListYaml() {
         this.ordered = false;
         this.aligned_by = "";
         this.file_type = "";
         this.prefix = "";
     }
 
-    public AdjacentListYamlParser(AdjacentList adjacentList) {
+    public AdjacentListYaml(org.apache.graphar.info.AdjacentList adjacentList) 
{
         this.ordered = adjacentList.getType().isOrdered();
         this.aligned_by = adjacentList.getType().getAlignedBy();
         this.file_type = adjacentList.getFileType().toString();
diff --git 
a/maven-projects/info/src/main/java/org/apache/graphar/info/yaml/EdgeYamlParser.java
 b/maven-projects/info/src/main/java/org/apache/graphar/info/yaml/EdgeYaml.java
similarity index 66%
rename from 
maven-projects/info/src/main/java/org/apache/graphar/info/yaml/EdgeYamlParser.java
rename to 
maven-projects/info/src/main/java/org/apache/graphar/info/yaml/EdgeYaml.java
index 0d8813cf..e955306b 100644
--- 
a/maven-projects/info/src/main/java/org/apache/graphar/info/yaml/EdgeYamlParser.java
+++ 
b/maven-projects/info/src/main/java/org/apache/graphar/info/yaml/EdgeYaml.java
@@ -24,75 +24,75 @@ import java.util.List;
 import java.util.stream.Collectors;
 import org.apache.graphar.info.EdgeInfo;
 
-public class EdgeYamlParser {
-    private String src_label;
-    private String edge_label;
-    private String dst_label;
+public class EdgeYaml {
+    private String src_type;
+    private String edge_type;
+    private String dst_type;
     private long chunk_size;
     private long src_chunk_size;
     private long dst_chunk_size;
     private boolean directed;
     private String prefix;
-    private List<AdjacentListYamlParser> adjacent_lists;
-    private List<PropertyGroupYamlParser> property_groups;
+    private List<AdjacentListYaml> adj_lists;
+    private List<PropertyGroupYaml> property_groups;
     private String version;
 
-    public EdgeYamlParser() {
-        this.src_label = "";
-        this.edge_label = "";
-        this.dst_label = "";
+    public EdgeYaml() {
+        this.src_type = "";
+        this.edge_type = "";
+        this.dst_type = "";
         this.chunk_size = 0;
         this.src_chunk_size = 0;
         this.dst_chunk_size = 0;
         this.directed = false;
         this.prefix = "";
-        this.adjacent_lists = new ArrayList<>();
+        this.adj_lists = new ArrayList<>();
         this.property_groups = new ArrayList<>();
         this.version = "";
     }
 
-    public EdgeYamlParser(EdgeInfo edgeInfo) {
-        this.src_label = edgeInfo.getSrcLabel();
-        this.edge_label = edgeInfo.getEdgeLabel();
-        this.dst_label = edgeInfo.getDstLabel();
+    public EdgeYaml(EdgeInfo edgeInfo) {
+        this.src_type = edgeInfo.getSrcLabel();
+        this.edge_type = edgeInfo.getEdgeLabel();
+        this.dst_type = edgeInfo.getDstLabel();
         this.chunk_size = edgeInfo.getChunkSize();
         this.src_chunk_size = edgeInfo.getSrcChunkSize();
         this.dst_chunk_size = edgeInfo.getDstChunkSize();
         this.directed = edgeInfo.isDirected();
         this.prefix = edgeInfo.getPrefix();
-        this.adjacent_lists =
+        this.adj_lists =
                 edgeInfo.getAdjacentLists().values().stream()
-                        .map(AdjacentListYamlParser::new)
+                        .map(AdjacentListYaml::new)
                         .collect(Collectors.toList());
         this.property_groups =
                 edgeInfo.getPropertyGroups().stream()
-                        .map(PropertyGroupYamlParser::new)
+                        .map(PropertyGroupYaml::new)
                         .collect(Collectors.toList());
         this.version = edgeInfo.getVersion();
     }
 
-    public String getSrc_label() {
-        return src_label;
+    public String getSrc_type() {
+        return src_type;
     }
 
-    public void setSrc_label(String src_label) {
-        this.src_label = src_label;
+    public void setSrc_type(String src_type) {
+        this.src_type = src_type;
     }
 
-    public String getEdge_label() {
-        return edge_label;
+    public String getEdge_type() {
+        return edge_type;
     }
 
-    public void setEdge_label(String edge_label) {
-        this.edge_label = edge_label;
+    public void setEdge_type(String edge_type) {
+        this.edge_type = edge_type;
     }
 
-    public String getDst_label() {
-        return dst_label;
+    public String getDst_type() {
+        return dst_type;
     }
 
-    public void setDst_label(String dst_label) {
-        this.dst_label = dst_label;
+    public void setDst_type(String dst_type) {
+        this.dst_type = dst_type;
     }
 
     public boolean isDirected() {
@@ -135,19 +135,19 @@ public class EdgeYamlParser {
         this.prefix = prefix;
     }
 
-    public List<AdjacentListYamlParser> getAdjacent_lists() {
-        return adjacent_lists;
+    public List<AdjacentListYaml> getAdj_lists() {
+        return adj_lists;
     }
 
-    public void setAdjacent_lists(List<AdjacentListYamlParser> adjacent_lists) 
{
-        this.adjacent_lists = adjacent_lists;
+    public void setAdj_lists(List<AdjacentListYaml> adj_lists) {
+        this.adj_lists = adj_lists;
     }
 
-    public List<PropertyGroupYamlParser> getProperty_groups() {
+    public List<PropertyGroupYaml> getProperty_groups() {
         return property_groups;
     }
 
-    public void setProperty_groups(List<PropertyGroupYamlParser> 
property_groups) {
+    public void setProperty_groups(List<PropertyGroupYaml> property_groups) {
         this.property_groups = property_groups;
     }
 
diff --git 
a/maven-projects/info/src/main/java/org/apache/graphar/info/yaml/GraphYamlParser.java
 b/maven-projects/info/src/main/java/org/apache/graphar/info/yaml/GraphYaml.java
similarity index 96%
rename from 
maven-projects/info/src/main/java/org/apache/graphar/info/yaml/GraphYamlParser.java
rename to 
maven-projects/info/src/main/java/org/apache/graphar/info/yaml/GraphYaml.java
index 85fe6977..faec9bc4 100644
--- 
a/maven-projects/info/src/main/java/org/apache/graphar/info/yaml/GraphYamlParser.java
+++ 
b/maven-projects/info/src/main/java/org/apache/graphar/info/yaml/GraphYaml.java
@@ -25,7 +25,7 @@ import java.util.stream.Collectors;
 import org.apache.graphar.info.GraphInfo;
 import org.yaml.snakeyaml.DumperOptions;
 
-public class GraphYamlParser {
+public class GraphYaml {
     private String name;
     private String prefix;
     private List<String> vertices;
@@ -41,7 +41,7 @@ public class GraphYamlParser {
         dumperOption.setPrettyFlow(true);
     }
 
-    public GraphYamlParser() {
+    public GraphYaml() {
         this.name = "";
         this.prefix = "";
         this.vertices = new ArrayList<>();
@@ -49,7 +49,7 @@ public class GraphYamlParser {
         this.version = "";
     }
 
-    public GraphYamlParser(GraphInfo graphInfo) {
+    public GraphYaml(GraphInfo graphInfo) {
         this.name = graphInfo.getName();
         this.prefix = graphInfo.getPrefix();
         this.vertices =
diff --git 
a/maven-projects/info/src/main/java/org/apache/graphar/info/yaml/PropertyGroupYamlParser.java
 
b/maven-projects/info/src/main/java/org/apache/graphar/info/yaml/PropertyGroupYaml.java
similarity index 82%
rename from 
maven-projects/info/src/main/java/org/apache/graphar/info/yaml/PropertyGroupYamlParser.java
rename to 
maven-projects/info/src/main/java/org/apache/graphar/info/yaml/PropertyGroupYaml.java
index 43609df9..202d6ed0 100644
--- 
a/maven-projects/info/src/main/java/org/apache/graphar/info/yaml/PropertyGroupYamlParser.java
+++ 
b/maven-projects/info/src/main/java/org/apache/graphar/info/yaml/PropertyGroupYaml.java
@@ -24,31 +24,31 @@ import java.util.List;
 import java.util.stream.Collectors;
 import org.apache.graphar.info.PropertyGroup;
 
-public class PropertyGroupYamlParser {
-    private List<PropertyYamlParser> properties;
+public class PropertyGroupYaml {
+    private List<PropertyYaml> properties;
     private String file_type;
     private String prefix;
 
-    public PropertyGroupYamlParser() {
+    public PropertyGroupYaml() {
         this.properties = new ArrayList<>();
         this.file_type = "";
         this.prefix = "";
     }
 
-    public PropertyGroupYamlParser(PropertyGroup propertyGroup) {
+    public PropertyGroupYaml(PropertyGroup propertyGroup) {
         this.properties =
                 propertyGroup.getPropertyList().stream()
-                        .map(PropertyYamlParser::new)
+                        .map(PropertyYaml::new)
                         .collect(Collectors.toList());
         this.file_type = propertyGroup.getFileType().toString();
         this.prefix = propertyGroup.getPrefix();
     }
 
-    public List<PropertyYamlParser> getProperties() {
+    public List<PropertyYaml> getProperties() {
         return properties;
     }
 
-    public void setProperties(List<PropertyYamlParser> properties) {
+    public void setProperties(List<PropertyYaml> properties) {
         this.properties = properties;
     }
 
diff --git 
a/maven-projects/info/src/main/java/org/apache/graphar/info/yaml/PropertyYamlParser.java
 
b/maven-projects/info/src/main/java/org/apache/graphar/info/yaml/PropertyYaml.java
similarity index 94%
rename from 
maven-projects/info/src/main/java/org/apache/graphar/info/yaml/PropertyYamlParser.java
rename to 
maven-projects/info/src/main/java/org/apache/graphar/info/yaml/PropertyYaml.java
index c511ada1..bd06b577 100644
--- 
a/maven-projects/info/src/main/java/org/apache/graphar/info/yaml/PropertyYamlParser.java
+++ 
b/maven-projects/info/src/main/java/org/apache/graphar/info/yaml/PropertyYaml.java
@@ -22,20 +22,20 @@ package org.apache.graphar.info.yaml;
 import java.util.Optional;
 import org.apache.graphar.info.Property;
 
-public class PropertyYamlParser {
+public class PropertyYaml {
     private String name;
     private String data_type;
     private boolean is_primary;
     private Optional<Boolean> is_nullable;
 
-    public PropertyYamlParser() {
+    public PropertyYaml() {
         this.name = "";
         this.data_type = "";
         this.is_primary = false;
         this.is_nullable = Optional.empty();
     }
 
-    public PropertyYamlParser(Property property) {
+    public PropertyYaml(Property property) {
         this.name = property.getName();
         this.data_type = property.getDataType().toString();
         this.is_primary = property.isPrimary();
diff --git 
a/maven-projects/info/src/main/java/org/apache/graphar/info/yaml/VertexYamlParser.java
 
b/maven-projects/info/src/main/java/org/apache/graphar/info/yaml/VertexYaml.java
similarity index 77%
rename from 
maven-projects/info/src/main/java/org/apache/graphar/info/yaml/VertexYamlParser.java
rename to 
maven-projects/info/src/main/java/org/apache/graphar/info/yaml/VertexYaml.java
index 01c09849..a759724f 100644
--- 
a/maven-projects/info/src/main/java/org/apache/graphar/info/yaml/VertexYamlParser.java
+++ 
b/maven-projects/info/src/main/java/org/apache/graphar/info/yaml/VertexYaml.java
@@ -24,38 +24,38 @@ import java.util.List;
 import java.util.stream.Collectors;
 import org.apache.graphar.info.VertexInfo;
 
-public class VertexYamlParser {
-    private String label;
+public class VertexYaml {
+    private String type;
     private long chunk_size;
-    private List<PropertyGroupYamlParser> property_groups;
+    private List<PropertyGroupYaml> property_groups;
     private String prefix;
     private String version;
 
-    public VertexYamlParser() {
-        this.label = "";
+    public VertexYaml() {
+        this.type = "";
         this.chunk_size = 0;
         this.property_groups = new ArrayList<>();
         this.prefix = "";
         this.version = "";
     }
 
-    public VertexYamlParser(VertexInfo vertexInfo) {
-        this.label = vertexInfo.getLabel();
+    public VertexYaml(VertexInfo vertexInfo) {
+        this.type = vertexInfo.getLabel();
         this.chunk_size = vertexInfo.getChunkSize();
         this.property_groups =
                 vertexInfo.getPropertyGroups().stream()
-                        .map(PropertyGroupYamlParser::new)
+                        .map(PropertyGroupYaml::new)
                         .collect(Collectors.toList());
         this.prefix = vertexInfo.getPrefix();
         this.version = vertexInfo.getVersion();
     }
 
-    public String getLabel() {
-        return label;
+    public String getType() {
+        return type;
     }
 
-    public void setLabel(String label) {
-        this.label = label;
+    public void setType(String type) {
+        this.type = type;
     }
 
     public long getChunk_size() {
@@ -66,11 +66,11 @@ public class VertexYamlParser {
         this.chunk_size = chunk_size;
     }
 
-    public List<PropertyGroupYamlParser> getProperty_groups() {
+    public List<PropertyGroupYaml> getProperty_groups() {
         return property_groups;
     }
 
-    public void setProperty_groups(List<PropertyGroupYamlParser> 
property_groups) {
+    public void setProperty_groups(List<PropertyGroupYaml> property_groups) {
         this.property_groups = property_groups;
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to