@InterfaceAudience.Private public abstract class ByteRangeSet extends Object
Current implementations are ByteRangeHashSet
and
ByteRangeTreeSet
, but other options might be a
trie-oriented ByteRangeTrieSet, etc
Modifier and Type | Field and Description |
---|---|
protected byte[] |
byteAppender
fields
|
protected int |
numBytes |
protected int |
numInputs |
protected int |
numUniqueRanges |
protected int[] |
sortedIndexByInsertionId |
protected List<Integer> |
sortedIndexByUniqueIndex |
protected ArrayList<ByteRange> |
sortedRanges |
protected Map<ByteRange,Integer> |
uniqueIndexByUniqueRange |
protected int[] |
uniqueRangeIndexByInsertionId |
protected ArrayList<ByteRange> |
uniqueRanges |
Modifier | Constructor and Description |
---|---|
protected |
ByteRangeSet()
construct
|
Modifier and Type | Method and Description |
---|---|
void |
add(ByteRange bytes)
Check if the incoming byte range exists.
|
abstract void |
addToSortedRanges()
abstract
|
ByteRangeSet |
compile() |
long |
getAvgSize() |
int |
getSortedIndexForInsertionId(int insertionId) |
ArrayList<ByteRange> |
getSortedRanges()
get/set
|
void |
reset() |
int |
size() |
protected int |
store(ByteRange bytes) |
String |
toString()
standard methods
|
protected byte[] byteAppender
protected int numBytes
protected int numUniqueRanges
protected int[] uniqueRangeIndexByInsertionId
protected int numInputs
protected int[] sortedIndexByInsertionId
public void reset()
public abstract void addToSortedRanges()
public void add(ByteRange bytes)
protected int store(ByteRange bytes)
public ByteRangeSet compile()
public int getSortedIndexForInsertionId(int insertionId)
public int size()
public long getAvgSize()
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.