Package org.apache.graphar.info
Class VertexInfo
- java.lang.Object
-
- org.apache.graphar.info.VertexInfo
-
public class VertexInfo extends Object
-
-
Constructor Summary
Constructors Constructor Description VertexInfo(String type, long chunkSize, List<PropertyGroup> propertyGroups, String prefix, String version)
VertexInfo(String type, long chunkSize, List<PropertyGroup> propertyGroups, URI baseUri, String version)
VertexInfo(String type, long chunkSize, List<PropertyGroup> propertyGroups, URI baseUri, VersionInfo version)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<VertexInfo>
addPropertyGroupAsNew(PropertyGroup propertyGroup)
String
dump()
URI
getBaseUri()
long
getChunkSize()
String
getPrefix()
URI
getPropertyGroupChunkPath(PropertyGroup propertyGroup, long chunkIndex)
URI
getPropertyGroupPrefix(PropertyGroup propertyGroup)
List<PropertyGroup>
getPropertyGroups()
DataType
getPropertyType(String propertyName)
String
getType()
VersionInfo
getVersion()
URI
getVerticesNumFilePath()
boolean
hasProperty(String propertyName)
boolean
hasPropertyGroup(PropertyGroup propertyGroup)
boolean
isNullableKey(String propertyName)
boolean
isPrimaryKey(String propertyName)
int
propertyGroupNum()
-
-
-
Constructor Detail
-
VertexInfo
public VertexInfo(String type, long chunkSize, List<PropertyGroup> propertyGroups, String prefix, String version)
-
VertexInfo
public VertexInfo(String type, long chunkSize, List<PropertyGroup> propertyGroups, URI baseUri, String version)
-
VertexInfo
public VertexInfo(String type, long chunkSize, List<PropertyGroup> propertyGroups, URI baseUri, VersionInfo version)
-
-
Method Detail
-
addPropertyGroupAsNew
public Optional<VertexInfo> addPropertyGroupAsNew(PropertyGroup propertyGroup)
-
propertyGroupNum
public int propertyGroupNum()
-
hasProperty
public boolean hasProperty(String propertyName)
-
isPrimaryKey
public boolean isPrimaryKey(String propertyName)
-
isNullableKey
public boolean isNullableKey(String propertyName)
-
hasPropertyGroup
public boolean hasPropertyGroup(PropertyGroup propertyGroup)
-
getPropertyGroupPrefix
public URI getPropertyGroupPrefix(PropertyGroup propertyGroup)
-
getPropertyGroupChunkPath
public URI getPropertyGroupChunkPath(PropertyGroup propertyGroup, long chunkIndex)
-
getVerticesNumFilePath
public URI getVerticesNumFilePath()
-
dump
public String dump()
-
getType
public String getType()
-
getChunkSize
public long getChunkSize()
-
getPropertyGroups
public List<PropertyGroup> getPropertyGroups()
-
getPrefix
public String getPrefix()
-
getBaseUri
public URI getBaseUri()
-
getVersion
public VersionInfo getVersion()
-
-