[HUDI-2697] Minor changes about hbase index config. (#3927)
This commit is contained in:
@@ -76,9 +76,9 @@ public class HoodieHBaseIndexConfig extends HoodieConfig {
|
|||||||
.withDocumentation("Property to set which implementation of HBase QPS resource allocator to be used, which"
|
.withDocumentation("Property to set which implementation of HBase QPS resource allocator to be used, which"
|
||||||
+ "controls the batching rate dynamically.");
|
+ "controls the batching rate dynamically.");
|
||||||
|
|
||||||
public static final ConfigProperty<String> PUT_BATCH_SIZE_AUTO_COMPUTE = ConfigProperty
|
public static final ConfigProperty<Boolean> PUT_BATCH_SIZE_AUTO_COMPUTE = ConfigProperty
|
||||||
.key("hoodie.index.hbase.put.batch.size.autocompute")
|
.key("hoodie.index.hbase.put.batch.size.autocompute")
|
||||||
.defaultValue("false")
|
.defaultValue(false)
|
||||||
.withDocumentation("Property to set to enable auto computation of put batch size");
|
.withDocumentation("Property to set to enable auto computation of put batch size");
|
||||||
|
|
||||||
public static final ConfigProperty<Float> QPS_FRACTION = ConfigProperty
|
public static final ConfigProperty<Float> QPS_FRACTION = ConfigProperty
|
||||||
@@ -206,7 +206,7 @@ public class HoodieHBaseIndexConfig extends HoodieConfig {
|
|||||||
* @deprecated Use {@link #PUT_BATCH_SIZE_AUTO_COMPUTE} and its methods instead
|
* @deprecated Use {@link #PUT_BATCH_SIZE_AUTO_COMPUTE} and its methods instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static final String DEFAULT_HBASE_PUT_BATCH_SIZE_AUTO_COMPUTE = PUT_BATCH_SIZE_AUTO_COMPUTE.defaultValue();
|
public static final Boolean DEFAULT_HBASE_PUT_BATCH_SIZE_AUTO_COMPUTE = PUT_BATCH_SIZE_AUTO_COMPUTE.defaultValue();
|
||||||
/**
|
/**
|
||||||
* @deprecated Use {@link #MAX_QPS_FRACTION} and its methods instead
|
* @deprecated Use {@link #MAX_QPS_FRACTION} and its methods instead
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1295,8 +1295,8 @@ public class HoodieWriteConfig extends HoodieConfig {
|
|||||||
return getInt(HoodieHBaseIndexConfig.PUT_BATCH_SIZE);
|
return getInt(HoodieHBaseIndexConfig.PUT_BATCH_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Boolean getHbaseIndexPutBatchSizeAutoCompute() {
|
public boolean getHbaseIndexPutBatchSizeAutoCompute() {
|
||||||
return getBoolean(HoodieHBaseIndexConfig.PUT_BATCH_SIZE_AUTO_COMPUTE);
|
return getBooleanOrDefault(HoodieHBaseIndexConfig.PUT_BATCH_SIZE_AUTO_COMPUTE);
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getHBaseQPSResourceAllocatorClass() {
|
public String getHBaseQPSResourceAllocatorClass() {
|
||||||
@@ -1357,7 +1357,7 @@ public class HoodieWriteConfig extends HoodieConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean getHbaseIndexUpdatePartitionPath() {
|
public boolean getHbaseIndexUpdatePartitionPath() {
|
||||||
return getBoolean(HoodieHBaseIndexConfig.UPDATE_PARTITION_PATH_ENABLE);
|
return getBooleanOrDefault(HoodieHBaseIndexConfig.UPDATE_PARTITION_PATH_ENABLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getBloomIndexParallelism() {
|
public int getBloomIndexParallelism() {
|
||||||
|
|||||||
Reference in New Issue
Block a user