Class

com.github.jelmerk.knn.scalalike

DelegatingReadOnlyIndex

Related Doc: package scalalike

Permalink

class DelegatingReadOnlyIndex[TId, TVector, TItem <: Item[TId, TVector], TDistance] extends ReadOnlyIndex[TId, TVector, TItem, TDistance]

Annotations
@SerialVersionUID()
Linear Supertypes
ReadOnlyIndex[TId, TVector, TItem, TDistance], Serializable, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DelegatingReadOnlyIndex
  2. ReadOnlyIndex
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DelegatingReadOnlyIndex(delegate: knn.ReadOnlyIndex[TId, TVector, TItem, TDistance])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(id: TId): TItem

    Permalink

    Returns an item by its identifier.

    Returns an item by its identifier. If the item does not exist in the index a NoSuchElementException is thrown

    id

    unique identifier of the item to return

    returns

    the item

    Definition Classes
    DelegatingReadOnlyIndexReadOnlyIndex
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def findNearest(vector: TVector, k: Int): Seq[SearchResult[TItem, TDistance]]

    Permalink

    Find the items closest to the passed in vector.

    Find the items closest to the passed in vector.

    vector

    the vector

    k

    number of items to return

    returns

    the items closest to the passed in vector

    Definition Classes
    DelegatingReadOnlyIndexReadOnlyIndex
  11. def findNeighbours(id: TId, k: Int): Seq[SearchResult[TItem, TDistance]]

    Permalink

    Find the items closest to the item identified by the passed in id.

    Find the items closest to the item identified by the passed in id. If the id does not match an item an empty list is returned. the element itself is not included in the response.

    id

    of the item to find the neighbours of

    k

    number of neighbours to return

    returns

    the items closest to the item

    Definition Classes
    DelegatingReadOnlyIndexReadOnlyIndex
  12. def get(id: TId): Option[TItem]

    Permalink

    Optionally return an item by its identifier

    Optionally return an item by its identifier

    id

    unique identifier of the item to return

    returns

    the item

    Definition Classes
    DelegatingReadOnlyIndexReadOnlyIndex
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. def save(path: Path): Unit

    Permalink

    Saves the index to a path.

    Saves the index to a path.

    path

    path to write the index to

    Definition Classes
    DelegatingReadOnlyIndexReadOnlyIndex
  20. def save(file: File): Unit

    Permalink

    Saves the index to a file.

    Saves the index to a file.

    file

    file to write the index to

    Definition Classes
    DelegatingReadOnlyIndexReadOnlyIndex
  21. def save(out: OutputStream): Unit

    Permalink

    Saves the index to an OutputStream.

    Saves the index to an OutputStream.

    out

    the output stream to write the index to

    Definition Classes
    DelegatingReadOnlyIndexReadOnlyIndex
  22. def size: Int

    Permalink

    Returns the size of the index.

    Returns the size of the index.

    returns

    size of the index

    Definition Classes
    DelegatingReadOnlyIndexReadOnlyIndex
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ReadOnlyIndex[TId, TVector, TItem, TDistance]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped