Class TupleFinderMapper<ID,IC,OD,OC>

java.lang.Object
org.aksw.jenax.arq.util.tuple.TupleFinderMapper<ID,IC,OD,OC>
All Implemented Interfaces:
org.aksw.commons.tuple.finder.TupleFinder<ID,IC>

public class TupleFinderMapper<ID,IC,OD,OC> extends Object implements org.aksw.commons.tuple.finder.TupleFinder<ID,IC>
An TupleFinder that delegates to another one by means of converting all tuples back and forth. For example, can provide a Quad view over a backing Tuple<NodeId>.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.aksw.commons.tuple.finder.TupleFinder<OD,OC>
     
    protected com.google.common.base.Converter<IC,OC>
     
    protected org.aksw.commons.tuple.bridge.TupleBridge<ID,IC>
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    TupleFinderMapper(org.aksw.commons.tuple.finder.TupleFinder<OD,OC> backend, com.google.common.base.Converter<IC,OC> componentConverter, org.aksw.commons.tuple.bridge.TupleBridge<ID,IC> inBridge)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <X> Stream<ID>
    find(X tuple, org.aksw.commons.tuple.accessor.TupleAccessor<? super X,? extends IC> accessor)
     
    org.aksw.commons.tuple.bridge.TupleBridge<ID,IC>
     
    static <ID, IC, OD, OC>
    org.aksw.commons.tuple.finder.TupleFinder<ID,IC>
    wrap(org.aksw.commons.tuple.finder.TupleFinder<OD,OC> backend, com.google.common.base.Converter<IC,OC> componentConverter, org.aksw.commons.tuple.bridge.TupleBridge<ID,IC> inBridge)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.aksw.commons.tuple.finder.TupleFinder

    contains, contains, find, find, getDimension
  • Field Details

    • backend

      protected org.aksw.commons.tuple.finder.TupleFinder<OD,OC> backend
    • componentConverter

      protected com.google.common.base.Converter<IC,OC> componentConverter
    • inBridge

      protected org.aksw.commons.tuple.bridge.TupleBridge<ID,IC> inBridge
  • Constructor Details

    • TupleFinderMapper

      protected TupleFinderMapper(org.aksw.commons.tuple.finder.TupleFinder<OD,OC> backend, com.google.common.base.Converter<IC,OC> componentConverter, org.aksw.commons.tuple.bridge.TupleBridge<ID,IC> inBridge)
  • Method Details

    • wrap

      public static <ID, IC, OD, OC> org.aksw.commons.tuple.finder.TupleFinder<ID,IC> wrap(org.aksw.commons.tuple.finder.TupleFinder<OD,OC> backend, com.google.common.base.Converter<IC,OC> componentConverter, org.aksw.commons.tuple.bridge.TupleBridge<ID,IC> inBridge)
    • getTupleBridge

      public org.aksw.commons.tuple.bridge.TupleBridge<ID,IC> getTupleBridge()
      Specified by:
      getTupleBridge in interface org.aksw.commons.tuple.finder.TupleFinder<ID,IC>
    • find

      public <X> Stream<ID> find(X tuple, org.aksw.commons.tuple.accessor.TupleAccessor<? super X,? extends IC> accessor)
      Specified by:
      find in interface org.aksw.commons.tuple.finder.TupleFinder<ID,IC>