Package de.lmu.ifi.dbs.elki.index

Examples of de.lmu.ifi.dbs.elki.index.Index


          if(factory.getInputTypeRestriction().isAssignableFromType(meta)) {
            @SuppressWarnings("unchecked")
            final IndexFactory<Object, ?> ofact = (IndexFactory<Object, ?>) factory;
            @SuppressWarnings("unchecked")
            final Relation<Object> orep = (Relation<Object>) relation;
            final Index index = ofact.instantiate(orep);
            addIndex(index);
            index.insertAll(ids);
          }
        }
      }

      // fire insertion event
View Full Code Here


          if(factory.getInputTypeRestriction().isAssignableFromType(meta)) {
            @SuppressWarnings("unchecked")
            final IndexFactory<Object, ?> ofact = (IndexFactory<Object, ?>) factory;
            @SuppressWarnings("unchecked")
            final Relation<Object> orep = (Relation<Object>) relation;
            final Index index = ofact.instantiate(orep);
            addIndex(index);
            index.insertAll(ids);
          }
        }
      }

      // fire insertion event
View Full Code Here

    if(distanceQuery == null) {
      throw new AbortException("kNN query requested for 'null' distance!");
    }
    ListIterator<Index> iter = indexes.listIterator(indexes.size());
    while(iter.hasPrevious()) {
      Index idx = iter.previous();
      if(idx instanceof KNNIndex) {
        if(getLogger().isDebuggingFinest()) {
          getLogger().debugFinest("Considering index for kNN Query: " + idx);
        }
        @SuppressWarnings("unchecked")
View Full Code Here

    if(distanceQuery == null) {
      throw new AbortException("Range query requested for 'null' distance!");
    }
    ListIterator<Index> iter = indexes.listIterator(indexes.size());
    while(iter.hasPrevious()) {
      Index idx = iter.previous();
      if(idx instanceof RangeIndex) {
        if(getLogger().isDebuggingFinest()) {
          getLogger().debugFinest("Considering index for range query: " + idx);
        }
        @SuppressWarnings("unchecked")
View Full Code Here

    if(distanceQuery == null) {
      throw new AbortException("RKNN query requested for 'null' distance!");
    }
    ListIterator<Index> iter = indexes.listIterator(indexes.size());
    while(iter.hasPrevious()) {
      Index idx = iter.previous();
      if(idx instanceof RKNNIndex) {
        if(getLogger().isDebuggingFinest()) {
          getLogger().debugFinest("Considering index for RkNN Query: " + idx);
        }
        @SuppressWarnings("unchecked")
View Full Code Here

TOP

Related Classes of de.lmu.ifi.dbs.elki.index.Index

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.