diff options
Diffstat (limited to 'core/src/main/scala/spark/Split.scala')
-rw-r--r-- | core/src/main/scala/spark/Split.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/core/src/main/scala/spark/Split.scala b/core/src/main/scala/spark/Split.scala new file mode 100644 index 0000000000..116cd16370 --- /dev/null +++ b/core/src/main/scala/spark/Split.scala @@ -0,0 +1,13 @@ +package spark + +/** + * A partition of an RDD. + */ +@serializable trait Split { + /** + * Get a unique ID for this split which can be used, for example, to + * set up caches based on it. The ID should stay the same if we serialize + * and then deserialize the split. + */ + def getId(): String +} |