Package org.apache.drill.exec.vector
Class UInt1Vector.BufferedMutator
java.lang.Object
org.apache.drill.exec.vector.UInt1Vector.BufferedMutator
- Enclosing class:
- UInt1Vector
Helper class to buffer container mutation as a means to optimize native memory copy operations.
NB: this class is automatically generated from ValueVectorTypes.tdd using FreeMarker.
-
Constructor Summary
ConstructorDescriptionBufferedMutator
(int startIdx, int buffSz, UInt1Vector parent) Buffered mutator to optimize bulk access to the underlying vector containerBufferedMutator
(int startIdx, UInt1Vector parent) -
Method Summary
-
Constructor Details
-
BufferedMutator
-
BufferedMutator
Buffered mutator to optimize bulk access to the underlying vector container- Parameters:
startIdx
- start idex of the first value to be copiedbuffSz
- buffer length to usparent
- parent container object
-
-
Method Details
-
setSafe
public void setSafe(byte value) -
setSafe
public void setSafe(byte[] values, int numValues) -
getByteBuffer
- Returns:
- the backing byte buffer; this is useful when the caller can infer the values to write but wants to avoid having to use yet another intermediary byte array; caller is responsible for flushing the buffer
-
flush
public void flush()
-