@Test public void testGetValueFromArray() throws IOException { setAccessorToRecordWithArrays(); Assert.assertEquals(accessor.getAsString("nestedRecords.1.fieldToEncrypt"), "val1"); }
@Override public String getAsString(String fieldName) { Object obj = getAsObject(fieldName); return convertToString(fieldName, obj); }
AvroGenericRecordAccessor implements RecordAccessor { @Override public String getAsString(String fieldName) { Object obj = getAsObject(fieldName); return convertToString(fieldName, obj); } }
AvroGenericRecordAccessor implements RecordAccessor { @Override public String getAsString(String fieldName) { Object obj = getAsObject(fieldName); return convertToString(fieldName, obj); } AvroGenericRecordAccessor(GenericRecord record); }
AvroGenericRecordAccessor implements RecordAccessor { @Override public String getAsString(String fieldName) { Object obj = getAsObject(fieldName); return convertToString(fieldName, obj); } AvroGenericRecordAccessor(GenericRecord record); @Override Map<String, String> getMultiAsString(String fieldName); @Override String getAsString(String fieldName); @Override Map<String, Integer> getMultiAsInt(String fieldName); @Override Integer getAsInt(String fieldName); @Override Map<String, Long> getMultiAsLong(String fieldName); @Override Long getAsLong(String fieldName); @Override Map<String, Object> getMultiGeneric(String fieldName); @Override Object getGeneric(String fieldName); @Override void set(String fieldName, String value); @Override void set(String fieldName, Integer value); @Override void set(String fieldName, Long value); @Override void setStringArray(String fieldName, List<String> value); @Override void setToNull(String fieldName); }
AvroGenericRecordAccessor implements RecordAccessor { @Override public String getAsString(String fieldName) { Object obj = getAsObject(fieldName); return convertToString(fieldName, obj); } AvroGenericRecordAccessor(GenericRecord record); @Override Map<String, String> getMultiAsString(String fieldName); @Override String getAsString(String fieldName); @Override Map<String, Integer> getMultiAsInt(String fieldName); @Override Integer getAsInt(String fieldName); @Override Map<String, Long> getMultiAsLong(String fieldName); @Override Long getAsLong(String fieldName); @Override Map<String, Object> getMultiGeneric(String fieldName); @Override Object getGeneric(String fieldName); @Override void set(String fieldName, String value); @Override void set(String fieldName, Integer value); @Override void set(String fieldName, Long value); @Override void setStringArray(String fieldName, List<String> value); @Override void setToNull(String fieldName);  }