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)Stringdump()voiddump(Writer output)URIgetBaseUri()longgetChunkSize()StringgetPrefix()PropertyGroupgetPropertyGroup(String property)URIgetPropertyGroupChunkUri(PropertyGroup propertyGroup, long chunkIndex)intgetPropertyGroupNum()List<PropertyGroup>getPropertyGroups()URIgetPropertyGroupUri(PropertyGroup propertyGroup)DataTypegetPropertyType(String propertyName)StringgetType()VersionInfogetVersion()URIgetVerticesNumFileUri()booleanhasProperty(String propertyName)booleanhasPropertyGroup(PropertyGroup propertyGroup)booleanisNullableKey(String propertyName)booleanisPrimaryKey(String propertyName)booleanisValidated()
-
-
-
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)
-
getPropertyGroupNum
public int getPropertyGroupNum()
-
hasProperty
public boolean hasProperty(String propertyName)
-
isPrimaryKey
public boolean isPrimaryKey(String propertyName)
-
isNullableKey
public boolean isNullableKey(String propertyName)
-
hasPropertyGroup
public boolean hasPropertyGroup(PropertyGroup propertyGroup)
-
getPropertyGroup
public PropertyGroup getPropertyGroup(String property)
-
getPropertyGroupUri
public URI getPropertyGroupUri(PropertyGroup propertyGroup)
-
getPropertyGroupChunkUri
public URI getPropertyGroupChunkUri(PropertyGroup propertyGroup, long chunkIndex)
-
getVerticesNumFileUri
public URI getVerticesNumFileUri()
-
dump
public void dump(Writer output)
-
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()
-
isValidated
public boolean isValidated()
-
-