Package io.milvus.response
Class DescCollResponseWrapper
java.lang.Object
io.milvus.response.DescCollResponseWrapper
Util class to wrap response of
describeCollection interface.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet aliases of the collection.Get description of the collection.longGet internal id of the collection.Get name of the collection.Get consistency level of the collection.longGet utc timestamp when collection created.Get database name of the collection.booleanDeprecated.getFieldByName(@NonNull String fieldName) Get schema of a field by name.Get schema of the collection's fields.Get the partition key field.Get the primary key field.Get properties of the collection.intreturn collection replica numberreturn collection resource groupsGet the collection schema of collectionintGet shard number of the collection.Deprecated.Get all the vector key field.booleanGet whether the collection dynamic field is enabledtoString()Construct aStringbyDescCollResponseWrapperinstance.
-
Constructor Details
-
DescCollResponseWrapper
-
-
Method Details
-
getCollectionName
Get name of the collection.- Returns:
Stringname of the collection
-
getDatabaseName
Get database name of the collection.- Returns:
Stringname of the database
-
getCollectionDescription
Get description of the collection.- Returns:
Stringdescription of the collection
-
getCollectionID
public long getCollectionID()Get internal id of the collection.- Returns:
longinternal id of the collection
-
getShardNumber
public int getShardNumber()Get shard number of the collection.- Returns:
intshard number of the collection
-
getConsistencyLevel
Get consistency level of the collection.- Returns:
ConsistencyLevelEnumconsistency level of the collection
-
getCreatedUtcTimestamp
public long getCreatedUtcTimestamp()Get utc timestamp when collection created.- Returns:
longutc timestamp when collection created
-
getAliases
Get aliases of the collection.- Returns:
- List of String, aliases of the collection
-
getFields
Get schema of the collection's fields.- Returns:
- List of FieldType, schema of the collection's fields
-
getFieldByName
Get schema of a field by name. Return null if the field doesn't exist- Parameters:
fieldName- field name to get field description- Returns:
FieldTypeschema of the field
-
getEnableDynamicField
Deprecated. -
isDynamicFieldEnabled
public boolean isDynamicFieldEnabled()Get whether the collection dynamic field is enabled- Returns:
- boolean
-
getPartitionKeyField
Get the partition key field. Return null if the partition key field doesn't exist.- Returns:
FieldTypeschema of the partition key field
-
getPrimaryField
Get the primary key field. throw ParamException if the primary key field doesn't exist.- Returns:
FieldTypeschema of the primary key field
-
getVectorField
Deprecated.Get the vector key field. throw ParamException if the vector key field doesn't exist. This method is deprecated since Milvus supports multiple vector fields from v2.4- Returns:
FieldTypeschema of the vector key field
-
getVectorFields
Get all the vector key field. (Milvus supports multiple vector fields from v2.4)- Returns:
FieldTypeschema of the vector key field
-
getProperties
Get properties of the collection.- Returns:
- List of String, aliases of the collection
-
getSchema
Get the collection schema of collection- Returns:
CollectionSchemaParamschema of the collection
-
getResourceGroups
return collection resource groups- Returns:
- resource group names
-
getReplicaNumber
public int getReplicaNumber()return collection replica number- Returns:
- replica number
-
toString
Construct aStringbyDescCollResponseWrapperinstance.
-