Packages

  • package root
    Definition Classes
    root
  • package com
    Definition Classes
    root
  • package nvidia
    Definition Classes
    com
  • package mdx

    this is the base transform for mdx analytics SDK, the transform comprise of

    this is the base transform for mdx analytics SDK, the transform comprise of


    core : mdx streaming core classes
    xapp : comprise of sample applications

    Definition Classes
    nvidia
  • package core

    this is the core transform for mdx SDK, contains transform and classes for the core mdx functionality

    this is the core transform for mdx SDK, contains transform and classes for the core mdx functionality

    Definition Classes
    mdx
  • package milvus
    Definition Classes
    core
  • RecordCache
  • ServiceClient
o

com.nvidia.mdx.core.milvus

ServiceClient

object ServiceClient

interface to interact with the Milvus vector database the ServiceClient.config needs to be set before use

 //use api
 ServiceClient.config = Util.readConfig(...path to config...)

 ServiceClient.createCollection
 ServiceClient.createIndex
 ServiceClient.createPartition(...name...)

 ServiceClient.insert(...data...)


 //example config below
 "milvus": {
     "host": "localhost",
     "port": "19530",
     "collection": "mdxBehavior",
     "indexType": "IVF_FLAT",
     "metricType": "IP",
     "vectorDim": "256",
     "sensorIdMaxLength": "100",
     "indexParam": "{\"nlist\":128}",
     "partitioningStrategy": "day",
     "clusterThreshold": "0.9",
     "triggerInterval": "60 seconds"
}
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ServiceClient
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. lazy val blockingStub: MilvusServiceBlockingStub

    milvus grpc stub

  6. def calcDistance(left: Array[Array[Float]], right: Array[Array[Float]], params: Map[String, String]): CalcDistanceResults

    left

    array of embeddings

    right

    array of embeddings

    params

    Map("metric" -> "IP", "dim" -> "256"))

    returns

    CalcDistanceResults

  7. lazy val channel: ManagedChannel

    gRPC channel

  8. def channelReady(requestConnection: Boolean = false): Boolean

    check if channel is ready

  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  10. var config: Map[String, String]
  11. def createCollection: Status

  12. def createIndex: Status

  13. def createPartition(name: String): Status

    name

    example "day_1_month_6_year_2022", generated based the day or week

    returns

    io.milvus.grpc.common.Status

  14. def delete(behaviors: List[Behavior]): MutationResult

    behaviors

    List[Behavior]

    returns

    MutationResult

  15. def delete(idsMap: Map[String, Array[Long]], time: Long): MutationResult
  16. def delete(deleteExpr: String, partitionName: String): MutationResult

    deleteExpr

    id in [1,2,3...]

    partitionName

    example "day_1_month_6_year_2022", generated based the day or week

    returns

    MutationResult

  17. def describeCollection: DescribeCollectionResponse

    returns

    DescribeCollection Response

  18. def describeIndex: DescribeIndexResponse

    returns

    DescribeIndexResponse

  19. def dropCollection: Status

    returns

    status of the response

  20. def dropIndex: Status

  21. def dropPartition(name: String): Status

  22. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  24. def flush(): FlushResponse

    returns

    FlushResponse

  25. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  26. def getCollectionStatistics: GetCollectionStatisticsResponse

    returns

    Will return collection statistics in stats field like [{key:"row_count",value:"1000"}]

  27. def getIndexState: GetIndexStateResponse

    returns

    GetIndexStateResponse

  28. def getPartition(time: Long): String

    get partition based on timestamp and partitioning strategy

    get partition based on timestamp and partitioning strategy

    returns

    example "day_1_month_6_year_2022", generated based the day or week

  29. def getPartitionStatistics(name: String): GetPartitionStatisticsResponse

  30. def hasCollection(): Boolean

    returns

    true if a collection exist else false

  31. def hasPartition(name: String): Boolean

    returns

    Boolean

  32. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  33. def initCollection: Status

  34. def insert(behaviors: List[Behavior]): Map[String, Array[Long]]

    behaviors

    List[Behavior]

    returns

    MutationResult

  35. def insert(rows: Int, embeddings: Array[Float], objectIds: Array[Long], sensorIds: Array[String], timestamps: Array[Long], end: Array[Long], partitionName: String): MutationResult

    rows

    nunbers or records

    embeddings

    flatten to Array[Float]

    objectIds

    Array[Long]

    sensorIds

    hashcode of sensorIds Array[Long]

    timestamps

    timestamps in millis Array[Long]

    partitionName

    example "day_1_month_6_year_2022", generated based the day or week

    returns

    MutationResult

  36. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  37. def loadCollection: Status

  38. def loadPartitions(names: Seq[String]): Status

    names

    example Seq("day_1_month_6_year_2022"), generated based the day or week

    returns

    io.milvus.grpc.common.Status

  39. lazy val log: Logger

    init logger

    init logger

    Annotations
    @transient()
  40. def main(arg: Array[String]): Unit
  41. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  42. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  43. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  44. def query(queryExpr: String, partitionNames: Seq[String]): QueryResults

    returns

    QueryResults

  45. def queryCollection(expr: String, outputFields: Seq[String], partitionNames: Seq[String]): QueryResults

    expr

    example "objectId == 100"

    outputFields

    Seq("objectId","sensorId","timestamp")

    partitionNames

    Seq("day_1_month_6_year_2022")

    returns

    QueryResults

  46. def releaseCollection: Status

  47. def releasePartitions(names: Seq[String]): Status

    names

    example Seq("day_1_month_6_year_2022"), generated based the day or week

    returns

    io.milvus.grpc.common.Status

  48. def resetCollection: Status

  49. def search(data: Array[Array[Float]], dsl: String, partitionNames: Seq[String], params: Map[String, String]): SearchResults

    data

    Array of embeddings

    partitionNames

    example Seq("day_1_month_6_year_2022"), generated based the day or week

    params

    example Map("topk" -> "10", "metric_type" -> "IP", "anns_field" -> "embedding","params" -> "{\"nprobe\":10}")

    returns

    SearchResults

  50. def showCollections: ShowCollectionsResponse

    returns

    basic collection infos

  51. def showPartitions(): ShowPartitionsResponse

  52. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  53. def toString(): String
    Definition Classes
    AnyRef → Any
  54. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  56. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. def waitTillConnectionIsReady(): Unit

    wait till connection is ready

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped