diff options
author | Ankur Dave <ankurdave@gmail.com> | 2014-01-10 15:58:18 -0800 |
---|---|---|
committer | Ankur Dave <ankurdave@gmail.com> | 2014-01-10 15:58:18 -0800 |
commit | 1788729273261c8d9f6ec77b7fd15cab813338f8 (patch) | |
tree | 80795f2d4ee03e659ce98594054e323092ad1012 /graphx/src | |
parent | 57d7487d3da19df04de52235812fe7c8c24cc259 (diff) | |
download | spark-1788729273261c8d9f6ec77b7fd15cab813338f8.tar.gz spark-1788729273261c8d9f6ec77b7fd15cab813338f8.tar.bz2 spark-1788729273261c8d9f6ec77b7fd15cab813338f8.zip |
Move VertexIdToIndexMap into impl
Diffstat (limited to 'graphx/src')
-rw-r--r-- | graphx/src/main/scala/org/apache/spark/graphx/impl/package.scala | 7 | ||||
-rw-r--r-- | graphx/src/main/scala/org/apache/spark/graphx/package.scala | 9 |
2 files changed, 8 insertions, 8 deletions
diff --git a/graphx/src/main/scala/org/apache/spark/graphx/impl/package.scala b/graphx/src/main/scala/org/apache/spark/graphx/impl/package.scala new file mode 100644 index 0000000000..a6bbf63888 --- /dev/null +++ b/graphx/src/main/scala/org/apache/spark/graphx/impl/package.scala @@ -0,0 +1,7 @@ +package org.apache.spark.graphx + +import org.apache.spark.util.collection.OpenHashSet + +package object impl { + type VertexIdToIndexMap = OpenHashSet[VertexID] +} diff --git a/graphx/src/main/scala/org/apache/spark/graphx/package.scala b/graphx/src/main/scala/org/apache/spark/graphx/package.scala index 96f0d91c9b..e6877d3195 100644 --- a/graphx/src/main/scala/org/apache/spark/graphx/package.scala +++ b/graphx/src/main/scala/org/apache/spark/graphx/package.scala @@ -2,9 +2,7 @@ package org.apache.spark import org.apache.spark.util.collection.OpenHashSet - package object graphx { - type VertexID = Long // TODO: Consider using Char. @@ -12,11 +10,6 @@ package object graphx { type VertexSet = OpenHashSet[VertexID] - // type VertexIdToIndexMap = it.unimi.dsi.fastutil.longs.Long2IntOpenHashMap - type VertexIdToIndexMap = OpenHashSet[VertexID] - - /** - * Return the default null-like value for a data type T. - */ + /** * Returns the default null-like value for a data type T. */ def nullValue[T] = null.asInstanceOf[T] } |