ch.ninecode.cim.CIMVD.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of CIMReader Show documentation
Show all versions of CIMReader Show documentation
Expose CIM data files as Spark RDD
package ch.ninecode.cim
import org.apache.spark.graphx.VertexId
/**
* Smaller version of CIMVertexData for identifyNodes().
*
* @param node the minimum (hash code) of equivalent ConnectivityNode (a single topological node)
* @param node_label a user friendly label for the node
* @param voltage the nominal voltage of the node
* @param container the node container
*/
case class CIMVD (
node: VertexId = Long.MaxValue,
node_label: String = "",
voltage: String = null,
container: String = null)
{
override def toString: String = s"$node_label:$voltage@$container"
}