Skip to content

Commit ee6ba73

Browse files
committed
format code
1 parent 3f4cce2 commit ee6ba73

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

src/main/java/com/alipay/oceanbase/hbase/OHTable.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2238,11 +2238,9 @@ public Pair<byte[][], byte[][]> getStartEndKeys() throws IOException {
22382238

22392239
private BufferedMutator getBufferedMutator() throws IOException {
22402240
if (this.mutator == null) {
2241-
this.mutator = new OHBufferedMutatorImpl(
2242-
this.configuration,
2243-
new BufferedMutatorParams(TableName.valueOf(this.tableNameString))
2244-
.pool(this.executePool).writeBufferSize(this.writeBufferSize)
2245-
.maxKeyValueSize(this.maxKeyValueSize), this);
2241+
this.mutator = new OHBufferedMutatorImpl(this.configuration, new BufferedMutatorParams(
2242+
TableName.valueOf(this.tableNameString)).pool(this.executePool)
2243+
.writeBufferSize(this.writeBufferSize).maxKeyValueSize(this.maxKeyValueSize), this);
22462244
}
22472245
return this.mutator;
22482246
}

src/main/java/com/alipay/oceanbase/hbase/util/OHBufferedMutatorImpl.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,11 @@ public OHBufferedMutatorImpl(OHConnectionImpl ohConnection, BufferedMutatorParam
8888
}
8989
}
9090

91-
public OHBufferedMutatorImpl(Configuration conf, BufferedMutatorParams params,
92-
OHTable ohTable) throws IOException {
91+
/**
92+
* only used for OHTable get bufferedMutator
93+
* */
94+
public OHBufferedMutatorImpl(Configuration conf, BufferedMutatorParams params, OHTable ohTable)
95+
throws IOException {
9396
// create an OHTable object to do batch work
9497
if (ohTable == null) {
9598
throw new ObTableUnexpectedException("The ohTable is null.");
@@ -106,9 +109,9 @@ public OHBufferedMutatorImpl(Configuration conf, BufferedMutatorParams params,
106109
this.operationTimeout = connectionConfig.getOperationTimeout();
107110

108111
this.writeBufferSize = params.getWriteBufferSize() != OHConnectionImpl.BUFFERED_PARAM_UNSET ? params
109-
.getWriteBufferSize() : connectionConfig.getWriteBufferSize();
112+
.getWriteBufferSize() : connectionConfig.getWriteBufferSize();
110113
this.maxKeyValueSize = params.getMaxKeyValueSize() != OHConnectionImpl.BUFFERED_PARAM_UNSET ? params
111-
.getMaxKeyValueSize() : connectionConfig.getMaxKeyValueSize();
114+
.getMaxKeyValueSize() : connectionConfig.getMaxKeyValueSize();
112115

113116
}
114117

0 commit comments

Comments
 (0)