|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||
OrdinalMap.
connectionModel to this graph.
Building the graph may be much more efficient if each connection model is added to the graph with this method
prior to adding any connections.
This operation is not necessary, but may make building the graph more efficient.
OrdinalIterator returned for ordinals represented as bit sets in an NFCompressedGraph.OrdinalSet, returned for connections represented as a bit set in an NFCompressedGraph.
A bit set representation contains a single bit per ordinal in the type to which the connections point.NFPropertySpec.MULTIPLE property instantiated with this flag will be represented as a CompactOrdinalSet in an NFCompressedGraph.
OrdinalIterator returned for ordinals represented as variable-byte deltas in an NFCompressedGraph.OrdinalSet, returned for connections represented as variable-byte deltas in an NFCompressedGraph.
A variable-byte delta representation contains between one and five bytes per connection.NFCompressedGraph containing all connections which have been added to this NFBuildGraph.
true when the specified value is contained in this set.
true when the specified value is contained in this set.
true when all specified values are contained in this set.
OrdinalIterator.NO_MORE_ORDINALS
OrdinalSet.
OrdinalIterator over all connected ordinals, given the type and ordinal of the originating node, and the property by which this node is connected.
OrdinalIterator over all connected ordinals in a given connection model, given the type and ordinal of the originating node, and the property by which this node is connected.
OrdinalSet over all connected ordinals, given the type and ordinal of the originating node, and the property by which this node is connected.
OrdinalSet over all connected ordinals in a given connection model, given the type and ordinal of the originating node, and the property by which this node is connected.
NFBuildGraph.
NFPropertySpec.MULTIPLE property instantiated with this flag will be represented as a BitSetOrdinalSet in an NFCompressedGraph.
OrdinalIterator returned for ordinals represented as variable-byte hashed integer arrays in an NFCompressedGraph.OrdinalSet, returned for connections represented as variable-byte hashed integer arrays in an NFCompressedGraph.
A variable-byte hashed integer array representation contains between one and five bytes per connection.Iterator over the NFNodeSpecs contained in this graph specification.
OrdinalIterator returned for connections in an NFBuildGraph.OrdinalSet returned for connections in an NFBuildGraph.NFGraph.NFGraph represents a directed graph and is the base class for the two flavors of NetflixGraph
(NFBuildGraph and NFCompressedGraph).NFGraph API calls.NFGraphSpec defines the schema for a graph.NFNodeSpecs.
NFNodeSpec.
NFNodeSpec specifies the schema for a node type.NFNodeSpec.
NFPropertySpec is NFPropertySpec.GLOBAL, NFPropertySpec.MULTIPLE, and NFPropertySpec.COMPACT.nextOrdinal() after the iteration is completed.
OrdinalIterator is the interface used to iterate over a set of connections.
An OrdinalIterator may be obtained for a set of connections directly from an NFGraph or via an OrdinalSet
obtained from an NFGraph.OrdinalMap will generate and maintain a mapping between objects added and an integer value between
0 and n, where n is the number of objects in the map.
The values mapped to the objects will be the order in which the objects are inserted.
The OrdinalMap is memory-efficient and can retrieve an object given an ordinal, or an ordinal given an object, both in O(1) time.
If, for example, some application refers to graph nodes as Strings, the OrdinalMap can be used as follows:OrdinalSet is the interface used to represent a set of connections.
An OrdinalSet is obtained directly from an NFGraph.OrdinalIterator to the beginning of the set.
OrdinalIterator to the beginning of the set.
|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||