Package io.milvus.response
Class ShowPartResponseWrapper
- java.lang.Object
-
- io.milvus.response.ShowPartResponseWrapper
-
public class ShowPartResponseWrapper extends Object
Util class to wrap response ofshowPartitionsinterface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShowPartResponseWrapper.PartitionInfoInternal-use class to wrap response ofshowPartitionsinterface.
-
Constructor Summary
Constructors Constructor Description ShowPartResponseWrapper(@NonNull ShowPartitionsResponse response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShowPartResponseWrapper.PartitionInfogetPartitionInfoByName(@NonNull String partitionName)Get information of one partition by name.List<ShowPartResponseWrapper.PartitionInfo>getPartitionsInfo()Get information of the partitions.StringtoString()Construct aStringbyShowPartResponseWrapperinstance.
-
-
-
Constructor Detail
-
ShowPartResponseWrapper
public ShowPartResponseWrapper(@NonNull @NonNull ShowPartitionsResponse response)
-
-
Method Detail
-
getPartitionsInfo
public List<ShowPartResponseWrapper.PartitionInfo> getPartitionsInfo() throws IllegalResponseException
Get information of the partitions.- Returns:
- List of PartitionInfo, information array of the partitions
- Throws:
IllegalResponseException
-
getPartitionInfoByName
public ShowPartResponseWrapper.PartitionInfo getPartitionInfoByName(@NonNull @NonNull String partitionName)
Get information of one partition by name.- Parameters:
partitionName- partition name to get information- Returns:
ShowPartResponseWrapper.PartitionInfoinformation of the partition
-
toString
public String toString()
Construct aStringbyShowPartResponseWrapperinstance.
-
-