Package org.pipecraft.pipes.utils
Class ShardSpecifier
- java.lang.Object
-
- org.pipecraft.pipes.utils.ShardSpecifier
-
public class ShardSpecifier extends Object
Specifies a shard index and a total number of shards. Usually used in distributed environments, where data shards are split among multiple workers. Immutable.- Author:
- Eyal Schneider
-
-
Field Summary
Fields Modifier and Type Field Description static ShardSpecifierALL
-
Constructor Summary
Constructors Constructor Description ShardSpecifier(int shardIndex, int shardCount)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)intgetShardCount()intgetShardIndex()inthashCode()StringtoString()
-
-
-
Field Detail
-
ALL
public static final ShardSpecifier ALL
-
-