Packages

o

org.apache.graphar.util

IndexGenerator

object IndexGenerator

IndexGenerator is an object to help generating the indices for vertex/edge DataFrames.

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

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  6. def constructVertexIndexMapping(vertexDf: DataFrame, primaryKey: String): DataFrame

    Generate a vertex index mapping from the primary key, the result DataFrame contains two columns: vertex index & primary key

    Generate a vertex index mapping from the primary key, the result DataFrame contains two columns: vertex index & primary key

    vertexDf

    input vertex DataFrame.

    primaryKey

    the primary key of vertex

    returns

    a DataFrame contains two columns: vertex index & primary key.

  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def generateDstIndexForEdges(edgeDf: DataFrame, dstColumnName: String): DataFrame

    Construct vertex index for destination column.

  10. def generateDstIndexForEdgesFromMapping(edgeDf: DataFrame, dstColumnName: String, dstIndexMapping: DataFrame): DataFrame

    Join the edge table with the vertex index mapping for destination column.

  11. def generateEdgeIndexColumn(edgeDf: DataFrame): DataFrame

    Add a column contains edge index to input edge DataFrame.

  12. def generateSrcAndDstIndexForEdgesFromMapping(edgeDf: DataFrame, srcIndexMapping: DataFrame, dstIndexMapping: DataFrame): DataFrame

    Assumes that the first and second columns are the src and dst columns

  13. def generateSrcAndDstIndexForEdgesFromMapping(edgeDf: DataFrame, srcColumnName: String, dstColumnName: String, srcIndexMapping: DataFrame, dstIndexMapping: DataFrame): DataFrame

    Join the edge table with the vertex index mapping for source & destination columns.

  14. def generateSrcAndDstIndexUnitedlyForEdges(edgeDf: DataFrame, srcColumnName: String, dstColumnName: String): DataFrame

    Union and construct vertex index for source & destination columns.

  15. def generateSrcIndexForEdges(edgeDf: DataFrame, srcColumnName: String): DataFrame

    Construct vertex index for source column.

  16. def generateSrcIndexForEdgesFromMapping(edgeDf: DataFrame, srcColumnName: String, srcIndexMapping: DataFrame): DataFrame

    Join the edge table with the vertex index mapping for source column.

  17. def generateVertexIndexColumn(vertexDf: DataFrame): DataFrame

    Add a column contains vertex index to DataFrame

    Add a column contains vertex index to DataFrame

    vertexDf

    the input vertex DataFrame.

    returns

    DataFrame that contains a new vertex index column.

  18. def generateVertexIndexColumnAndIndexMapping(vertexDf: DataFrame, primaryKey: String = ""): (DataFrame, DataFrame)
  19. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

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