congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ColumnIO.getRepetitionLevel
Code IndexAdd Tabnine to your IDE (free)

How to use
getRepetitionLevel
method
in
org.apache.parquet.io.ColumnIO

Best Java code snippets using org.apache.parquet.io.ColumnIO.getRepetitionLevel (Showing top 6 results out of 315)

origin: org.lasersonlab.apache.parquet/parquet-column

private void setRepetitionLevel() {
 r[currentLevel] = currentColumnIO.getRepetitionLevel();
 if (DEBUG) log("r: {}", r[currentLevel]);
}
origin: org.apache.parquet/parquet-column

private void setRepetitionLevel() {
 r[currentLevel] = currentColumnIO.getRepetitionLevel();
 if (DEBUG) log("r: {}", r[currentLevel]);
}
origin: org.apache.parquet/parquet-column

private void printState() {
 if (DEBUG) {
  log(currentLevel + ", " + fieldsWritten[currentLevel] + ": " + Arrays.toString(currentColumnIO.getFieldPath()) + " r:" + r[currentLevel]);
  if (r[currentLevel] > currentColumnIO.getRepetitionLevel()) {
   // sanity check
   throw new InvalidRecordException(r[currentLevel] + "(r) > " + currentColumnIO.getRepetitionLevel() + " ( schema r)");
  }
 }
}
origin: org.lasersonlab.apache.parquet/parquet-column

private void printState() {
 if (DEBUG) {
  log(currentLevel + ", " + fieldsWritten[currentLevel] + ": " + Arrays.toString(currentColumnIO.getFieldPath()) + " r:" + r[currentLevel]);
  if (r[currentLevel] > currentColumnIO.getRepetitionLevel()) {
   // sanity check
   throw new InvalidRecordException(r[currentLevel] + "(r) > " + currentColumnIO.getRepetitionLevel() + " ( schema r)");
  }
 }
}
origin: org.lasersonlab.apache.parquet/parquet-column

ColumnIO getParent(int r) {
 if (getRepetitionLevel() == r && getType().isRepetition(Repetition.REPEATED)) {
  return this;
 } else  if (getParent()!=null && getParent().getDefinitionLevel()>=r) {
  return getParent().getParent(r);
 } else {
  throw new InvalidRecordException("no parent("+r+") for "+Arrays.toString(this.getFieldPath()));
 }
}
origin: org.apache.parquet/parquet-column

ColumnIO getParent(int r) {
 if (getRepetitionLevel() == r && getType().isRepetition(Repetition.REPEATED)) {
  return this;
 } else  if (getParent()!=null && getParent().getDefinitionLevel()>=r) {
  return getParent().getParent(r);
 } else {
  throw new InvalidRecordException("no parent("+r+") for "+Arrays.toString(this.getFieldPath()));
 }
}
org.apache.parquet.ioColumnIOgetRepetitionLevel

Popular methods of ColumnIO

  • getType
  • getIndex
  • getParent
  • getColumnNames
  • getDefinitionLevel
  • getFieldPath
  • getFirst
  • getLast
  • getName
  • setDefinitionLevel
  • setFieldPath
  • setLevels
  • setFieldPath,
  • setLevels,
  • setRepetitionLevel

Popular in Java

  • Running tasks concurrently on multiple threads
  • getApplicationContext (Context)
  • getResourceAsStream (ClassLoader)
  • onRequestPermissionsResult (Fragment)
  • Permission (java.security)
    Legacy security code; do not use.
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Join (org.hibernate.mapping)
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now