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

How to use
getPath
method
in
org.apache.parquet.io.PrimitiveColumnIO

Best Java code snippets using org.apache.parquet.io.PrimitiveColumnIO.getPath (Showing top 4 results out of 315)

origin: io.prestosql/presto-parquet

private static int getPathIndex(List<PrimitiveColumnIO> columns, List<String> path)
{
  int maxLevel = path.size();
  int index = -1;
  for (int columnIndex = 0; columnIndex < columns.size(); columnIndex++) {
    ColumnIO[] fields = columns.get(columnIndex).getPath();
    if (fields.length <= maxLevel) {
      continue;
    }
    if (fields[maxLevel].getName().equalsIgnoreCase(path.get(maxLevel - 1))) {
      boolean match = true;
      for (int level = 0; level < maxLevel - 1; level++) {
        if (!fields[level + 1].getName().equalsIgnoreCase(path.get(level))) {
          match = false;
        }
      }
      if (match) {
        index = columnIndex;
      }
    }
  }
  return index;
}
origin: prestosql/presto

private static int getPathIndex(List<PrimitiveColumnIO> columns, List<String> path)
{
  int maxLevel = path.size();
  int index = -1;
  for (int columnIndex = 0; columnIndex < columns.size(); columnIndex++) {
    ColumnIO[] fields = columns.get(columnIndex).getPath();
    if (fields.length <= maxLevel) {
      continue;
    }
    if (fields[maxLevel].getName().equalsIgnoreCase(path.get(maxLevel - 1))) {
      boolean match = true;
      for (int level = 0; level < maxLevel - 1; level++) {
        if (!fields[level + 1].getName().equalsIgnoreCase(path.get(level))) {
          match = false;
        }
      }
      if (match) {
        index = columnIndex;
      }
    }
  }
  return index;
}
origin: org.apache.parquet/parquet-column

final ColumnIO[] path = states[i].primitiveColumnIO.getPath();
int depth = 0;
for (int d = 0; d < definitionLevelToDepth.length; ++d) {
origin: org.lasersonlab.apache.parquet/parquet-column

final ColumnIO[] path = states[i].primitiveColumnIO.getPath();
int depth = 0;
for (int d = 0; d < definitionLevelToDepth.length; ++d) {
org.apache.parquet.ioPrimitiveColumnIOgetPath

Popular methods of PrimitiveColumnIO

  • getColumnDescriptor
  • getId
  • getType
  • <init>
  • getDefinitionLevel
  • getFieldPath
  • getFirst
  • getIndexFieldPath
  • getLast
  • getParent
  • getRepetitionLevel
  • isFirst
  • getRepetitionLevel,
  • isFirst,
  • isLast,
  • toString

Popular in Java

  • Updating database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Collectors (java.util.stream)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Sublime Text for Python
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