@@ -27,18 +27,22 @@ public static class PersistentSegmentInfo {
2727 private Long segmentID ;
2828 private Long collectionID ;
2929 private Long partitionID ;
30+ private String collectionName ;
3031 private Long numOfRows ;
3132 private String state ;
3233 private String level ;
34+ private Long storageVersion ;
3335 private Boolean isSorted ;
3436
3537 private PersistentSegmentInfo (PersistentSegmentInfoBuilder builder ) {
3638 this .segmentID = builder .segmentID ;
3739 this .collectionID = builder .collectionID ;
3840 this .partitionID = builder .partitionID ;
41+ this .collectionName = builder .collectionName ;
3942 this .numOfRows = builder .numOfRows ;
4043 this .state = builder .state ;
4144 this .level = builder .level ;
45+ this .storageVersion = builder .storageVersion ;
4246 this .isSorted = builder .isSorted ;
4347 }
4448
@@ -70,6 +74,14 @@ public void setPartitionID(Long partitionID) {
7074 this .partitionID = partitionID ;
7175 }
7276
77+ public String getCollectionName () {
78+ return collectionName ;
79+ }
80+
81+ public void setCollectionName (String collectionName ) {
82+ this .collectionName = collectionName ;
83+ }
84+
7385 public Long getNumOfRows () {
7486 return numOfRows ;
7587 }
@@ -94,6 +106,14 @@ public void setLevel(String level) {
94106 this .level = level ;
95107 }
96108
109+ public Long getStorageVersion () {
110+ return storageVersion ;
111+ }
112+
113+ public void setStorageVersion (Long storageVersion ) {
114+ this .storageVersion = storageVersion ;
115+ }
116+
97117 public Boolean getIsSorted () {
98118 return isSorted ;
99119 }
@@ -108,9 +128,11 @@ public String toString() {
108128 "segmentID=" + segmentID +
109129 ", collectionID=" + collectionID +
110130 ", partitionID=" + partitionID +
131+ ", collectionName='" + collectionName + '\'' +
111132 ", numOfRows=" + numOfRows +
112133 ", state='" + state + '\'' +
113134 ", level='" + level + '\'' +
135+ ", storageVersion=" + storageVersion +
114136 ", isSorted=" + isSorted +
115137 '}' ;
116138 }
@@ -119,9 +141,11 @@ public static class PersistentSegmentInfoBuilder {
119141 private Long segmentID ;
120142 private Long collectionID ;
121143 private Long partitionID ;
144+ private String collectionName ;
122145 private Long numOfRows ;
123146 private String state ;
124147 private String level ;
148+ private Long storageVersion ;
125149 private Boolean isSorted ;
126150
127151 public PersistentSegmentInfoBuilder segmentID (Long segmentID ) {
@@ -139,6 +163,11 @@ public PersistentSegmentInfoBuilder partitionID(Long partitionID) {
139163 return this ;
140164 }
141165
166+ public PersistentSegmentInfoBuilder collectionName (String collectionName ) {
167+ this .collectionName = collectionName ;
168+ return this ;
169+ }
170+
142171 public PersistentSegmentInfoBuilder numOfRows (Long numOfRows ) {
143172 this .numOfRows = numOfRows ;
144173 return this ;
@@ -154,6 +183,11 @@ public PersistentSegmentInfoBuilder level(String level) {
154183 return this ;
155184 }
156185
186+ public PersistentSegmentInfoBuilder storageVersion (Long storageVersion ) {
187+ this .storageVersion = storageVersion ;
188+ return this ;
189+ }
190+
157191 public PersistentSegmentInfoBuilder isSorted (Boolean isSorted ) {
158192 this .isSorted = isSorted ;
159193 return this ;
0 commit comments