Package es.uam.eps.ir.relison.links.data
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 indexesprivate 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.
-
Field Details
-
indexes
The possible set of indexes -
queries
private final java.util.Map<EdgeOrientation,java.util.Map<java.lang.Integer,java.lang.String>> queriesThe possible sets of queries
-
-
Constructor Details
-
TerrierStructure
Constructor.- Parameters:
graph
- the graph.
-
-
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.
-