|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.nfgraph.OrdinalSet
com.netflix.nfgraph.compressed.BitSetOrdinalSet
public class BitSetOrdinalSet
An implementation of OrdinalSet, returned for connections represented as a bit set in an NFCompressedGraph.
contains()
is an O(1) operation.
This representation will automatically be chosen for a set by the NFCompressedGraphBuilder when it requires fewer bytes than
the configured representation (either NFPropertySpec.COMPACT or NFPropertySpec.HASH).
| Field Summary |
|---|
| Fields inherited from class com.netflix.nfgraph.OrdinalSet |
|---|
EMPTY_SET |
| Constructor Summary | |
|---|---|
BitSetOrdinalSet(com.netflix.nfgraph.util.ByteArrayReader reader)
|
|
| Method Summary | |
|---|---|
boolean |
contains(int value)
Returns true when the specified value is contained in this set. |
OrdinalIterator |
iterator()
|
int |
size()
|
| Methods inherited from class com.netflix.nfgraph.OrdinalSet |
|---|
asArray, containsAll |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BitSetOrdinalSet(com.netflix.nfgraph.util.ByteArrayReader reader)
| Method Detail |
|---|
public boolean contains(int value)
OrdinalSettrue when the specified value is contained in this set. Depending on the implementation,
this operation will have one of two performance characteristics:
O(1) for HashSetOrdinalSet and BitSetOrdinalSetO(n) for CompactOrdinalSet and NFBuildGraphOrdinalSet
contains in class OrdinalSetpublic OrdinalIterator iterator()
iterator in class OrdinalSetOrdinalIterator over this set.public int size()
size in class OrdinalSet
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||