-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(java): support add columns via sql expressions
- Loading branch information
Showing
4 changed files
with
196 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
java/core/src/main/java/com/lancedb/lance/schema/SqlExpressions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package com.lancedb.lance.schema; | ||
|
||
import java.util.List; | ||
|
||
public class SqlExpressions { | ||
|
||
private List<SqlExpression> sqlExpressions; | ||
|
||
public SqlExpressions() {} | ||
|
||
public List<SqlExpression> getSqlExpressions() { | ||
return sqlExpressions; | ||
} | ||
|
||
public void setSqlExpressions(List<SqlExpression> sqlExpressions) { | ||
this.sqlExpressions = sqlExpressions; | ||
} | ||
|
||
public static class SqlExpression { | ||
|
||
private String name; | ||
private String expression; | ||
|
||
public SqlExpression() {} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getExpression() { | ||
return expression; | ||
} | ||
|
||
public void setExpression(String expression) { | ||
this.expression = expression; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters