Codota Logo
PrimitiveColumnIO.getColumnDescriptor
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: io.prestosql/presto-parquet

public static Optional<RichColumnDescriptor> getDescriptor(List<PrimitiveColumnIO> columns, List<String> path)
{
  checkArgument(path.size() >= 1, "Parquet nested path should have at least one component");
  int index = getPathIndex(columns, path);
  if (index == -1) {
    return Optional.empty();
  }
  PrimitiveColumnIO columnIO = columns.get(index);
  return Optional.of(new RichColumnDescriptor(columnIO.getColumnDescriptor(), columnIO.getType().asPrimitiveType()));
}
origin: prestosql/presto

public static Optional<RichColumnDescriptor> getDescriptor(List<PrimitiveColumnIO> columns, List<String> path)
{
  checkArgument(path.size() >= 1, "Parquet nested path should have at least one component");
  int index = getPathIndex(columns, path);
  if (index == -1) {
    return Optional.empty();
  }
  PrimitiveColumnIO columnIO = columns.get(index);
  return Optional.of(new RichColumnDescriptor(columnIO.getColumnDescriptor(), columnIO.getType().asPrimitiveType()));
}
origin: org.apache.parquet/parquet-column

public IncrementallyUpdatedFilterPredicateBuilderBase(List<PrimitiveColumnIO> leaves) {
 for (PrimitiveColumnIO leaf : leaves) {
  ColumnDescriptor descriptor = leaf.getColumnDescriptor();
  ColumnPath path = ColumnPath.get(descriptor.getPath());
  PrimitiveComparator<?> comparator = descriptor.getPrimitiveType().comparator();
  comparatorsByColumn.put(path, comparator);
 }
}
origin: org.lasersonlab.apache.parquet/parquet-column

public IncrementallyUpdatedFilterPredicateBuilderBase(List<PrimitiveColumnIO> leaves) {
 for (PrimitiveColumnIO leaf : leaves) {
  ColumnDescriptor descriptor = leaf.getColumnDescriptor();
  ColumnPath path = ColumnPath.get(descriptor.getPath());
  PrimitiveComparator<?> comparator = descriptor.getPrimitiveType().comparator();
  comparatorsByColumn.put(path, comparator);
 }
}
origin: org.apache.parquet/parquet-column

public MessageColumnIORecordConsumer(ColumnWriteStore columns) {
 this.columns = columns;
 int maxDepth = 0;
 this.columnWriter = new ColumnWriter[MessageColumnIO.this.getLeaves().size()];
 for (PrimitiveColumnIO primitiveColumnIO : MessageColumnIO.this.getLeaves()) {
  ColumnWriter w = columns.getColumnWriter(primitiveColumnIO.getColumnDescriptor());
  maxDepth = Math.max(maxDepth, primitiveColumnIO.getFieldPath().length);
  columnWriter[primitiveColumnIO.getId()] = w;
  buildGroupToLeafWriterMap(primitiveColumnIO, w);
 }
 fieldsWritten = new FieldsMarker[maxDepth];
 for (int i = 0; i < maxDepth; i++) {
  fieldsWritten[i] = new FieldsMarker();
 }
 r = new int[maxDepth];
}
origin: org.lasersonlab.apache.parquet/parquet-column

public MessageColumnIORecordConsumer(ColumnWriteStore columns) {
 this.columns = columns;
 int maxDepth = 0;
 this.columnWriter = new ColumnWriter[MessageColumnIO.this.getLeaves().size()];
 for (PrimitiveColumnIO primitiveColumnIO : MessageColumnIO.this.getLeaves()) {
  ColumnWriter w = columns.getColumnWriter(primitiveColumnIO.getColumnDescriptor());
  maxDepth = Math.max(maxDepth, primitiveColumnIO.getFieldPath().length);
  columnWriter[primitiveColumnIO.getId()] = w;
  buildGroupToLeafWriterMap(primitiveColumnIO, w);
 }
 fieldsWritten = new FieldsMarker[maxDepth];
 for (int i = 0; i < maxDepth; i++) {
  fieldsWritten[i] = new FieldsMarker();
 }
 r = new int[maxDepth];
}
origin: prestosql/presto

private void initializeColumnReaders()
{
  for (PrimitiveColumnIO columnIO : columns) {
    RichColumnDescriptor column = new RichColumnDescriptor(columnIO.getColumnDescriptor(), columnIO.getType().asPrimitiveType());
    columnReaders[columnIO.getId()] = PrimitiveColumnReader.createReader(column);
  }
}
origin: io.prestosql/presto-parquet

private void initializeColumnReaders()
{
  for (PrimitiveColumnIO columnIO : columns) {
    RichColumnDescriptor column = new RichColumnDescriptor(columnIO.getColumnDescriptor(), columnIO.getType().asPrimitiveType());
    columnReaders[columnIO.getId()] = PrimitiveColumnReader.createReader(column);
  }
}
origin: org.lasersonlab.apache.parquet/parquet-column

@Override
public Converter getConverter(int fieldIndex) {
 // get the real converter from the delegate
 Converter delegateConverter = checkNotNull(delegate.getConverter(fieldIndex), "delegate converter");
 // determine the indexFieldPath for the converter proxy we're about to make, which is
 // this converter's path + the requested fieldIndex
 List<Integer> newIndexFieldPath = new ArrayList<Integer>(indexFieldPath.size() + 1);
 newIndexFieldPath.addAll(indexFieldPath);
 newIndexFieldPath.add(fieldIndex);
 if (delegateConverter.isPrimitive()) {
  PrimitiveColumnIO columnIO = getColumnIO(newIndexFieldPath);
  ColumnPath columnPath = ColumnPath.get(columnIO.getColumnDescriptor().getPath());
  ValueInspector[] valueInspectors = getValueInspectors(columnPath);
  return new FilteringPrimitiveConverter(delegateConverter.asPrimitiveConverter(), valueInspectors);
 } else {
  return new FilteringGroupConverter(delegateConverter.asGroupConverter(), newIndexFieldPath, valueInspectorsByColumn, columnIOsByIndexFieldPath);
 }
}
origin: org.apache.parquet/parquet-column

@Override
public Converter getConverter(int fieldIndex) {
 // get the real converter from the delegate
 Converter delegateConverter = checkNotNull(delegate.getConverter(fieldIndex), "delegate converter");
 // determine the indexFieldPath for the converter proxy we're about to make, which is
 // this converter's path + the requested fieldIndex
 List<Integer> newIndexFieldPath = new ArrayList<Integer>(indexFieldPath.size() + 1);
 newIndexFieldPath.addAll(indexFieldPath);
 newIndexFieldPath.add(fieldIndex);
 if (delegateConverter.isPrimitive()) {
  PrimitiveColumnIO columnIO = getColumnIO(newIndexFieldPath);
  ColumnPath columnPath = ColumnPath.get(columnIO.getColumnDescriptor().getPath());
  ValueInspector[] valueInspectors = getValueInspectors(columnPath);
  return new FilteringPrimitiveConverter(delegateConverter.asPrimitiveConverter(), valueInspectors);
 } else {
  return new FilteringGroupConverter(delegateConverter.asGroupConverter(), newIndexFieldPath, valueInspectorsByColumn, columnIOsByIndexFieldPath);
 }
}
origin: prestosql/presto

RichColumnDescriptor column = new RichColumnDescriptor(primitiveColumnIO.getColumnDescriptor(), columnIO.getType().asPrimitiveType());
return Optional.of(new PrimitiveField(type, repetitionLevel, definitionLevel, required, column, primitiveColumnIO.getId()));
origin: org.apache.parquet/parquet-column

columnReaders[i] = columnStore.getColumnReader(leafColumnIO.getColumnDescriptor());
int maxRepetitionLevel = leafColumnIO.getRepetitionLevel();
nextColumnIdxForRepLevel[i] = new int[maxRepetitionLevel+1];
origin: org.lasersonlab.apache.parquet/parquet-column

columnReaders[i] = columnStore.getColumnReader(leafColumnIO.getColumnDescriptor());
int maxRepetitionLevel = leafColumnIO.getRepetitionLevel();
nextColumnIdxForRepLevel[i] = new int[maxRepetitionLevel+1];
org.apache.parquet.ioPrimitiveColumnIOgetColumnDescriptor

Popular methods of PrimitiveColumnIO

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

Popular in Java

  • Reading from database using SQL prepared statement
  • putExtra (Intent)
  • setContentView (Activity)
  • getContentResolver (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Join (org.hibernate.mapping)
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