Tabnine Logo
Conversion.toCharSequence
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.apache.avro/avro

 return conversion.toFixed(fromClass.cast(datum), schema, type);
case STRING:
 return conversion.toCharSequence(fromClass.cast(datum), schema, type);
case BYTES:
 return conversion.toBytes(fromClass.cast(datum), schema, type);
origin: apache/avro

 return conversion.toFixed(fromClass.cast(datum), schema, type);
case STRING:
 return conversion.toCharSequence(fromClass.cast(datum), schema, type);
case BYTES:
 return conversion.toBytes(fromClass.cast(datum), schema, type);
origin: org.apache.parquet/parquet-avro

private <D> Object convert(Schema schema, LogicalType logicalType,
              Conversion<D> conversion, Object datum) {
 if (conversion == null) {
  return datum;
 }
 Class<D> fromClass = conversion.getConvertedType();
 switch (schema.getType()) {
  case RECORD:  return conversion.toRecord(fromClass.cast(datum), schema, logicalType);
  case ENUM:    return conversion.toEnumSymbol(fromClass.cast(datum), schema, logicalType);
  case ARRAY:   return conversion.toArray(fromClass.cast(datum), schema, logicalType);
  case MAP:     return conversion.toMap(fromClass.cast(datum), schema, logicalType);
  case FIXED:   return conversion.toFixed(fromClass.cast(datum), schema, logicalType);
  case STRING:  return conversion.toCharSequence(fromClass.cast(datum), schema, logicalType);
  case BYTES:   return conversion.toBytes(fromClass.cast(datum), schema, logicalType);
  case INT:     return conversion.toInt(fromClass.cast(datum), schema, logicalType);
  case LONG:    return conversion.toLong(fromClass.cast(datum), schema, logicalType);
  case FLOAT:   return conversion.toFloat(fromClass.cast(datum), schema, logicalType);
  case DOUBLE:  return conversion.toDouble(fromClass.cast(datum), schema, logicalType);
  case BOOLEAN: return conversion.toBoolean(fromClass.cast(datum), schema, logicalType);
 }
 return datum;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.avro

 return conversion.toFixed(fromClass.cast(datum), schema, type);
case STRING:
 return conversion.toCharSequence(fromClass.cast(datum), schema, type);
case BYTES:
 return conversion.toBytes(fromClass.cast(datum), schema, type);
org.apache.avroConversiontoCharSequence

Popular methods of Conversion

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

Popular in Java

  • Reactive rest calls using spring rest template
  • getContentResolver (Context)
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (Timer)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Top plugins for WebStorm
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