|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.query.up.primitives.Operation
org.basex.query.up.primitives.BasicOperation
org.basex.query.up.primitives.DBNew
public abstract class DBNew
Update primitive for adding documents to databases.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.basex.query.up.primitives.BasicOperation |
---|
BasicOperation.TYPE |
Field Summary | |
---|---|
protected static java.lang.Object[][] |
B_OPT
Boolean index options. |
protected java.util.List<NewInput> |
inputs
Inputs to add. |
protected static byte[][] |
K_B_OPT
Keys of boolean index options. |
protected static byte[][] |
K_N_OPT
Keys of numeric index options. |
protected static byte[][] |
K_S_OPT
Keys of numeric index options. |
protected Data |
md
Insertion sequence. |
protected static java.lang.Object[][] |
N_OPT
Numeric index options. |
protected TokenMap |
options
Optimization options. |
protected QueryContext |
qc
Query context. |
protected static java.lang.Object[][] |
S_OPT
String index options. |
Fields inherited from class org.basex.query.up.primitives.BasicOperation |
---|
type |
Fields inherited from class org.basex.query.up.primitives.Operation |
---|
data, info |
Constructor Summary | |
---|---|
DBNew(BasicOperation.TYPE t,
Data d,
QueryContext c,
InputInfo ii)
Constructor. |
Method Summary | |
---|---|
protected void |
addDocs(MemData dt,
java.lang.String name)
Inserts all documents to be added to a temporary database. |
protected void |
assignOptions()
Assigns indexing options. |
protected void |
check(boolean create)
Checks the validity of the assigned database options. |
protected void |
resetOptions()
Restores original indexing options. |
protected void |
set(Prop prop,
int[] nums,
boolean[] bools,
java.lang.String[] strs)
Assigns the specified options. |
Methods inherited from class org.basex.query.up.primitives.BasicOperation |
---|
apply, compareTo, getData, getInfo, getTargetNode, merge, prepare |
Methods inherited from class org.basex.query.up.primitives.Operation |
---|
size |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.Object[][] N_OPT
protected static final java.lang.Object[][] B_OPT
protected static final java.lang.Object[][] S_OPT
protected static final byte[][] K_N_OPT
protected static final byte[][] K_B_OPT
protected static final byte[][] K_S_OPT
protected final QueryContext qc
protected java.util.List<NewInput> inputs
protected TokenMap options
protected Data md
Constructor Detail |
---|
public DBNew(BasicOperation.TYPE t, Data d, QueryContext c, InputInfo ii)
t
- type of updated
- target databasec
- query contextii
- input infoMethod Detail |
---|
protected final void addDocs(MemData dt, java.lang.String name) throws QueryException
dt
- target databasename
- name of database
QueryException
- query exceptionprotected final void check(boolean create) throws QueryException
create
- create or optimize database
QueryException
- query exceptionprotected void assignOptions()
protected void resetOptions()
protected void set(Prop prop, int[] nums, boolean[] bools, java.lang.String[] strs)
prop
- propertiesnums
- numbersbools
- booleansstrs
- strings
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |