forked from apache/hop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
graph model updates, first steps of applying new graph model in graph…
… output transform. apache#3032
- Loading branch information
Showing
13 changed files
with
519 additions
and
77 deletions.
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
26 changes: 26 additions & 0 deletions
26
...phdatabases/src/main/java/org/apache/hop/graphdatabases/core/GraphNodePropertiesMeta.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,26 @@ | ||
package org.apache.hop.graphdatabases.core; | ||
|
||
import org.apache.hop.core.row.IValueMeta; | ||
import org.apache.hop.core.variables.IVariables; | ||
|
||
import java.util.List; | ||
|
||
public class GraphNodePropertiesMeta extends GraphPropertiesMeta implements IGraphProperties{ | ||
|
||
private List<String> primaryPropertyNames; | ||
|
||
public GraphNodePropertiesMeta(String[] propertyNames, | ||
IValueMeta[] propertyTypes, | ||
List<String> primaryPropertyNames ){ | ||
super(propertyNames, propertyTypes); | ||
this.primaryPropertyNames = primaryPropertyNames; | ||
} | ||
|
||
public List<String> getPrimaryPropertyNames() { | ||
return primaryPropertyNames; | ||
} | ||
|
||
public void setPrimaryPropertyNames(List<String> primaryPropertyNames) { | ||
this.primaryPropertyNames = primaryPropertyNames; | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
.../graphdatabases/src/main/java/org/apache/hop/graphdatabases/core/GraphPropertiesMeta.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,34 @@ | ||
package org.apache.hop.graphdatabases.core; | ||
|
||
import org.apache.hop.core.row.IValueMeta; | ||
import org.apache.hop.core.variables.IVariables; | ||
|
||
public abstract class GraphPropertiesMeta implements IGraphProperties{ | ||
|
||
public String[] propertyNames; | ||
public IValueMeta[] propertyTypes; | ||
public GraphPropertiesMeta(String[] propertyNames, IValueMeta[] propertyTypes){ | ||
this.propertyNames = propertyNames; | ||
this.propertyTypes = propertyTypes; | ||
} | ||
|
||
@Override | ||
public String[] getPropertyNames() { | ||
return propertyNames; | ||
} | ||
|
||
@Override | ||
public void setPropertyNames(String[] propertyNames) { | ||
this.propertyNames = propertyNames; | ||
} | ||
|
||
@Override | ||
public IValueMeta[] getPropertyTypes() { | ||
return propertyTypes; | ||
} | ||
|
||
@Override | ||
public void setPropertyTypes(IValueMeta[] propertyTypes) { | ||
this.propertyTypes = propertyTypes; | ||
} | ||
} |
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
35 changes: 35 additions & 0 deletions
35
...ses/src/main/java/org/apache/hop/graphdatabases/core/GraphRelationshipPropertiesMeta.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,35 @@ | ||
package org.apache.hop.graphdatabases.core; | ||
|
||
import org.apache.hop.core.row.IValueMeta; | ||
|
||
import java.util.List; | ||
|
||
public class GraphRelationshipPropertiesMeta extends GraphPropertiesMeta implements IGraphProperties{ | ||
|
||
private List<String> fromPrimaryPropNames, toPrimaryPropNames; | ||
|
||
public GraphRelationshipPropertiesMeta(String[] propertyNames, | ||
IValueMeta[] propertyTypes, | ||
List<String> fromPrimaryPropNames, | ||
List<String> toPrimaryPropNames){ | ||
super(propertyNames, propertyTypes); | ||
this.fromPrimaryPropNames = fromPrimaryPropNames; | ||
this.toPrimaryPropNames = toPrimaryPropNames; | ||
} | ||
|
||
public List<String> getFromPrimaryPropNames() { | ||
return fromPrimaryPropNames; | ||
} | ||
|
||
public void setFromPrimaryPropNames(List<String> fromPrimaryPropNames) { | ||
this.fromPrimaryPropNames = fromPrimaryPropNames; | ||
} | ||
|
||
public List<String> getToPrimaryPropNames() { | ||
return toPrimaryPropNames; | ||
} | ||
|
||
public void setToPrimaryPropNames(List<String> toPrimaryPropNames) { | ||
this.toPrimaryPropNames = toPrimaryPropNames; | ||
} | ||
} |
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
10 changes: 10 additions & 0 deletions
10
.../tech/graphdatabases/src/main/java/org/apache/hop/graphdatabases/core/IGraphNodeMeta.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,10 @@ | ||
package org.apache.hop.graphdatabases.core; | ||
|
||
import java.util.List; | ||
|
||
public interface IGraphNodeMeta extends IGraphProperties{ | ||
|
||
List<String> getLabels(); | ||
|
||
void setLabels(String[] labels); | ||
} |
15 changes: 15 additions & 0 deletions
15
...ech/graphdatabases/src/main/java/org/apache/hop/graphdatabases/core/IGraphProperties.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,15 @@ | ||
package org.apache.hop.graphdatabases.core; | ||
|
||
import org.apache.hop.core.row.IValueMeta; | ||
|
||
public interface IGraphProperties { | ||
|
||
String[] getPropertyNames(); | ||
|
||
void setPropertyNames(String[] propertyNames); | ||
|
||
IValueMeta[] getPropertyTypes(); | ||
|
||
void setPropertyTypes(IValueMeta[] propertyTypes); | ||
|
||
} |
8 changes: 8 additions & 0 deletions
8
...aphdatabases/src/main/java/org/apache/hop/graphdatabases/core/IGraphRelationshipMeta.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,8 @@ | ||
package org.apache.hop.graphdatabases.core; | ||
|
||
public interface IGraphRelationshipMeta extends IGraphProperties{ | ||
|
||
String getType(); | ||
|
||
void setType(String relationshipType); | ||
} |
Oops, something went wrong.