Tabnine Logo
ATypeTag.toString
Code IndexAdd Tabnine to your IDE (free)

How to use
toString
method
in
org.apache.asterix.om.types.ATypeTag

Best Java code snippets using org.apache.asterix.om.types.ATypeTag.toString (Showing top 4 results out of 315)

origin: apache/asterixdb

  @Override
  public String getConstructor() {
    return getTypeTag().toString().toLowerCase();
  }
}
origin: apache/asterixdb

@Override
public String toString() {
  return getTypeTag().toString();
}
origin: apache/asterixdb

private void checkTypeCompatibility(IAType type) throws AsterixException {
  if (UNSUPPORTED_TYPES.contains(type.getTypeTag())) {
    throw new AsterixException(ErrorCode.TYPE_UNSUPPORTED, JSONDataParserFactory.class.getName(),
        type.getTypeTag().toString());
  } else if (type.getTypeTag() == ATypeTag.ARRAY) {
    checkTypeCompatibility(((AOrderedListType) type).getItemType());
  } else if (type.getTypeTag() == ATypeTag.OBJECT) {
    checkRecordTypeCompatibility((ARecordType) type);
  } else if (type.getTypeTag() == ATypeTag.UNION) {
    checkTypeCompatibility(((AUnionType) type).getActualType());
  }
  //Compatible type
}
origin: apache/asterixdb

public void addFieldType(byte tagId, IARecordBuilder fieldRecordBuilder) throws HyracksDataException {
  ArrayBackedValueStorage fieldAbvs = getTempBuffer();
  ArrayBackedValueStorage valueAbvs = getTempBuffer();
  // Name
  fieldAbvs.reset();
  stringSerde.serialize(typeName, fieldAbvs.getDataOutput());
  // Value
  valueAbvs.reset();
  ATypeTag tag = EnumDeserializer.ATYPETAGDESERIALIZER.deserialize(tagId);
  AMutableString aString = new AMutableString("");
  aString.setValue(tag.toString());
  stringSerde.serialize(aString, valueAbvs.getDataOutput());
  fieldRecordBuilder.addField(fieldAbvs, valueAbvs);
}
org.apache.asterix.om.typesATypeTagtoString

Popular methods of ATypeTag

  • serialize
  • isDerivedType
  • equals
  • ordinal
  • isListType
  • hashCode
  • name
  • values

Popular in Java

  • Reading from database using SQL prepared statement
  • setContentView (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top Sublime Text plugins
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