@Test public void testResolveInputValue() { doTestResolveInputValue("null value", null); doTestResolveInputValue("isEmpty value", ""); doTestResolveInputValue("whitespace value", "\n \t\t \n"); doTestResolveInputValue("value passthrough", "foo"); doTestResolveInputValue("out of bounds", new IndexOutOfBoundsException(), null); }
@Override protected String resolveInputValue(final Row row) { String value; try { value = row.get(index); } catch (IndexOutOfBoundsException iobe) { value = null; } return value; }
SingleColumnValue extends AbstractConvertingColumnValue<T> { @Override protected String resolveInputValue(final Row row) { String value; try { value = row.get(index); } catch (IndexOutOfBoundsException iobe) { value = null; } return value; } }
SingleColumnValue extends AbstractConvertingColumnValue<T> { @Override protected String resolveInputValue(final Row row) { String value; try { value = row.get(index); } catch (IndexOutOfBoundsException iobe) { value = null; } return value; } @JsonCreator  SingleColumnValue(@JsonProperty("index") final int index,
                             @JsonProperty(value="xform", required=false) final ValueTransformer<T> xform,
                             @JsonProperty(value="multiKey", required=false) final String multiKey); }
SingleColumnValue extends AbstractConvertingColumnValue<T> { @Override protected String resolveInputValue(final Row row) { String value; try { value = row.get(index); } catch (IndexOutOfBoundsException iobe) { value = null; } return value; } @JsonCreator  SingleColumnValue(@JsonProperty("index") final int index,
                             @JsonProperty(value="xform", required=false) final ValueTransformer<T> xform,
                             @JsonProperty(value="multiKey", required=false) final String multiKey); @JsonProperty("index") final int getIndex(); @Override int getSortColumn(); }
SingleColumnValue extends AbstractConvertingColumnValue<T> { @Override protected String resolveInputValue(final Row row) { String value; try { value = row.get(index); } catch (IndexOutOfBoundsException iobe) { value = null; } return value; } @JsonCreator  SingleColumnValue(@JsonProperty("index") final int index,
                             @JsonProperty(value="xform", required=false) final ValueTransformer<T> xform,
                             @JsonProperty(value="multiKey", required=false) final String multiKey); @JsonProperty("index") final int getIndex(); @Override int getSortColumn();  }