Skip to content

Commit

Permalink
Rename class
Browse files Browse the repository at this point in the history
Signed-off-by: Rupal Mahajan <[email protected]>
  • Loading branch information
rupal-bq committed Apr 15, 2024
1 parent b782c1d commit 8bee98f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import org.opensearch.flint.spark.refresh.FlintSparkIndexRefresh
import org.opensearch.flint.spark.refresh.FlintSparkIndexRefresh.RefreshMode._
import org.opensearch.flint.spark.skipping.FlintSparkSkippingIndex
import org.opensearch.flint.spark.skipping.FlintSparkSkippingStrategy.SkippingKindSerializer
import org.opensearch.flint.spark.skipping.recommendations.DataTypeSkippingStrategy
import org.opensearch.flint.spark.skipping.recommendations.RuleBasedSkippingStrategy

import org.apache.spark.internal.Logging
import org.apache.spark.sql.{DataFrame, Row, SparkSession}
Expand Down Expand Up @@ -376,7 +376,7 @@ class FlintSpark(val spark: SparkSession) extends Logging {
* skipping index recommendation dataframe
*/
def analyzeSkippingIndex(schema: StructType, data: Seq[Row]): Seq[Row] = {
new DataTypeSkippingStrategy()
new RuleBasedSkippingStrategy()
.analyzeSkippingIndexColumns(
spark.createDataFrame(spark.sparkContext.parallelize(data), schema),
spark)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import org.apache.spark.sql.functions.col
/**
* Data type based skipping index column and algorithm selection.
*/
class DataTypeSkippingStrategy extends AnalyzeSkippingStrategy {
class RuleBasedSkippingStrategy extends AnalyzeSkippingStrategy {

/**
* Recommend skipping index columns and algorithm.
Expand Down

0 comments on commit 8bee98f

Please sign in to comment.