Class ProjectedView<IN,​OUT>

  • Type Parameters:
    IN - Vector type
    OUT - Vector type
    All Implemented Interfaces:
    elki.database.relation.Relation<OUT>

    public class ProjectedView<IN,​OUT>
    extends java.lang.Object
    implements elki.database.relation.Relation<OUT>
    Projected relation view (non-materialized)
    Since:
    0.5.0
    Author:
    Erich Schubert
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private elki.database.relation.Relation<? extends IN> inner
      The wrapped representation where we get the IDs from.
      private elki.data.projection.Projection<IN,​OUT> projection
      The projection we use.
    • Constructor Summary

      Constructors 
      Constructor Description
      ProjectedView​(elki.database.relation.Relation<? extends IN> inner, elki.data.projection.Projection<IN,​OUT> projection)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      OUT get​(elki.database.ids.DBIDRef id)  
      elki.data.type.SimpleTypeInformation<OUT> getDataTypeInformation()  
      elki.database.ids.DBIDs getDBIDs()  
      java.lang.String getLongName()  
      elki.database.ids.DBIDIter iterDBIDs()  
      int size()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface elki.database.relation.Relation

        forEach
    • Field Detail

      • inner

        private final elki.database.relation.Relation<? extends IN> inner
        The wrapped representation where we get the IDs from.
      • projection

        private elki.data.projection.Projection<IN,​OUT> projection
        The projection we use.
    • Constructor Detail

      • ProjectedView

        public ProjectedView​(elki.database.relation.Relation<? extends IN> inner,
                             elki.data.projection.Projection<IN,​OUT> projection)
        Constructor.
        Parameters:
        inner - Inner relation
        projection - Projection function
    • Method Detail

      • getLongName

        public java.lang.String getLongName()
        Specified by:
        getLongName in interface elki.database.relation.Relation<IN>
      • get

        public OUT get​(elki.database.ids.DBIDRef id)
        Specified by:
        get in interface elki.database.relation.Relation<IN>
      • getDataTypeInformation

        public elki.data.type.SimpleTypeInformation<OUT> getDataTypeInformation()
        Specified by:
        getDataTypeInformation in interface elki.database.relation.Relation<IN>
      • getDBIDs

        public elki.database.ids.DBIDs getDBIDs()
        Specified by:
        getDBIDs in interface elki.database.relation.Relation<IN>
      • iterDBIDs

        public elki.database.ids.DBIDIter iterDBIDs()
        Specified by:
        iterDBIDs in interface elki.database.relation.Relation<IN>
      • size

        public int size()
        Specified by:
        size in interface elki.database.relation.Relation<IN>