public class DescCollResponseWrapper extends Object
describeCollection interface.| 构造器和说明 |
|---|
DescCollResponseWrapper(@NonNull DescribeCollectionResponse response) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<String> |
getAliases()
Get aliases of the collection.
|
String |
getCollectionDescription()
Get description of the collection.
|
long |
getCollectionID()
Get internal id of the collection.
|
String |
getCollectionName()
Get name of the collection.
|
long |
getCreatedUtcTimestamp()
Get utc timestamp when collection created.
|
FieldType |
getFieldByName(@NonNull String fieldName)
Get schema of a field by name.
|
List<FieldType> |
getFields()
Get schema of the collection's fields.
|
int |
getShardNumber()
Get shard number of the collection.
|
String |
toString()
Construct a
String by DescCollResponseWrapper instance. |
public DescCollResponseWrapper(@NonNull
@NonNull DescribeCollectionResponse response)
public String getCollectionName()
String name of the collectionpublic String getCollectionDescription()
String description of the collectionpublic long getCollectionID()
long internal id of the collectionpublic int getShardNumber()
int shard number of the collectionpublic long getCreatedUtcTimestamp()
long utc timestamp when collection createdpublic List<String> getAliases()
public List<FieldType> getFields()
public FieldType getFieldByName(@NonNull @NonNull String fieldName)
fieldName - field name to get field descriptionFieldType schema of the fieldpublic String toString()
String by DescCollResponseWrapper instance.Copyright © 2023. All rights reserved.