Tabnine Logo
ValueVector.getMinorType
Code IndexAdd Tabnine to your IDE (free)

How to use
getMinorType
method
in
org.apache.arrow.vector.ValueVector

Best Java code snippets using org.apache.arrow.vector.ValueVector.getMinorType (Showing top 4 results out of 315)

origin: dremio/dremio-oss

private void initFieldWriters() throws IOException {
 fieldConverters = Lists.newArrayList();
 try {
  int fieldId = 0;
  for (VectorWrapper w : batch) {
   if (w.getField().getName().equalsIgnoreCase(WriterPrel.PARTITION_COMPARATOR_FIELD)) {
    continue;
   }
   FieldReader reader = w.getValueVector().getReader();
   FieldConverter converter = getConverter(recordWriter, fieldId, w.getField().getName(),
     w.getValueVector().getMinorType(), reader);
   if (converter != null) {
    fieldId++;
    fieldConverters.add(converter);
   }
  }
 } catch(Exception e) {
  logger.error("Failed to create FieldWriter.", e);
  throw new IOException("Failed to initialize FieldWriters.", e);
 }
}
origin: org.apache.arrow/arrow-vector

private void setWriter(ValueVector v, ArrowType arrowType) {
 state = State.SINGLE;
 vector = v;
 type = v.getMinorType();
 this.arrowType = arrowType;
 switch (type) {
  case STRUCT:
   writer = nullableStructWriterFactory.build((StructVector) vector);
   break;
  case LIST:
   writer = new UnionListWriter((ListVector) vector, nullableStructWriterFactory);
   break;
  case UNION:
   writer = new UnionWriter((UnionVector) vector, nullableStructWriterFactory);
   break;
  default:
   writer = type.getNewFieldWriter(vector);
   break;
 }
}
origin: org.apache.arrow/arrow-vector

validateType(vector.getMinorType());
origin: org.apache.arrow/arrow-vector

private FieldWriter promoteToUnion() {
 String name = vector.getField().getName();
 TransferPair tp = vector.getTransferPair(vector.getMinorType().name().toLowerCase(), vector.getAllocator());
 tp.transfer();
 if (parentContainer != null) {
  // TODO allow dictionaries in complex types
  unionVector = parentContainer.addOrGetUnion(name);
  unionVector.allocateNew();
 } else if (listVector != null) {
  unionVector = listVector.promoteToUnion();
 }
 unionVector.addVector((FieldVector) tp.getTo());
 writer = new UnionWriter(unionVector, nullableStructWriterFactory);
 writer.setPosition(idx());
 for (int i = 0; i <= idx(); i++) {
  unionVector.setType(i, vector.getMinorType());
 }
 vector = null;
 state = State.UNION;
 return writer;
}
org.apache.arrow.vectorValueVectorgetMinorType

Popular methods of ValueVector

  • getField
    Get information about how this field is materialized.
  • getObject
    Get friendly type object from the vector.
  • isNull
    Check whether an element in the vector is null.
  • setValueCount
    Set number of values in the vector.
  • allocateNew
    Allocate new buffers. ValueVector implements logic to determine how much to allocate.
  • clear
    Release any owned ArrowBuf and reset the ValueVector to the initial state. If the vector has any chi
  • close
    Alternative to clear(). Allows use as an AutoCloseable in try-with-resources.
  • getValueCount
    Gets the number of values.
  • allocateNewSafe
    Allocates new buffers. ValueVector implements logic to determine how much to allocate.
  • getBufferSize
    Get the number of bytes used by this vector.
  • getBufferSizeFor
    Returns the number of bytes that is used by this vector if it holds the given number of values. The
  • getBuffers
    Return the underlying buffers associated with this vector. Note that this doesn't impact the referen
  • getBufferSizeFor,
  • getBuffers,
  • getNullCount,
  • getReader,
  • getTransferPair,
  • setInitialCapacity,
  • getAllocator,
  • getDataBuffer,
  • getValidityBuffer

Popular in Java

  • Making http requests using okhttp
  • getSharedPreferences (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (Timer)
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • BoxLayout (javax.swing)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top Sublime Text plugins
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