org.apache.spark.storage
Class BlockId
Object
org.apache.spark.storage.BlockId
- Direct Known Subclasses:
- BroadcastBlockId, RDDBlockId, ShuffleBlockId, ShuffleDataBlockId, ShuffleIndexBlockId, StreamBlockId, TaskResultBlockId
public abstract class BlockId
- extends Object
:: DeveloperApi ::
Identifies a particular Block of data, usually associated with a single file.
A Block can be uniquely identified by its filename, but each type of Block has a different
set of keys which produce its unique name.
If your BlockId should be serializable, be sure to add it to the BlockId.apply() method.
Methods inherited from class Object |
getClass, notify, notifyAll, wait, wait, wait |
BlockId
public BlockId()
RDD
public static scala.util.matching.Regex RDD()
SHUFFLE
public static scala.util.matching.Regex SHUFFLE()
SHUFFLE_DATA
public static scala.util.matching.Regex SHUFFLE_DATA()
SHUFFLE_INDEX
public static scala.util.matching.Regex SHUFFLE_INDEX()
BROADCAST
public static scala.util.matching.Regex BROADCAST()
TASKRESULT
public static scala.util.matching.Regex TASKRESULT()
STREAM
public static scala.util.matching.Regex STREAM()
TEST
public static scala.util.matching.Regex TEST()
apply
public static BlockId apply(String id)
- Converts a BlockId "name" String back into a BlockId.
name
public abstract String name()
- A globally unique identifier for this Block. Can be used for ser/de.
asRDDId
public scala.Option<RDDBlockId> asRDDId()
isRDD
public boolean isRDD()
isShuffle
public boolean isShuffle()
isBroadcast
public boolean isBroadcast()
toString
public String toString()
- Overrides:
toString
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object other)
- Overrides:
equals
in class Object