congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Conversion.fromInt
Code IndexAdd Tabnine to your IDE (free)

How to use
fromInt
method
in
org.apache.avro.Conversion

Best Java code snippets using org.apache.avro.Conversion.fromInt (Showing top 8 results out of 315)

origin: org.apache.avro/avro

case STRING:  return conversion.fromCharSequence((CharSequence) datum, schema, type);
case BYTES:   return conversion.fromBytes((ByteBuffer) datum, schema, type);
case INT:     return conversion.fromInt((Integer) datum, schema, type);
case LONG:    return conversion.fromLong((Long) datum, schema, type);
case FLOAT:   return conversion.fromFloat((Float) datum, schema, type);
origin: apache/avro

case STRING:  return conversion.fromCharSequence((CharSequence) datum, schema, type);
case BYTES:   return conversion.fromBytes((ByteBuffer) datum, schema, type);
case INT:     return conversion.fromInt((Integer) datum, schema, type);
case LONG:    return conversion.fromLong((Long) datum, schema, type);
case FLOAT:   return conversion.fromFloat((Float) datum, schema, type);
origin: org.apache.parquet/parquet-avro

 @Override
 public void add(Object value) {
  parent.add(conversion.fromInt(
    (Integer) value, schema, logicalType));
 }
};
origin: org.apache.parquet/parquet-avro

@Override
public void addShort(short value) {
 wrapped.add(conversion.fromInt((int) value, schema, logicalType));
}
origin: org.apache.parquet/parquet-avro

@Override
public void addByte(byte value) {
 wrapped.add(conversion.fromInt((int) value, schema, logicalType));
}
origin: org.apache.parquet/parquet-avro

@Override
public void addInt(int value) {
 wrapped.add(conversion.fromInt(value, schema, logicalType));
}
origin: org.apache.parquet/parquet-avro

@Override
public void addChar(char value) {
 wrapped.add(conversion.fromInt((int) value, schema, logicalType));
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.avro

case STRING:  return conversion.fromCharSequence((CharSequence) datum, schema, type);
case BYTES:   return conversion.fromBytes((ByteBuffer) datum, schema, type);
case INT:     return conversion.fromInt((Integer) datum, schema, type);
case LONG:    return conversion.fromLong((Long) datum, schema, type);
case FLOAT:   return conversion.fromFloat((Float) datum, schema, type);
org.apache.avroConversionfromInt

Popular methods of Conversion

  • getConvertedType
    Return the Java class representing the logical type.
  • toBytes
  • toFixed
  • fromArray
  • fromBoolean
  • fromBytes
  • fromCharSequence
  • fromDouble
  • fromEnumSymbol
  • fromFixed
  • fromFloat
  • fromLong
  • fromFloat,
  • fromLong,
  • fromMap,
  • fromRecord,
  • toArray,
  • toBoolean,
  • toCharSequence,
  • toDouble,
  • toEnumSymbol

Popular in Java

  • Running tasks concurrently on multiple threads
  • onRequestPermissionsResult (Fragment)
  • putExtra (Intent)
  • runOnUiThread (Activity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • BoxLayout (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top PhpStorm 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