Class TerrierStructure

java.lang.Object
es.uam.eps.ir.relison.links.data.TerrierStructure

public class TerrierStructure
extends java.lang.Object
Structure for storing the different possible indexes and queries for a Terrier index.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private java.util.Map<EdgeOrientation,​org.terrier.realtime.memory.MemoryIndex> indexes
    The possible set of indexes
    private java.util.Map<EdgeOrientation,​java.util.Map<java.lang.Integer,​java.lang.String>> queries
    The possible sets of queries
  • Constructor Summary

    Constructors 
    Constructor Description
    TerrierStructure​(FastGraph<?> graph)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    Tuple2oo<org.terrier.realtime.memory.MemoryIndex,​java.util.Map<java.lang.Integer,​java.lang.String>> get​(EdgeOrientation uSel, EdgeOrientation vSel)
    Obtains a pair index/queries given some orientations.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • indexes

      private final java.util.Map<EdgeOrientation,​org.terrier.realtime.memory.MemoryIndex> indexes
      The possible set of indexes
    • queries

      private final java.util.Map<EdgeOrientation,​java.util.Map<java.lang.Integer,​java.lang.String>> queries
      The possible sets of queries
  • Constructor Details

  • Method Details

    • get

      public Tuple2oo<org.terrier.realtime.memory.MemoryIndex,​java.util.Map<java.lang.Integer,​java.lang.String>> get​(EdgeOrientation uSel, EdgeOrientation vSel)
      Obtains a pair index/queries given some orientations.
      Parameters:
      uSel - the orientation for the queries.
      vSel - the orientation for the index.
      Returns:
      a pair containing both values.