Java Code Examples for com.datatorrent.api.Context#PortContext

The following examples show how to use com.datatorrent.api.Context#PortContext . 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: StramLocalClusterTest.java    From attic-apex-core with Apache License 2.0 5 votes vote down vote up
@Override
public void setup(Context.PortContext context)
{
  Class<?> value = context.getValue(Context.PortContext.TUPLE_CLASS);
  if (value.getName().equals("POJO")) {
    DynamicLoaderApp.passed = true;
  } else {
    DynamicLoaderApp.passed = false;
  }
  DynamicLoaderApp.latch.countDown();
}
 
Example 2
Source File: ParquetFilePOJOReader.java    From attic-apex-malhar with Apache License 2.0 5 votes vote down vote up
@Override
public void setup(Context.PortContext context)
{
  pojoClass = context.getValue(Context.PortContext.TUPLE_CLASS);
  if (parquetToPOJOFieldsMapping == null) {
    initialiseActiveFieldInfo(generateFieldInfoInputs());
  } else {
    initialiseActiveFieldInfo(parquetToPOJOFieldsMapping);
  }
}
 
Example 3
Source File: POJOKafkaOutputOperator.java    From attic-apex-malhar with Apache License 2.0 5 votes vote down vote up
@Override
public void setup(Context.PortContext context)
{
  if (context.getAttributes().contains(Context.PortContext.TUPLE_CLASS)) {
    pojoClass = context.getAttributes().get(Context.PortContext.TUPLE_CLASS);
  }
}
 
Example 4
Source File: JdbcPOJOInputOperator.java    From attic-apex-malhar with Apache License 2.0 4 votes vote down vote up
@Override
public void setup(Context.PortContext context)
{
  pojoClass = context.getValue(Context.PortContext.TUPLE_CLASS);
}
 
Example 5
Source File: AbstractJdbcPOJOOutputOperator.java    From attic-apex-malhar with Apache License 2.0 4 votes vote down vote up
@Override
public void setup(Context.PortContext context)
{
  pojoClass = context.getValue(Context.PortContext.TUPLE_CLASS);
}
 
Example 6
Source File: JdbcPOJOPollInputOperator.java    From attic-apex-malhar with Apache License 2.0 4 votes vote down vote up
@Override
public void setup(Context.PortContext context)
{
  pojoClass = context.getValue(Context.PortContext.TUPLE_CLASS);
}
 
Example 7
Source File: POJOInnerJoinOperator.java    From attic-apex-malhar with Apache License 2.0 4 votes vote down vote up
@Override
public void setup(Context.PortContext context)
{
  inputFieldObjects[1].inputClass = context.getValue(Context.PortContext.TUPLE_CLASS);
}
 
Example 8
Source File: POJOInnerJoinOperator.java    From attic-apex-malhar with Apache License 2.0 4 votes vote down vote up
@Override
public void setup(Context.PortContext context)
{
  inputFieldObjects[0].inputClass = context.getValue(Context.PortContext.TUPLE_CLASS);
}
 
Example 9
Source File: POJOInnerJoinOperator.java    From attic-apex-malhar with Apache License 2.0 4 votes vote down vote up
@Override
public void setup(Context.PortContext context)
{
  outputClass = context.getValue(Context.PortContext.TUPLE_CLASS);
}
 
Example 10
Source File: TransformOperator.java    From attic-apex-malhar with Apache License 2.0 4 votes vote down vote up
@Override
public void setup(Context.PortContext context)
{
  outputClass = context.getValue(Context.PortContext.TUPLE_CLASS);
}
 
Example 11
Source File: TransformOperator.java    From attic-apex-malhar with Apache License 2.0 4 votes vote down vote up
@Override
public void setup(Context.PortContext context)
{
  inputClass = context.getValue(Context.PortContext.TUPLE_CLASS);
}
 
Example 12
Source File: CassandraPOJOInputOperator.java    From attic-apex-malhar with Apache License 2.0 4 votes vote down vote up
@Override
public void setup(Context.PortContext context)
{
  pojoClass = context.getValue(Context.PortContext.TUPLE_CLASS);
}
 
Example 13
Source File: CassandraPOJOOutputOperator.java    From attic-apex-malhar with Apache License 2.0 4 votes vote down vote up
@Override
public void setup(Context.PortContext context)
{
  pojoClass = context.getValue(Context.PortContext.TUPLE_CLASS);
}
 
Example 14
Source File: POJOEnricher.java    From attic-apex-malhar with Apache License 2.0 4 votes vote down vote up
@Override
public void setup(Context.PortContext context)
{
  outputClass = context.getValue(Context.PortContext.TUPLE_CLASS);
}
 
Example 15
Source File: POJOEnricher.java    From attic-apex-malhar with Apache License 2.0 4 votes vote down vote up
@Override
public void setup(Context.PortContext context)
{
  inputClass = context.getValue(Context.PortContext.TUPLE_CLASS);
}
 
Example 16
Source File: LogParser.java    From attic-apex-malhar with Apache License 2.0 4 votes vote down vote up
public void setup(Context.PortContext context)
{
  clazz = context.getValue(Context.PortContext.TUPLE_CLASS);
}
 
Example 17
Source File: TupleWrapperOperator.java    From attic-apex-malhar with Apache License 2.0 4 votes vote down vote up
@Override
public void setup(Context.PortContext context)
{
  input.setup(context);
}