@@ -34,8 +34,6 @@ public class KuduOutputFormat extends MetricOutputFormat {
3434
3535 public enum WriteMode {INSERT , UPDATE , UPSERT }
3636
37- // public enum Consistency {EVENTUAL, STRONG}
38-
3937 private String kuduMasters ;
4038
4139 private String tableName ;
@@ -46,15 +44,10 @@ public enum WriteMode {INSERT, UPDATE, UPSERT}
4644
4745 TypeInformation <?>[] fieldTypes ;
4846
49- // protected List<String> primaryKeys;
50-
51- // private Consistency consistency = Consistency.STRONG;
52-
5347 private AsyncKuduClient client ;
5448
5549 private KuduTable table ;
5650
57-
5851 private Integer workerCount ;
5952
6053 private Integer defaultOperationTimeoutMs ;
@@ -158,11 +151,6 @@ public KuduOutputFormatBuilder setFieldTypes(TypeInformation<?>[] fieldTypes) {
158151 kuduOutputFormat .fieldTypes = fieldTypes ;
159152 return this ;
160153 }
161- //
162- // public KuduOutputFormatBuilder setPrimaryKeys(List<String> primaryKeys) {
163- // kuduOutputFormat.primaryKeys = primaryKeys;
164- // return this;
165- // }
166154
167155 public KuduOutputFormatBuilder setWriteMode (WriteMode writeMode ) {
168156 if (null == writeMode ) {
@@ -177,21 +165,6 @@ public KuduOutputFormatBuilder setWorkerCount(Integer workerCount) {
177165 return this ;
178166 }
179167
180- // public KuduOutputFormatBuilder setConsistency(String consistency) {
181- // switch (consistency) {
182- // case "EVENTUAL":
183- // kuduOutputFormat.consistency = Consistency.EVENTUAL;
184- // break;
185- // case "STRONG":
186- // kuduOutputFormat.consistency = Consistency.STRONG;
187- // break;
188- // default:
189- // kuduOutputFormat.consistency = Consistency.STRONG;
190- // }
191- // return this;
192- // }
193-
194-
195168 public KuduOutputFormatBuilder setDefaultOperationTimeoutMs (Integer defaultOperationTimeoutMs ) {
196169 kuduOutputFormat .defaultOperationTimeoutMs = defaultOperationTimeoutMs ;
197170 return this ;
0 commit comments