Skip to content

Commit

Permalink
zframe repartition
Browse files Browse the repository at this point in the history
  • Loading branch information
sonalgoyal committed Jul 16, 2024
1 parent cdbcb99 commit 6abd121
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public interface ZFrame<D, R, C> {
public ZFrame<D, R, C> repartition(int num);
public ZFrame<D, R, C> repartition(int num, C c);
public ZFrame<D, R, C> repartition(int num,scala.collection.Seq<C> partitionExprs);
public ZFrame<D, R, C> repartition(scala.collection.Seq<C> partitionExprs);


public ZFrame<D, R, C> sample(boolean repartition, float num);
Expand Down
4 changes: 4 additions & 0 deletions spark/client/src/main/java/zingg/spark/client/SparkFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ public ZFrame<Dataset<Row>, Row, Column> repartition(int num,scala.collection.Se
return new SparkFrame(df.repartition(num, partitionExprs));
}

public ZFrame<Dataset<Row>, Row, Column> repartition(scala.collection.Seq<Column> partitionExprs){
return new SparkFrame(df.repartition(partitionExprs));
}

@Override
public Column gt(String c) {
return gt(this,c);
Expand Down

0 comments on commit 6abd121

Please sign in to comment.