Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
sync with master
  • Loading branch information
Vikram Agrawal committed Sep 24, 2019
commit 8f50519e7717a03b5f9d2797bf11e2227929eee7
5 changes: 3 additions & 2 deletions dev/deps/spark-deps-hadoop-2.7
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,9 @@ protobuf-java-2.5.0.jar
py4j-0.10.8.1.jar
pyrolite-4.30.jar
rocksdbjni-6.2.2.jar
scala-compiler-2.12.8.jar
scala-library-2.12.8.jar
scala-collection-compat_2.12-2.1.1.jar
scala-compiler-2.12.10.jar
scala-library-2.12.10.jar
scala-parser-combinators_2.12-1.1.0.jar
scala-reflect-2.12.10.jar
scala-xml_2.12-1.2.0.jar
Expand Down
5 changes: 3 additions & 2 deletions dev/deps/spark-deps-hadoop-3.2
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,9 @@ py4j-0.10.8.1.jar
pyrolite-4.30.jar
re2j-1.1.jar
rocksdbjni-6.2.2.jar
scala-compiler-2.12.8.jar
scala-library-2.12.8.jar
scala-collection-compat_2.12-2.1.1.jar
scala-compiler-2.12.10.jar
scala-library-2.12.10.jar
scala-parser-combinators_2.12-1.1.0.jar
scala-reflect-2.12.10.jar
scala-xml_2.12-1.2.0.jar
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.apache.spark.sql.execution.streaming.state

import org.apache.spark.sql.internal.SQLConf
import org.apache.spark.util.Utils

class RocksDbStateStoreConf(@transient private val stateStoreConf: StateStoreConf)
extends Serializable {

private val DEFAULT_BLOCKSIZE_IN_KB = 32
private val DEFAULT_MEMTABLE_BUDGET_IN_MB = 1024
private val DEFAULT_CACHE_SIZE_IN_MB = 512

def this() = this(StateStoreConf.empty)

val blockSizeInKB: Int = stateStoreConf.sqlConf
.getConf(SQLConf.ROCKSDB_STATE_STORE_DATA_BLOCK_SIZE)
.getOrElse(DEFAULT_BLOCKSIZE_IN_KB)

val memtableBudgetInMB: Int = stateStoreConf.sqlConf
.getConf(SQLConf.ROCKSDB_STATE_STORE_MEMTABLE_BUDGET)
.getOrElse(DEFAULT_MEMTABLE_BUDGET_IN_MB)

val cacheSizeInMB: Int = stateStoreConf.sqlConf
.getConf(SQLConf.ROCKSDB_STATE_STORE_CACHE_SIZE)
.getOrElse(DEFAULT_CACHE_SIZE_IN_MB)

val enableStats: Boolean = stateStoreConf.sqlConf
.getConf(SQLConf.ROCKSDB_STATE_STORE_ENABLE_STATS)
.getOrElse(false)

val localDir: String = stateStoreConf.sqlConf
.getConf(SQLConf.ROCKSDB_STATE_STORE_DATA_LOCAL_DIR)
.getOrElse(Utils.createTempDir().getAbsolutePath)
}
You are viewing a condensed version of this merge commit. You can view the full changes here.