Skip to content

Commit

Permalink
Reorder methods in PartitionsBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
patchwork01 committed Aug 6, 2024
1 parent aaf37d0 commit 88fa29d
Showing 1 changed file with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,6 @@ public PartitionsBuilder splitToNewChildrenOnDimension(
return this;
}

protected Partition.Builder put(Partition.Builder partition) {
partitionById.put(partition.getId(), partition);
return partition;
}

protected Partition.Builder partitionById(String id) {
return Optional.ofNullable(partitionById.get(id))
.orElseThrow(() -> new IllegalArgumentException("Partition not specified: " + id));
}

/**
* Applies a partition split to a state store, after specifying the split in this builder. You can set initial
* partitions in this builder, initialise the state store from {@link #buildList}, define further partitions with a
Expand Down Expand Up @@ -153,4 +143,15 @@ public PartitionTree buildTree() {
public Schema getSchema() {
return schema;
}

protected Partition.Builder put(Partition.Builder partition) {
partitionById.put(partition.getId(), partition);
return partition;
}

protected Partition.Builder partitionById(String id) {
return Optional.ofNullable(partitionById.get(id))
.orElseThrow(() -> new IllegalArgumentException("Partition not specified: " + id));
}

}

0 comments on commit 88fa29d

Please sign in to comment.