|
Xpace
|
#include <table_j.h>
Public Member Functions | |
| virtual uint | add (const String &name, DerivedDataType type, uint column=~0, bool *added=0) override |
| Add a column by name. More... | |
| virtual bool | setCount (uint64 count) override |
| Inform the Sink how many documents/records/rows to expect. More... | |
| virtual int64 | start (uint64 row) override |
| Begin a new document/record/row, committing current one (if any) More... | |
| virtual bool | set (uint column, int64 value) override |
| Write an int64. More... | |
| virtual bool | set (uint column, const Xpace::DecimalFloat &value) override |
| Add a DecimalFloat. More... | |
| virtual bool | set (uint column, const Xpace::String8 &value) override |
| Add a String8. More... | |
| virtual bool | set (uint column, const Xpace::String16 &value) override |
| Add a String16. More... | |
| virtual bool | set (uint column, const Xpace::BytesRef &value) override |
| Add a BytesRef. More... | |
| virtual bool | set (uint column, const Xpace::DateTime &value) |
| Add a DateTime. More... | |
| virtual void | close () override |
| We're finshed with this Sink. More... | |
Public Member Functions inherited from Xpace::Sink< uint > | |
| virtual uint | add (const Configuration &config, uintlocation, bool *added=0) |
| Add a field from a Configuration. More... | |
| virtual bool | move (uintlocation) |
| Move without setting data. More... | |
Public Member Functions inherited from Xpace::SinkBase | |
| virtual | ~SinkBase () |
Static Public Member Functions | |
| static std::unique_ptr< Table::Sink > | create (JNIEnv *jnienv, jobject jsink) |
Additional Inherited Members | |
Protected Member Functions inherited from Xpace::SinkBase | |
| SinkBase () | |
|
static |
|
inlineoverridevirtual |
Add a column by name.
| name | the name of the column |
| type | the type of the column |
| columnNum | a proposed column number |
| added | true iff the field or column was added |
Implements Xpace::Table::Sink.
Definition at line 32 of file table_j.h.
References added, Xpace::BaseDataType::btInt, Xpace::BaseDataType::btUint, column, convert_pass(), and setCount().
Inform the Sink how many documents/records/rows to expect.
| docs | the number of documents/records/rows |
Reimplemented from Xpace::SinkBase.
Definition at line 51 of file table_j.h.
References convert_pass(), and start().
Referenced by add().
Begin a new document/record/row, committing current one (if any)
| docNum | a suggested document |
Reimplemented from Xpace::SinkBase.
Definition at line 58 of file table_j.h.
References convert_pass().
Referenced by setCount().
Write an int64.
| location | |
| value |
Reimplemented from Xpace::Sink< uint >.
Definition at line 65 of file table_j.h.
References convert_pass(), and value.
|
inlineoverridevirtual |
Add a DecimalFloat.
| location | |
| value |
Reimplemented from Xpace::Sink< uint >.
Definition at line 74 of file table_j.h.
References convert_pass(), and value.
|
inlineoverridevirtual |
Add a String8.
| location | |
| value |
Reimplemented from Xpace::Sink< uint >.
Definition at line 84 of file table_j.h.
References convert_pass(), and value.
|
inlineoverridevirtual |
Add a String16.
| location | |
| value |
Reimplemented from Xpace::Sink< uint >.
Definition at line 92 of file table_j.h.
References convert_pass(), and value.
|
inlineoverridevirtual |
Add a BytesRef.
| location | |
| value |
Reimplemented from Xpace::Sink< uint >.
Definition at line 100 of file table_j.h.
References convert_pass(), and value.
|
inlinevirtual |
Add a DateTime.
| location | |
| value |
Reimplemented from Xpace::Sink< uint >.
Definition at line 108 of file table_j.h.
References close(), convert_pass(), and value.
|
inlineoverridevirtual |
We're finshed with this Sink.
Reimplemented from Xpace::SinkBase.
Definition at line 125 of file table_j.h.
Referenced by set().