Codota Logo
DataFileReader.nextBlock
Code IndexAdd Codota to your IDE (free)

How to use
nextBlock
method
in
org.apache.avro.file.DataFileReader

Best Java code snippets using org.apache.avro.file.DataFileReader.nextBlock (Showing top 3 results out of 315)

  • Common ways to obtain DataFileReader
private void myMethod () {
DataFileReader d =
  • Codota IconFile file;DatumReader reader;new DataFileReader<>(file, reader)
  • Codota IconSeekableInput sin;DatumReader reader;new DataFileReader<>(sin, reader)
  • Codota IconSeekableInput sin;new DataFileReader<>(sin, new GenericDatumReader<Void>())
  • Smart code suggestions by Codota
}
origin: apache/avro

public boolean next(TetherData data, NullWritable ignore)
 throws IOException {
 if (!reader.hasNext() || reader.pastSync(end))
  return false;
 data.buffer(reader.nextBlock());
 data.count((int)reader.getBlockCount());
 return true;
}
origin: org.apache.avro/avro-mapred

public boolean next(TetherData data, NullWritable ignore)
 throws IOException {
 if (!reader.hasNext() || reader.pastSync(end))
  return false;
 data.buffer(reader.nextBlock());
 data.count((int)reader.getBlockCount());
 return true;
}
origin: org.apache.cassandra.deps/avro

public boolean next(TetherData data, NullWritable ignore)
 throws IOException {
 if (!reader.hasNext() || reader.pastSync(end))
  return false;
 data.buffer(reader.nextBlock());
 data.count((int)reader.getBlockCount());
 return true;
}

org.apache.avro.fileDataFileReadernextBlock

Popular methods of DataFileReader

  • <init>
    Construct a reader for a file.
  • next
  • hasNext
  • close
  • openReader
    Construct a reader for a file at the current position of the input, without reading the header.
  • getSchema
  • sync
    Move to the next synchronization point after a position. To process a range of file entires, call th
  • previousSync
    Return the last synchronization point before our current position.
  • seek
    Move to a specific, known synchronization point, one returned from DataFileWriter#sync() while writi
  • pastSync
    Return true if past the next synchronization point after a position.
  • getMeta
  • getMetaString
  • getMeta,
  • getMetaString,
  • getHeader,
  • getBlockCount,
  • initialize,
  • iterator,
  • blockFinished,
  • getBlockSize,
  • getMetaKeys

Popular in Java

  • Making http post requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • onCreateOptionsMenu (Activity)
  • putExtra (Intent)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Socket (java.net)
    Provides a client-side TCP socket.
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JButton (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now