Class DocumentSequenceImmutableSequentialGraph

  • All Implemented Interfaces:
    FlyweightPrototype<it.unimi.dsi.big.webgraph.ImmutableGraph>

    public class DocumentSequenceImmutableSequentialGraph
    extends it.unimi.dsi.big.webgraph.ImmutableSequentialGraph
    Exposes a document sequence as a (sequentially accessible) immutable graph, according to some virtual field provided by the documents in the sequence. A suitable VirtualDocumentResolver is used to associate node numbers to each fragment.

    More precisely, the graph will have as many nodes as there are documents in the sequence, the k-th document (starting from 0) representing node number k. The successors of a document are obtained by extracting the virtual field from the document, turning each document specifier into a document number (using the given resolver, and discarding unresolved URLs).

    Note that the current implementation does not support more than Integer.MAX_VALUE successors per node.

    • Nested Class Summary

      • Nested classes/interfaces inherited from class it.unimi.dsi.big.webgraph.ImmutableGraph

        it.unimi.dsi.big.webgraph.ImmutableGraph.LoadMethod
    • Field Summary

      • Fields inherited from class it.unimi.dsi.big.webgraph.ImmutableGraph

        GRAPHCLASS_PROPERTY_KEY, PROPERTIES_EXTENSION
    • Method Summary

      Modifier and Type Method Description
      it.unimi.dsi.big.webgraph.ImmutableGraph copy()  
      it.unimi.dsi.big.webgraph.NodeIterator nodeIterator()  
      long numNodes()  
      boolean randomAccess()  
      • Methods inherited from class it.unimi.dsi.big.webgraph.ImmutableSequentialGraph

        outdegree, successorBigArray
      • Methods inherited from class it.unimi.dsi.big.webgraph.ImmutableGraph

        basename, equals, hashCode, intNumNodes, load, load, load, loadMapped, loadMapped, loadOffline, loadOffline, loadOnce, loadSequential, loadSequential, nodeIterator, numArcs, outdegrees, store, store, successors, toString, wrap, wrap