Tabnine Logo
ValueReaders$StructReader.reader
Code IndexAdd Tabnine to your IDE (free)

How to use
reader
method
in
com.netflix.iceberg.avro.ValueReaders$StructReader

Best Java code snippets using com.netflix.iceberg.avro.ValueReaders$StructReader.reader (Showing top 2 results out of 315)

origin: Netflix/iceberg

@Override
public ValueReader<?> array(Schema array, ValueReader<?> elementReader) {
 if (array.getLogicalType() instanceof LogicalMap) {
  ValueReaders.StructReader<?> keyValueReader = (ValueReaders.StructReader) elementReader;
  ValueReader<?> keyReader = keyValueReader.reader(0);
  ValueReader<?> valueReader = keyValueReader.reader(1);
  if (keyReader == ValueReaders.utf8s()) {
   return ValueReaders.arrayMap(ValueReaders.strings(), valueReader);
  }
  return ValueReaders.arrayMap(keyReader, valueReader);
 }
 return ValueReaders.array(elementReader);
}
origin: Netflix/iceberg

@Override
public ValueReader<?> array(Schema array, ValueReader<?> elementReader) {
 if (array.getLogicalType() instanceof LogicalMap) {
  ValueReaders.StructReader<?> keyValueReader = (ValueReaders.StructReader) elementReader;
  ValueReader<?> keyReader = keyValueReader.reader(0);
  ValueReader<?> valueReader = keyValueReader.reader(1);
  return ValueReaders.arrayMap(keyReader, valueReader);
 }
 return ValueReaders.array(elementReader);
}
com.netflix.iceberg.avroValueReaders$StructReaderreader

Popular methods of ValueReaders$StructReader

  • get
  • reuseOrCreate
  • set

Popular in Java

  • Updating database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • onRequestPermissionsResult (Fragment)
  • getSupportFragmentManager (FragmentActivity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JLabel (javax.swing)
  • Github Copilot alternatives
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