+++ /dev/null
-/*--------------------------------------------------------------------------\r
- * Copyright 2009 Taro L. Saito\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- *--------------------------------------------------------------------------*/\r
-//--------------------------------------\r
-// XerialJ\r
-//\r
-// RelationEventHandler.java\r
-// Since: May 14, 2009 12:39:42 PM\r
-//\r
-// $URL: http://www.xerial.org/svn/project/XerialJ/trunk/xerial-core/src/main/java/org/xerial/lens/relation/query/AmoebaJoinHandler.java $\r
-// $Author: leo $\r
-//--------------------------------------\r
-package org.xerial.lens.relation.query;\r
-\r
-import org.xerial.lens.relation.Node;\r
-import org.xerial.lens.relation.schema.Schema;\r
-\r
-/**\r
- * Interface of the amoeba join result handler. The tree data will be consumed\r
- * in the depth-first manner, and newly found amoeba pair and tree nodes will be\r
- * reported in the DFS order.\r
- * \r
- * @author leo\r
- * \r
- */\r
-public interface AmoebaJoinHandler {\r
-\r
- /**\r
- * This method will be invoked once before the amoeba join process starts\r
- */\r
- public void init();\r
-\r
- /**\r
- * Invoked when a new amoeba node pair specified in the query set is found\r
- * \r
- * @param schema\r
- * @param coreNode\r
- * @param attributeNode\r
- * @throws Exception\r
- */\r
- public void newAmoeba(Schema schema, Node coreNode, Node attributeNode) throws Exception;\r
-\r
- /**\r
- * Invoked when leaving a node\r
- * \r
- * @param schema\r
- * @param node\r
- * @throws Exception\r
- */\r
- public void leaveNode(Schema schema, Node node) throws Exception;\r
-\r
- /**\r
- * Invoked when a text node belongs to a core node is found\r
- * \r
- * @param schema\r
- * @param coreNode\r
- * @param textNode\r
- * text node may not contain a text value\r
- * @param text\r
- * text fragment data of the text node\r
- * @throws Exception\r
- */\r
- public void text(Schema schema, Node coreNode, Node textNode, String text) throws Exception;\r
-\r
- /**\r
- * Invoked when reading the input stream has finished\r
- */\r
- public void finish();\r
-}\r