Skip to content

Commit

Permalink
Refactor code to more functional style (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackye1995 authored Jan 24, 2025
1 parent a8ef90f commit 720f9d4
Show file tree
Hide file tree
Showing 27 changed files with 915 additions and 556 deletions.
171 changes: 0 additions & 171 deletions core/src/main/java/io/trinitylake/BasicLakehouse.java

This file was deleted.

91 changes: 0 additions & 91 deletions core/src/main/java/io/trinitylake/BasicLakehouseVersion.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,13 @@
*/
package io.trinitylake;

import java.util.Map;
import io.trinitylake.tree.TreeNode;
import org.immutables.value.Value;

@Value.Immutable
public interface TransactionContext {
public interface CommittedTransaction {

String transactionId();

LakehouseVersion version();

long startedAtMillis();

Map<String, String> options();
TreeNode committedRoot();
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.trinitylake.tree;
package io.trinitylake;

public interface Action {}
public enum IsolationLevel {
SERIALIZABLE,
SNAPSHOT
}
44 changes: 0 additions & 44 deletions core/src/main/java/io/trinitylake/LakehouseVersion.java

This file was deleted.

Loading

0 comments on commit 720f9d4

Please sign in to comment.