forked from finos/vuu
-
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.
- Loading branch information
Showing
624 changed files
with
11,887 additions
and
8,833 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
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
14 changes: 0 additions & 14 deletions
14
...apache-ignite/src/main/scala/org/finos/vuu/example/ignite/IgniteColumnValueProvider.scala
This file was deleted.
Oops, something went wrong.
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
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
13 changes: 12 additions & 1 deletion
13
...e/apache-ignite/src/main/scala/org/finos/vuu/example/ignite/schema/ChildOrderSchema.scala
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 |
---|---|---|
@@ -1,16 +1,27 @@ | ||
package org.finos.vuu.example.ignite.schema | ||
|
||
import com.fasterxml.jackson.databind.json.JsonMapper | ||
import com.fasterxml.jackson.module.scala.{ClassTagExtensions, DefaultScalaModule} | ||
import org.apache.ignite.cache.QueryEntity | ||
import org.finos.vuu.core.module.simul.model.ChildOrder | ||
import org.finos.vuu.feature.ignite.utils.buildQueryEntity | ||
import org.finos.vuu.util.schema.{ExternalEntitySchema, ExternalEntitySchemaBuilder} | ||
|
||
object ChildOrderSchema { | ||
val schema: ExternalEntitySchema = ExternalEntitySchemaBuilder() | ||
.withCaseClass[ChildOrder] | ||
.withEntity(classOf[ChildOrder]) | ||
.withIndex("PARENTID_IDX", List("parentId")) | ||
.withIndex("CHILDID_IDX", List("id")) | ||
.build() | ||
|
||
val queryEntity: QueryEntity = buildQueryEntity(schema, classOf[Int], classOf[ChildOrder]) | ||
|
||
object toChildOrder { | ||
private val mapper: JsonMapper with ClassTagExtensions = JsonMapper | ||
.builder() | ||
.addModule(DefaultScalaModule) | ||
.build() :: ClassTagExtensions | ||
|
||
def apply(l: List[_]): ChildOrder = mapper.convertValue(schema.toMap(l), classOf[ChildOrder]) | ||
} | ||
} |
8 changes: 0 additions & 8 deletions
8
...e-ignite/src/main/scala/org/finos/vuu/example/ignite/utils/getListToObjectConverter.scala
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.