@Test public void testAlterLogicalPlan() { System.out.println(placeholderValues.length); placeholderValues[0] = 1234; placeholderValues[1] = "abcd"; placeholderValues[2] = true; handler.alterLogicalPlan(placeholderValues); IdentifierNode ident = handler.columnValue.getChildType(IdentifierNode.class, 0); assertEquals(String.valueOf(1234), ident.getValue()); }
@Override public void alterLogicalPlan(Object[] placeholderValues) { columnValIndex = 0; this.placeholderValues = placeholderValues; setPlaceholderValue(columnValue); }
InsertPlaceholderHandler implements PlaceholderHandler { @Override public void alterLogicalPlan(Object[] placeholderValues) { columnValIndex = 0; this.placeholderValues = placeholderValues; setPlaceholderValue(columnValue); } }
InsertPlaceholderHandler implements PlaceholderHandler { @Override public void alterLogicalPlan(Object[] placeholderValues) { columnValIndex = 0; this.placeholderValues = placeholderValues; setPlaceholderValue(columnValue); } InsertPlaceholderHandler(LogicalPlan logicalPlan); }
InsertPlaceholderHandler implements PlaceholderHandler { @Override public void alterLogicalPlan(Object[] placeholderValues) { columnValIndex = 0; this.placeholderValues = placeholderValues; setPlaceholderValue(columnValue); } InsertPlaceholderHandler(LogicalPlan logicalPlan); @Override void setPlaceholderIndex(); @Override void setPlaceholderIndex(TreeNode node); @Override void alterLogicalPlan(Object[] placeholderValues); @Override void setPlaceholderValue(TreeNode node); @Override boolean isIndexListEmpty(); @Override int getIndexListCount(); }
InsertPlaceholderHandler implements PlaceholderHandler { @Override public void alterLogicalPlan(Object[] placeholderValues) { columnValIndex = 0; this.placeholderValues = placeholderValues; setPlaceholderValue(columnValue); } InsertPlaceholderHandler(LogicalPlan logicalPlan); @Override void setPlaceholderIndex(); @Override void setPlaceholderIndex(TreeNode node); @Override void alterLogicalPlan(Object[] placeholderValues); @Override void setPlaceholderValue(TreeNode node); @Override boolean isIndexListEmpty(); @Override int getIndexListCount();  }