Codota Logo
SchemaFieldQuery$Builder.build
Code IndexAdd Codota to your IDE (free)

How to use
build
method
in
com.hortonworks.registries.schemaregistry.SchemaFieldQuery$Builder

Best Java code snippets using com.hortonworks.registries.schemaregistry.SchemaFieldQuery$Builder.build (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: com.hortonworks.registries/schema-registry-webservice

private SchemaFieldQuery buildSchemaFieldQuery(MultivaluedMap<String, String> queryParameters) {
  SchemaFieldQuery.Builder builder = new SchemaFieldQuery.Builder();
  for (Map.Entry<String, List<String>> entry : queryParameters.entrySet()) {
    List<String> entryValue = entry.getValue();
    String value = entryValue != null && !entryValue.isEmpty() ? entryValue.get(0) : null;
    if (value != null) {
      if (SchemaFieldInfo.FIELD_NAMESPACE.equals(entry.getKey())) {
        builder.namespace(value);
      } else if (SchemaFieldInfo.NAME.equals(entry.getKey())) {
        builder.name(value);
      } else if (SchemaFieldInfo.TYPE.equals(entry.getKey())) {
        builder.type(value);
      }
    }
  }
  return builder.build();
}
origin: hortonworks/registry

private SchemaFieldQuery buildSchemaFieldQuery(MultivaluedMap<String, String> queryParameters) {
  SchemaFieldQuery.Builder builder = new SchemaFieldQuery.Builder();
  for (Map.Entry<String, List<String>> entry : queryParameters.entrySet()) {
    List<String> entryValue = entry.getValue();
    String value = entryValue != null && !entryValue.isEmpty() ? entryValue.get(0) : null;
    if (value != null) {
      if (SchemaFieldInfo.FIELD_NAMESPACE.equals(entry.getKey())) {
        builder.namespace(value);
      } else if (SchemaFieldInfo.NAME.equals(entry.getKey())) {
        builder.name(value);
      } else if (SchemaFieldInfo.TYPE.equals(entry.getKey())) {
        builder.type(value);
      }
    }
  }
  return builder.build();
}
origin: hortonworks/registry

SchemaFieldQuery md5FieldQuery = new SchemaFieldQuery.Builder().name("md5").build();
Collection<SchemaVersionKey> md5SchemaVersionKeys = schemaRegistryClient.findSchemasByFields(md5FieldQuery);
LOG.info("Schemas containing field query [{}] : [{}]", md5FieldQuery, md5SchemaVersionKeys);
SchemaFieldQuery txidFieldQuery = new SchemaFieldQuery.Builder().name("txid").build();
Collection<SchemaVersionKey> txidSchemaVersionKeys = schemaRegistryClient.findSchemasByFields(txidFieldQuery);
LOG.info("Schemas containing field query [{}] : [{}]", txidFieldQuery, txidSchemaVersionKeys);
origin: hortonworks/registry

                                                    .build());
Assert.assertEquals(2, md5SchemaVersionKeys.size());
                                                    .build());
Assert.assertEquals(1, txidSchemaVersionKeys.size());
com.hortonworks.registries.schemaregistrySchemaFieldQuery$Builderbuild

Popular methods of SchemaFieldQuery$Builder

  • <init>
  • name
  • namespace
  • type

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSharedPreferences (Context)
  • onRequestPermissionsResult (Fragment)
  • startActivity (Activity)
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now