Package io.milvus.response
Class ShowPartResponseWrapper
- java.lang.Object
-
- io.milvus.response.ShowPartResponseWrapper
-
public class ShowPartResponseWrapper extends java.lang.Object
Util class to wrap response ofshowPartitions
interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShowPartResponseWrapper.PartitionInfo
Internal-use class to wrap response ofshowPartitions
interface.
-
Constructor Summary
Constructors Constructor Description ShowPartResponseWrapper(@NonNull io.milvus.grpc.ShowPartitionsResponse response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShowPartResponseWrapper.PartitionInfo
getPartitionInfoByName(@NonNull java.lang.String partitionName)
Get information of one partition by name.java.util.List<ShowPartResponseWrapper.PartitionInfo>
getPartitionsInfo()
Get information of the partitions.java.lang.String
toString()
Construct aString
byShowPartResponseWrapper
instance.
-
-
-
Method Detail
-
getPartitionsInfo
public java.util.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 java.lang.String partitionName)
Get information of one partition by name.- Parameters:
partitionName
- partition name to get information- Returns:
ShowPartResponseWrapper.PartitionInfo
information of the partition
-
toString
public java.lang.String toString()
Construct aString
byShowPartResponseWrapper
instance.- Overrides:
toString
in classjava.lang.Object
- Returns:
String
-
-