@Test public void testSearch() throws IOException { List<SObject> actual = conn.search("FIND {dickenson.com} returning contact(id, phone, firstname, lastname, email)"); assertEquals(readResource("/apiResponses/search.xml"), TestFixtureUtils.dumpFixture(actual)); }
@Override @Nonnull public List<SObject> search(String sosl) throws IOException { Timer.Context context = searchTimer.time(); String json; try { json = this.getHttpApiClient().search(sosl); } finally { context.stop(); } return getSObjects(this.objectReader.readValue(parse(json), ArrayNode.class).elements()); }
RestConnectionImpl implements RestConnection { @Override @Nonnull public List<SObject> search(String sosl) throws IOException { Timer.Context context = searchTimer.time(); String json; try { json = this.getHttpApiClient().search(sosl); } finally { context.stop(); } return getSObjects(this.objectReader.readValue(parse(json), ArrayNode.class).elements()); } }
RestConnectionImpl implements RestConnection { @Override @Nonnull public List<SObject> search(String sosl) throws IOException { Timer.Context context = searchTimer.time(); String json; try { json = this.getHttpApiClient().search(sosl); } finally { context.stop(); } return getSObjects(this.objectReader.readValue(parse(json), ArrayNode.class).elements()); } RestConnectionImpl(ObjectReader objectReader, HttpApiClientProvider httpApiClientProvider,
            MetricRegistry metricRegistry); }
RestConnectionImpl implements RestConnection { @Override @Nonnull public List<SObject> search(String sosl) throws IOException { Timer.Context context = searchTimer.time(); String json; try { json = this.getHttpApiClient().search(sosl); } finally { context.stop(); } return getSObjects(this.objectReader.readValue(parse(json), ArrayNode.class).elements()); } RestConnectionImpl(ObjectReader objectReader, HttpApiClientProvider httpApiClientProvider,
            MetricRegistry metricRegistry); @Override @Nonnull SaveResult create(SObject sObject); @Override void delete(String sObjectType, Id id); @Override @Nonnull DescribeGlobalResult describeGlobal(); @Override @Nonnull SObjectDescription describeSObject(String sObjectType); @Override @Nonnull BasicSObjectMetadataResult getBasicObjectInfo(String sObjectType); @Override @Nonnull RestQueryResult query(String soql); @Override @Nonnull RestQueryResult queryMore(RestQueryLocator queryLocator); @Override @Nonnull SObject retrieve(String sObjectType, Id id, List<String> fields); @Override @Nonnull List<SObject> search(String sosl); @Override void update(SObject sObject); @Override @Nonnull UpsertResult upsert(SObject sObject, String externalIdField); }
RestConnectionImpl implements RestConnection { @Override @Nonnull public List<SObject> search(String sosl) throws IOException { Timer.Context context = searchTimer.time(); String json; try { json = this.getHttpApiClient().search(sosl); } finally { context.stop(); } return getSObjects(this.objectReader.readValue(parse(json), ArrayNode.class).elements()); } RestConnectionImpl(ObjectReader objectReader, HttpApiClientProvider httpApiClientProvider,
            MetricRegistry metricRegistry); @Override @Nonnull SaveResult create(SObject sObject); @Override void delete(String sObjectType, Id id); @Override @Nonnull DescribeGlobalResult describeGlobal(); @Override @Nonnull SObjectDescription describeSObject(String sObjectType); @Override @Nonnull BasicSObjectMetadataResult getBasicObjectInfo(String sObjectType); @Override @Nonnull RestQueryResult query(String soql); @Override @Nonnull RestQueryResult queryMore(RestQueryLocator queryLocator); @Override @Nonnull SObject retrieve(String sObjectType, Id id, List<String> fields); @Override @Nonnull List<SObject> search(String sosl); @Override void update(SObject sObject); @Override @Nonnull UpsertResult upsert(SObject sObject, String externalIdField);  }