|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.unimi.di.mg4j.query.nodes.Remap
public class Remap
A node representing an index remapping.
A remapping takes results of the underlying Query
for an internal index
(which must be one of the indices for which the query provides results) and exhibits them
as results of an external index.
The map provided at construction time under the form of two parallel arrays
should remap internal indices to external indices.
RemappingDocumentIterator
,
Serialized FormField Summary | |
---|---|
Object2ObjectLinkedOpenHashMap<String,String> |
indexInverseRemapping
The remapping from external to internal indices. |
Object2ObjectLinkedOpenHashMap<String,String> |
indexRemapping
The remapping from internal to external indices. |
Query |
query
The only underlying node. |
Constructor Summary | |
---|---|
Remap(Query query,
CharSequence[] internalIndex,
CharSequence[] externalIndex)
Creates a new index remapping query node given explicit lists external and internal indices. |
|
Remap(Query query,
Object2ObjectMap<String,String> indexRemapping)
Creates a new index remapping query node given an index remapping. |
Method Summary | ||
---|---|---|
|
accept(QueryBuilderVisitor<T> visitor)
Accepts a visitor. |
|
boolean |
equals(Object o)
|
|
int |
hashCode()
|
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final Query query
public final Object2ObjectLinkedOpenHashMap<String,String> indexRemapping
public final Object2ObjectLinkedOpenHashMap<String,String> indexInverseRemapping
Constructor Detail |
---|
public Remap(Query query, CharSequence[] internalIndex, CharSequence[] externalIndex)
query
- the underlying query.internalIndex
- the array of internal index names.externalIndex
- the array of external index names, parallel to internalIndex
.public Remap(Query query, Object2ObjectMap<String,String> indexRemapping)
query
- the underlying query.indexRemapping
- a map from internal to external indices, which will be copied internally.Method Detail |
---|
public String toString()
toString
in class Object
public <T> T accept(QueryBuilderVisitor<T> visitor) throws QueryBuilderVisitorException
Query
accept
in interface Query
visitor
- the visitor.
null
if the visit should stop.
QueryBuilderVisitorException
Query
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |