Examples of GetSchemaRequest


Examples of com.bluetangstudio.searchcloud.client.request.GetSchemaRequest

    public void testGetSchema() throws IOException, ServiceException {

        RestSearchCloudClient client = new RestSearchCloudClient(new DefaultHttpClientFactory(), getUri(), "apikey");

        String modelId = "test_GetSchema";
        DocumentSchema schema = client.getSchema(new GetSchemaRequest(modelId));

        Assert.assertNotNull(schema);

        DocumentSchemaBuilder builder = new DocumentSchemaBuilder();
        DocumentSchema expectedSchema = builder.withField("string", new StringFieldType(Language.ZH_TW)).withField(
View Full Code Here

Examples of com.bluetangstudio.searchcloud.client.request.GetSchemaRequest

    }
   
    /** {@inheritDoc} */
    @Override
    public final DocumentSchema getSchema(String modelId) throws IOException, ServiceException {
        return getSchema(new GetSchemaRequest(modelId));
    }
View Full Code Here

Examples of com.bluetangstudio.searchcloud.client.request.GetSchemaRequest

public class GetSchemaRequestBuilderTest extends RequestBuilderTestBase {

    @Test
    public void buildHttpUriRequest() {

        GetSchemaRequest get = new GetSchemaRequest("GetSchemaRequestBuilderTest");
        setTrackingVariables(get);

        GetSchemaRequestBuilder builder = new GetSchemaRequestBuilder();
        HttpUriRequest httpUriRequest = builder.build(get);
View Full Code Here

Examples of com.google.apphosting.api.DatastorePb.GetSchemaRequest

    public static Schema getSchema() throws IllegalStateException {
        if (AppEngineUtil.isProduction()) {
            throw new IllegalStateException(
                "This method does not work on production server.");
        }
        GetSchemaRequest req = new GetSchemaRequest();
        req.setApp(ApiProxy.getCurrentEnvironment().getAppId());
        byte[] resBuf =
            ApiProxy.makeSyncCall(DATASTORE_SERVICE, GET_SCHEMA_METHOD, req
                .toByteArray());
        Schema schema = new Schema();
        schema.mergeFrom(resBuf);
        return schema;
    }
View Full Code Here

Examples of com.google.apphosting.api.DatastorePb.GetSchemaRequest

    public static Schema getSchema() throws IllegalStateException {
        if (AppEngineUtil.isProduction()) {
            throw new IllegalStateException(
                "This method does not work on production server.");
        }
        GetSchemaRequest req = new GetSchemaRequest();
        req.setApp(ApiProxy.getCurrentEnvironment().getAppId());
        byte[] resBuf =
            ApiProxy.makeSyncCall(DATASTORE_SERVICE, GET_SCHEMA_METHOD, req
                .toByteArray());
        Schema schema = new Schema();
        schema.mergeFrom(resBuf);
        return schema;
    }
View Full Code Here

Examples of com.google.apphosting.api.DatastorePb.GetSchemaRequest

   */
  public static Schema getSchema() throws IllegalStateException {
    if (AppEngineUtil.isProduction()) {
      throw new IllegalStateException("This method does not work on production server.");
    }
    GetSchemaRequest req = new GetSchemaRequest();
    req.setApp(ApiProxy.getCurrentEnvironment().getAppId());
    byte[] resBuf =
      ApiProxy.makeSyncCall(DATASTORE_SERVICE, GET_SCHEMA_METHOD, req.toByteArray());
    Schema schema = new Schema();
    schema.mergeFrom(resBuf);
    return schema;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.