public class DescCollResponseWrapper
extends java.lang.Object
describeCollection
interface.Constructor and Description |
---|
DescCollResponseWrapper(@NonNull io.milvus.grpc.DescribeCollectionResponse response) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getAliases()
Get aliases of the collection.
|
java.lang.String |
getCollectionDescription()
Get description of the collection.
|
long |
getCollectionID()
Get internal id of the collection.
|
java.lang.String |
getCollectionName()
Get name of the collection.
|
ConsistencyLevelEnum |
getConsistencyLevel()
Get consistency level of the collection.
|
long |
getCreatedUtcTimestamp()
Get utc timestamp when collection created.
|
java.lang.String |
getDatabaseName()
Get database name of the collection.
|
boolean |
getEnableDynamicField()
Deprecated.
|
FieldType |
getFieldByName(@NonNull java.lang.String fieldName)
Get schema of a field by name.
|
java.util.List<FieldType> |
getFields()
Get schema of the collection's fields.
|
FieldType |
getPartitionKeyField()
Get the partition key field.
|
FieldType |
getPrimaryField()
Get the primary key field.
|
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
Get properties of the collection.
|
int |
getReplicaNumber()
return collection replica number
|
java.util.List<java.lang.String> |
getResourceGroups()
return collection resource groups
|
CollectionSchemaParam |
getSchema()
Get the collection schema of collection
|
int |
getShardNumber()
Get shard number of the collection.
|
FieldType |
getVectorField()
Deprecated.
|
java.util.List<FieldType> |
getVectorFields()
Get all the vector key field.
|
boolean |
isDynamicFieldEnabled()
Get whether the collection dynamic field is enabled
|
java.lang.String |
toString()
Construct a
String by DescCollResponseWrapper instance. |
public DescCollResponseWrapper(@NonNull @NonNull io.milvus.grpc.DescribeCollectionResponse response)
public java.lang.String getCollectionName()
String
name of the collectionpublic java.lang.String getDatabaseName()
String
name of the databasepublic java.lang.String getCollectionDescription()
String
description of the collectionpublic long getCollectionID()
long
internal id of the collectionpublic int getShardNumber()
int
shard number of the collectionpublic ConsistencyLevelEnum getConsistencyLevel()
ConsistencyLevelEnum
consistency level of the collectionpublic long getCreatedUtcTimestamp()
long
utc timestamp when collection createdpublic java.util.List<java.lang.String> getAliases()
public java.util.List<FieldType> getFields()
public FieldType getFieldByName(@NonNull @NonNull java.lang.String fieldName)
fieldName
- field name to get field descriptionFieldType
schema of the field@Deprecated public boolean getEnableDynamicField()
public boolean isDynamicFieldEnabled()
public FieldType getPartitionKeyField()
FieldType
schema of the partition key fieldpublic FieldType getPrimaryField()
FieldType
schema of the primary key field@Deprecated public FieldType getVectorField()
FieldType
schema of the vector key fieldpublic java.util.List<FieldType> getVectorFields()
FieldType
schema of the vector key fieldpublic java.util.Map<java.lang.String,java.lang.String> getProperties()
public CollectionSchemaParam getSchema()
CollectionSchemaParam
schema of the collectionpublic java.util.List<java.lang.String> getResourceGroups()
public int getReplicaNumber()
public java.lang.String toString()
String
by DescCollResponseWrapper
instance.toString
in class java.lang.Object
String