@Test public void testInitialize() { resolver.initialize(context); }
@Override public void initialize(RequestContext requestContext) { super.initialize(requestContext); oneFieldList = new ArrayList<>(); mapper = new ObjectMapper(); columnDescriptorCache = new ColumnDescriptorCache[requestContext.getColumns()]; for (int i = 0; i < requestContext.getColumns(); ++i) { ColumnDescriptor cd = requestContext.getColumn(i); columnDescriptorCache[i] = new ColumnDescriptorCache(cd); } }
JsonResolver extends BasePlugin implements Resolver { @Override public void initialize(RequestContext requestContext) { super.initialize(requestContext); oneFieldList = new ArrayList<>(); mapper = new ObjectMapper(); columnDescriptorCache = new ColumnDescriptorCache[requestContext.getColumns()]; for (int i = 0; i < requestContext.getColumns(); ++i) { ColumnDescriptor cd = requestContext.getColumn(i); columnDescriptorCache[i] = new ColumnDescriptorCache(cd); } } }
JsonResolver extends BasePlugin implements Resolver { @Override public void initialize(RequestContext requestContext) { super.initialize(requestContext); oneFieldList = new ArrayList<>(); mapper = new ObjectMapper(); columnDescriptorCache = new ColumnDescriptorCache[requestContext.getColumns()]; for (int i = 0; i < requestContext.getColumns(); ++i) { ColumnDescriptor cd = requestContext.getColumn(i); columnDescriptorCache[i] = new ColumnDescriptorCache(cd); } }  }
JsonResolver extends BasePlugin implements Resolver { @Override public void initialize(RequestContext requestContext) { super.initialize(requestContext); oneFieldList = new ArrayList<>(); mapper = new ObjectMapper(); columnDescriptorCache = new ColumnDescriptorCache[requestContext.getColumns()]; for (int i = 0; i < requestContext.getColumns(); ++i) { ColumnDescriptor cd = requestContext.getColumn(i); columnDescriptorCache[i] = new ColumnDescriptorCache(cd); } }  @Override void initialize(RequestContext requestContext); @Override List<OneField> getFields(OneRow row); @Override OneRow setFields(List<OneField> record); }
JsonResolver extends BasePlugin implements Resolver { @Override public void initialize(RequestContext requestContext) { super.initialize(requestContext); oneFieldList = new ArrayList<>(); mapper = new ObjectMapper(); columnDescriptorCache = new ColumnDescriptorCache[requestContext.getColumns()]; for (int i = 0; i < requestContext.getColumns(); ++i) { ColumnDescriptor cd = requestContext.getColumn(i); columnDescriptorCache[i] = new ColumnDescriptorCache(cd); } }  @Override void initialize(RequestContext requestContext); @Override List<OneField> getFields(OneRow row); @Override OneRow setFields(List<OneField> record);  }