Packages

c

org.apache.graphar.graph

GraphWriter

class GraphWriter extends AnyRef

GraphWriter is a class to help to write graph data in graph format.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GraphWriter
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GraphWriter()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def PutEdgeData(relation: (String, String, String), df: DataFrame): Unit

    Put the edge dataframe into writer.

    Put the edge dataframe into writer.

    relation

    3-Tuple (source label, edge label, target label) to indicate edge type.

    df

    data frame of edge type.

  5. def PutVertexData(label: String, df: DataFrame, primaryKey: String = ""): Unit

    Put the vertex DataFrame into writer.

    Put the vertex DataFrame into writer.

    label

    label of vertex.

    df

    DataFrame of the vertex type.

    primaryKey

    primary key of the vertex type, default is empty, which take the first property column as primary key.

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  8. val edges: Map[(String, String, String), DataFrame]
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. val primaryKeys: Map[String, String]
  18. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. val vertexNums: Map[String, Long]
  21. val vertices: Map[String, DataFrame]
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. def write(path: String, spark: SparkSession, name: String = "graph", vertex_chunk_size: Long = ..., edge_chunk_size: Long = GeneralParams.defaultEdgeChunkSize, file_type: String = GeneralParams.defaultFileType, version: String = GeneralParams.defaultVersion): Unit

    Write graph data in GraphAr format.

    Write graph data in GraphAr format.

    path

    the directory to write.

    spark

    the spark session for the writing.

    name

    the name of graph, default is 'grpah'

    vertex_chunk_size

    the chunk size for vertices, default is 2^18

    edge_chunk_size

    the chunk size for edges, default is 2^22

    file_type

    the file type for data payload file, support [parquet, orc, csv], default is parquet.

    version

    version of GraphAr format, default is v1.

  26. def write(graphInfoPath: String, spark: SparkSession): Unit

    Write the graph data in GraphAr format with path of the graph info yaml.

    Write the graph data in GraphAr format with path of the graph info yaml.

    graphInfoPath

    the path of the graph info yaml.

    spark

    the spark session for the writing.

  27. def write(graphInfo: GraphInfo, spark: SparkSession): Unit

    Write the graph data in GraphAr format with graph info.

    Write the graph data in GraphAr format with graph info.

    graphInfo

    the graph info object for the graph.

    spark

    the spark session for the writing.

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped