|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.btree.proc.AbstractIndexProcedure
com.bigdata.btree.proc.AbstractKeyArrayIndexProcedure
com.bigdata.btree.proc.BatchInsert
public class BatchInsert
Batch insert operation.
| Nested Class Summary | |
|---|---|
static class |
BatchInsert.BatchInsertConstructor
Factory for BatchInsert procedures. |
| Nested classes/interfaces inherited from class com.bigdata.btree.proc.AbstractKeyArrayIndexProcedure |
|---|
AbstractKeyArrayIndexProcedure.ResultBitBuffer, AbstractKeyArrayIndexProcedure.ResultBitBufferCounter, AbstractKeyArrayIndexProcedure.ResultBitBufferHandler, AbstractKeyArrayIndexProcedure.ResultBuffer, AbstractKeyArrayIndexProcedure.ResultBufferHandler |
| Field Summary |
|---|
| Fields inherited from class com.bigdata.btree.proc.AbstractKeyArrayIndexProcedure |
|---|
DEBUG, log |
| Constructor Summary | |
|---|---|
|
BatchInsert()
De-serialization ctor. |
protected |
BatchInsert(IRabaCoder keysCoder,
IRabaCoder valsCoder,
int fromIndex,
int toIndex,
byte[][] keys,
byte[][] vals,
boolean returnOldValues)
Create a batch insert operation. |
| Method Summary | |
|---|---|
AbstractKeyArrayIndexProcedure.ResultBuffer |
apply(IIndex ndx)
Applies the operator using ISimpleBTree#insert(Object, Object) |
boolean |
getReturnOldValues()
True iff the old values stored under the keys will be returned by apply(IIndex). |
boolean |
isReadOnly()
Return true iff the procedure asserts that it will not
write on the index. |
protected void |
readMetadata(ObjectInput in)
Reads metadata written by AbstractKeyArrayIndexProcedure.writeMetadata(ObjectOutput). |
protected void |
writeMetadata(ObjectOutput out)
Writes metadata (not the keys or values, but just other metadata used by the procedure). |
| Methods inherited from class com.bigdata.btree.proc.AbstractKeyArrayIndexProcedure |
|---|
getKey, getKeyCount, getKeys, getValue, getValues, readExternal, writeExternal |
| Methods inherited from class com.bigdata.btree.proc.AbstractIndexProcedure |
|---|
getKeyBuilder |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BatchInsert()
protected BatchInsert(IRabaCoder keysCoder,
IRabaCoder valsCoder,
int fromIndex,
int toIndex,
byte[][] keys,
byte[][] vals,
boolean returnOldValues)
Batch insert operation of N tuples presented in sorted order. This operation can be very efficient if the tuples are presented sorted by key order.
keys - A series of keys paired to values. Each key is an variable
length unsigned byte[]. The keys MUST be presented in sorted
order.vals - An array of values corresponding to those keys. Null elements
are allowed.returnOldValues - When true the old values for those keys will be
returned by apply(IIndex).BatchInsert.BatchInsertConstructor| Method Detail |
|---|
public boolean getReturnOldValues()
apply(IIndex).
public final boolean isReadOnly()
IIndexProceduretrue iff the procedure asserts that it will not
write on the index. When true, the procedure may be run
against a view of the index that is read-only or which allows concurrent
processes to read on the same index object. When false the
procedure will be run against a mutable view of the index (assuming that
the procedure is executed in a context that has access to a mutable index
view).
isReadOnly in interface IIndexProcedurepublic AbstractKeyArrayIndexProcedure.ResultBuffer apply(IIndex ndx)
ISimpleBTree#insert(Object, Object)
apply in interface IIndexProcedurendx -
null if the old values were not requested
or a ResultBuffer containing the old values.
protected void readMetadata(ObjectInput in)
throws IOException,
ClassNotFoundException
AbstractKeyArrayIndexProcedureAbstractKeyArrayIndexProcedure.writeMetadata(ObjectOutput).
readMetadata in class AbstractKeyArrayIndexProcedureIOException
ClassNotFoundException
protected void writeMetadata(ObjectOutput out)
throws IOException
AbstractKeyArrayIndexProcedure
The default implementation writes out the #getKeysCoder() and the
#getValuesCoder().
writeMetadata in class AbstractKeyArrayIndexProcedureIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||