public class ShardBoundary
extends java.lang.Object
implements htsjdk.samtools.util.Locatable, java.io.Serializable
Shard
, both with and without paddingModifier and Type | Field and Description |
---|---|
protected SimpleInterval |
interval |
protected boolean |
padded |
protected SimpleInterval |
paddedSpan |
Modifier | Constructor and Description |
---|---|
|
ShardBoundary(SimpleInterval interval,
SimpleInterval paddedSpan)
Create a new ShardBoundary from the given intervals
|
protected |
ShardBoundary(SimpleInterval interval,
SimpleInterval paddedSpan,
boolean padded) |
Modifier and Type | Method and Description |
---|---|
<T> Shard<T> |
createShard(java.lang.Iterable<T> locatables) |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getContig() |
int |
getEnd() |
SimpleInterval |
getInterval() |
SimpleInterval |
getPaddedSpan() |
int |
getStart() |
int |
hashCode() |
ShardBoundary |
paddedShardBoundary() |
java.lang.String |
toString() |
protected final SimpleInterval interval
protected final SimpleInterval paddedSpan
protected final boolean padded
public ShardBoundary(SimpleInterval interval, SimpleInterval paddedSpan)
interval
- the interval covered by the shardpaddedSpan
- the interval covered by the shard's padding, must contain the shard intervalprotected ShardBoundary(SimpleInterval interval, SimpleInterval paddedSpan, boolean padded)
public java.lang.String getContig()
getContig
in interface htsjdk.samtools.util.Locatable
public int getStart()
getStart
in interface htsjdk.samtools.util.Locatable
public int getEnd()
getEnd
in interface htsjdk.samtools.util.Locatable
public SimpleInterval getInterval()
public SimpleInterval getPaddedSpan()
public ShardBoundary paddedShardBoundary()
public <T> Shard<T> createShard(java.lang.Iterable<T> locatables)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object