Input input = node.getInput();
int channel = input.getChannel();
if (context instanceof TupleReadable[]) {
TupleReadable[] inputs = (TupleReadable[]) context;
TupleReadable tuple = inputs[channel];
int field = input.getField();
if (tuple.isNull(field)) {
return null;
}
switch (tuple.getTupleInfo().getTypes().get(field)) {
case BOOLEAN:
return tuple.getBoolean(field);
case FIXED_INT_64:
return tuple.getLong(field);
case DOUBLE:
return tuple.getDouble(field);
case VARIABLE_BINARY:
return tuple.getSlice(field);
default:
throw new UnsupportedOperationException("not yet implemented");
}
}
else if (context instanceof RecordCursor) {