Class ParsedType

java.lang.Object
com.yahoo.schema.parser.ParsedType

public class ParsedType extends Object
This class holds the extracted information after parsing a type declaration (typically for a field). Since types can be complex, struct names (known or unknown), or even document names, this class is somewhat complicated.
Author:
arnej27959
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • name

      public String name()
    • getVariant

      public ParsedType.Variant getVariant()
    • mapKeyType

      public ParsedType mapKeyType()
    • mapValueType

      public ParsedType mapValueType()
    • nestedType

      public ParsedType nestedType()
    • getCreateIfNonExistent

      public boolean getCreateIfNonExistent()
    • getRemoveIfZero

      public boolean getRemoveIfZero()
    • getReferencedDocumentType

      public ParsedType getReferencedDocumentType()
    • getTensorType

      public com.yahoo.tensor.TensorType getTensorType()
    • getNameOfReferencedAnnotation

      public String getNameOfReferencedAnnotation()
    • mapType

      public static ParsedType mapType(ParsedType kt, ParsedType vt)
    • arrayOf

      public static ParsedType arrayOf(ParsedType vt)
    • wsetOf

      public static ParsedType wsetOf(ParsedType vt)
    • documentRef

      public static ParsedType documentRef(ParsedType docType)
    • annotationRef

      public static ParsedType annotationRef(String name)
    • tensorType

      public static ParsedType tensorType(com.yahoo.tensor.TensorType tType)
    • fromName

      public static ParsedType fromName(String name)
    • documentType

      public static ParsedType documentType(String name)
    • setCreateIfNonExistent

      public void setCreateIfNonExistent(boolean value)
    • setRemoveIfZero

      public void setRemoveIfZero(boolean value)