public final class ShardBoundaryShard<T> extends java.lang.Object implements Shard<T>, java.io.Serializable
Shard
backed by a ShardBoundary
and a collection of records.Constructor and Description |
---|
ShardBoundaryShard(ShardBoundary shardBoundary,
java.lang.Iterable<T> locatables)
Create a new
ShardBoundaryShard from the given ShardBoundary and records. |
Modifier and Type | Method and Description |
---|---|
SimpleInterval |
getInterval() |
SimpleInterval |
getPaddedInterval() |
ShardBoundary |
getShardBoundary() |
java.util.Iterator<T> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
divideIntervalIntoShards, divideIntervalIntoShards, getContig, getEnd, getStart
public ShardBoundaryShard(ShardBoundary shardBoundary, java.lang.Iterable<T> locatables)
ShardBoundaryShard
from the given ShardBoundary
and records.shardBoundary
- the boundary defining the shardlocatables
- the records overlapping the shardpublic SimpleInterval getInterval()
getInterval
in interface Shard<T>
public SimpleInterval getPaddedInterval()
getPaddedInterval
in interface Shard<T>
public java.util.Iterator<T> iterator()
iterator
in interface java.lang.Iterable<T>
public ShardBoundary getShardBoundary()