Package io.milvus.response
Class DescCollResponseWrapper
- java.lang.Object
-
- io.milvus.response.DescCollResponseWrapper
-
public class DescCollResponseWrapper extends java.lang.Object
Util class to wrap response ofdescribeCollection
interface.
-
-
Constructor Summary
Constructors Constructor Description DescCollResponseWrapper(@NonNull io.milvus.grpc.DescribeCollectionResponse response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.long
getCreatedUtcTimestamp()
Get utc timestamp when collection created.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.int
getShardNumber()
Get shard number of the collection.java.lang.String
toString()
Construct aString
byDescCollResponseWrapper
instance.
-
-
-
Method Detail
-
getCollectionName
public java.lang.String getCollectionName()
Get name of the collection.- Returns:
String
name of the collection
-
getCollectionDescription
public java.lang.String getCollectionDescription()
Get description of the collection.- Returns:
String
description of the collection
-
getCollectionID
public long getCollectionID()
Get internal id of the collection.- Returns:
long
internal id of the collection
-
getShardNumber
public int getShardNumber()
Get shard number of the collection.- Returns:
int
shard number of the collection
-
getCreatedUtcTimestamp
public long getCreatedUtcTimestamp()
Get utc timestamp when collection created.- Returns:
long
utc timestamp when collection created
-
getAliases
public java.util.List<java.lang.String> getAliases()
Get aliases of the collection.- Returns:
- List<String> aliases of the collection
-
getFields
public java.util.List<FieldType> getFields()
Get schema of the collection's fields.- Returns:
- List<FieldType> schema of the collection's fields
-
getFieldByName
public FieldType getFieldByName(@NonNull @NonNull java.lang.String fieldName)
Get schema of a field by name. Return null if the field doesn't exist- Parameters:
fieldName
- field name to get field description- Returns:
FieldType
schema of the field
-
toString
public java.lang.String toString()
Construct aString
byDescCollResponseWrapper
instance.- Overrides:
toString
in classjava.lang.Object
- Returns:
String
-
-