Java Code Examples for com.datatorrent.api.Context.PortContext#getValue()
The following examples show how to use
com.datatorrent.api.Context.PortContext#getValue() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PojoToAvro.java From attic-apex-malhar with Apache License 2.0 | 5 votes |
@Override public void setup(PortContext context) { cls = context.getValue(Context.PortContext.TUPLE_CLASS); try { parseSchema(); initializeColumnMap(getSchema()); } catch (IOException e) { LOG.error("Exception in parsing schema", e); } }
Example 2
Source File: ProjectionOperator.java From attic-apex-malhar with Apache License 2.0 | 4 votes |
public void setup(PortContext context) { inClazz = context.getValue(Context.PortContext.TUPLE_CLASS); }
Example 3
Source File: ProjectionOperator.java From attic-apex-malhar with Apache License 2.0 | 4 votes |
public void setup(PortContext context) { projectedClazz = context.getValue(Context.PortContext.TUPLE_CLASS); }
Example 4
Source File: ProjectionOperator.java From attic-apex-malhar with Apache License 2.0 | 4 votes |
public void setup(PortContext context) { remainderClazz = context.getValue(Context.PortContext.TUPLE_CLASS); }
Example 5
Source File: Parser.java From attic-apex-malhar with Apache License 2.0 | 4 votes |
public void setup(PortContext context) { clazz = context.getValue(Context.PortContext.TUPLE_CLASS); }
Example 6
Source File: Formatter.java From attic-apex-malhar with Apache License 2.0 | 4 votes |
public void setup(PortContext context) { clazz = context.getValue(Context.PortContext.TUPLE_CLASS); }
Example 7
Source File: FilterOperator.java From attic-apex-malhar with Apache License 2.0 | 4 votes |
public void setup(PortContext context) { inClazz = context.getValue(Context.PortContext.TUPLE_CLASS); }