org.xerial.relation.query.StreamAmoebaJoin-lattice=off\r
-org.xerial.relation.query.StreamAmoebaJoinTest=debug
\ No newline at end of file
+org.xerial.relation.query.StreamAmoebaJoinTest=debug\r
+org.xerial.lens=trace
\ No newline at end of file
@Override\r
public String toString()\r
{\r
- return String.format("parameter setter:\n%s\nrelation setter:\n%s", setterContainer, relationSetterContainer);\r
+ return String.format("(%s, %s)", setterContainer, relationSetterContainer);\r
}\r
\r
private void createBindRules(Class< ? > targetType)\r
private static Logger _logger = Logger.getLogger(ObjectMapper.class);
private HashMap<Long, Object> objectHolder = new HashMap<Long, Object>();
- private HashMap<Schema, ObjectLens> schema2lens = new HashMap<Schema, ObjectLens>();
private HashMap<Schema, Binder> schema2binder = new HashMap<Schema, Binder>();
- private HashSet<Schema> relationSchema = new HashSet<Schema>();
-
private Deque<Object> contextNodeStack = new ArrayDeque<Object>();
private static interface Binder
Schema s = builder.build();
qs.addQueryTarget(s);
- //schema2type.put(s, targetType);
schema2binder.put(s, new AttributeBinder(lens.getTargetType(), each));
- schema2lens.put(s, lens);
}
for (RelationSetter each : lens.getRelationSetterList())
Schema s = new SchemaBuilder().add(each.getCoreNodeName()).add(each.getAttributeNodeName()).build();
qs.addQueryTarget(s);
- //schema2type.put(s, targetType);
schema2binder.put(s, new RelationBinder(lens, each));
- schema2lens.put(s, lens);
- relationSchema.add(s);
}
}
public void text(Schema schema, Node coreNode, String nodeName, String text) throws Exception
{
if (_logger.isTraceEnabled())
- _logger.trace(String.format("text: (%s, %s:%s) in %s", coreNode, nodeName, text, coreNode, schema));
+ _logger.trace(String.format("text: (%s, %s:%s) in %s", coreNode, nodeName, text, schema));
Binder binder = schema2binder.get(schema);
if (binder == null)
\r
if (!targetField.isAccessible())\r
targetField.setAccessible(true);\r
+\r
}\r
\r
@Override\r
@Override\r
public String toString()\r
{\r
- return String.format("[%s, %s]", coreNodeName, attributeNodeName);\r
+ return String.format("(%s[%s], %s[%s])", coreNodeName, coreNodeType.getSimpleName(), attributeNodeName,\r
+ attributeNodeType.getSimpleName());\r
}\r
\r
@Override\r
static
{
_rootLogger.setLogLevel(LogLevel.INFO);
- _rootLogger.setOutputWriter(new OutputStreamWriter(System.out));
+ _rootLogger.setOutputWriter(new OutputStreamWriter(System.err));
_rootLogger._loggerFullName = "root";
_rootLogger._loggerShortName = "root";
// query: (gene, name, start, end, strand)
public static class GeneData
{
+ public int id;
public String name;
public long start;
public long end;
@Override
public String toString()
{
- return String.format("name=%s, start=%s, end=%s, strand=%s, sequence=%s", name, start, end, strand,
- sequence.toString());
+ return String.format("id=%d, name=%s, start=%s, end=%s, strand=%s, sequence=%s", id, name, start, end,
+ strand, sequence.toString());
}
}
-sequence>\r
AACCGG\r
CCCCGG\r
- -gene(id:1, name:gene1, start:100000, end:200000, strand:+)\r
+ -gene(id:1, name:gene1, start:100000, end:200000, strand:+, _[json]:{"memo":"hello"} )\r
-gene(id:2, name:gene2, start:500000, end:700000, strand:-)\r
-sequence>\r
ACCGCTT\r