use of org.apache.hop.pipeline.transform.TransformIOMeta in project hop by apache.
the class SimpleMappingMeta method getTransformIOMeta.
@Override
public ITransformIOMeta getTransformIOMeta() {
ITransformIOMeta ioMeta = super.getTransformIOMeta(false);
if (ioMeta == null) {
ioMeta = new TransformIOMeta(true, true, false, false, false, false);
setTransformIOMeta(ioMeta);
}
return ioMeta;
}
use of org.apache.hop.pipeline.transform.TransformIOMeta in project hop by apache.
the class StreamLookupTest method mockProcessRowMeta.
private StreamLookupMeta mockProcessRowMeta(boolean memoryPreservationActive) throws HopTransformException {
StreamLookupMeta meta = smh.iTransformMeta;
TransformMeta lookupTransformMeta = when(mock(TransformMeta.class).getName()).thenReturn("Lookup").getMock();
doReturn(lookupTransformMeta).when(smh.pipelineMeta).findTransform("Lookup");
TransformIOMeta transformIOMeta = new TransformIOMeta(true, true, false, false, false, false);
transformIOMeta.addStream(new Stream(IStream.StreamType.INFO, lookupTransformMeta, null, StreamIcon.INFO, null));
doReturn(transformIOMeta).when(meta).getTransformIOMeta();
doReturn(new String[] { "Id" }).when(meta).getKeylookup();
doReturn(new String[] { "Id" }).when(meta).getKeystream();
doReturn(new String[] { "Value" }).when(meta).getValue();
doReturn(memoryPreservationActive).when(meta).isMemoryPreservationActive();
doReturn(false).when(meta).isUsingSortedList();
doReturn(false).when(meta).isUsingIntegerPair();
doReturn(new int[] { -1 }).when(meta).getValueDefaultType();
doReturn(new String[] { "" }).when(meta).getValueDefault();
doReturn(new String[] { "Value" }).when(meta).getValueName();
doReturn(new String[] { "Value" }).when(meta).getValue();
doCallRealMethod().when(meta).getFields(nullable(IRowMeta.class), nullable(String.class), nullable(IRowMeta[].class), nullable(TransformMeta.class), nullable(IVariables.class), nullable(IHopMetadataProvider.class));
return meta;
}
Aggregations