Tabnine Logo
HollowSchemaParser.parseSetSchema
Code IndexAdd Tabnine to your IDE (free)

How to use
parseSetSchema
method
in
com.netflix.hollow.core.schema.HollowSchemaParser

Best Java code snippets using com.netflix.hollow.core.schema.HollowSchemaParser.parseSetSchema (Showing top 1 results out of 315)

origin: Netflix/hollow

private static HollowSchema parseSchema(StreamTokenizer tokenizer) throws IOException {
  int tok = tokenizer.nextToken();
  while(tok != StreamTokenizer.TT_WORD) {
    if(tok == StreamTokenizer.TT_EOF)
      return null;
    tok = tokenizer.nextToken();
  }
  String typeName = tokenizer.sval;
  tok = tokenizer.nextToken();
  if(tok == StreamTokenizer.TT_WORD) {
    if("List".equals(tokenizer.sval)) {
      return parseListSchema(typeName, tokenizer);
    } else if("Set".equals(tokenizer.sval)) {
      return parseSetSchema(typeName, tokenizer);
    } else if("Map".equals(tokenizer.sval)) {
      return parseMapSchema(typeName, tokenizer);
    } else {
      throw new IOException("Invalid syntax: expected one of '{', 'List', 'Set', or 'Map' after type declaration for '" + typeName + "'");
    }
  }
  return parseObjectSchema(typeName, tokenizer);
}
com.netflix.hollow.core.schemaHollowSchemaParserparseSetSchema

Popular methods of HollowSchemaParser

  • parseCollectionOfSchemas
    Parse a collection of HollowSchemas from the provided String.
  • parseSchema
    Parse a single HollowSchema from the provided String.
  • configureTokenizer
  • parseHashKey
  • parseKeyFieldPaths
  • parseListSchema
  • parseMapSchema
  • parseObjectSchema
  • parsePrimaryKey

Popular in Java

  • Making http requests using okhttp
  • setScale (BigDecimal)
  • setRequestProperty (URLConnection)
  • compareTo (BigDecimal)
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now