Constructor and Description |
---|
BufferedMutator(int startIdx,
int buffSz,
IntVector parent)
Buffered mutator to optimize bulk access to the underlying vector container
|
BufferedMutator(int startIdx,
IntVector parent) |
Modifier and Type | Method and Description |
---|---|
void |
flush() |
ByteBuffer |
getByteBuffer() |
void |
setSafe(int value) |
void |
setSafe(int[] values,
int numValues) |
static void |
writeInt(int val,
byte[] buffer,
int pos) |
public BufferedMutator(int startIdx, IntVector parent)
#BufferedMutator(int startIdx, int buffSz, IntVector parent)}
public BufferedMutator(int startIdx, int buffSz, IntVector parent)
startIdx
- start idex of the first value to be copiedbuffSz
- buffer length to usparent
- parent container objectpublic void setSafe(int value)
public void setSafe(int[] values, int numValues)
public static final void writeInt(int val, byte[] buffer, int pos)
public ByteBuffer getByteBuffer()
public void flush()
Copyright © 1970 The Apache Software Foundation. All rights reserved.