public class Tables extends Object implements Serializable
Constructor and Description |
---|
Tables()
Initialize empty collection of Tables.
|
Tables(Table[] tables)
Initialize a collection of timeseries Tables.
|
Modifier and Type | Method and Description |
---|---|
Tables |
add(Session session,
String name)
Returns a copy of this collection with the new table added.
|
Tables |
add(Table table)
Returns a copy of this collection with the new table added.
|
static AutoFlushWriter |
asyncAutoFlushWriter(Session session,
Table[] tables)
Initializes new writer for timeseries tables that periodically flushes
its local cache, and makes use of high-speed buffered writes.
|
static AutoFlushWriter |
asyncAutoFlushWriter(Session session,
Table[] tables,
long threshold)
Initializes new writer for timeseries tables that periodically flushes
its local cache, and makes use of high-speed buffered writes.
|
static AutoFlushWriter |
asyncAutoFlushWriter(Session session,
Tables tables)
Initializes new writer for timeseries tables that periodically flushes
its local cache, and makes use of high-speed buffered writes.
|
static AutoFlushWriter |
asyncAutoFlushWriter(Session session,
Tables tables,
long threshold)
Initializes new writer for timeseries tables that periodically flushes
its local cache, and makes use of high-speed buffered writes.
|
static Writer |
asyncWriter(Session session,
Table[] tables)
Initializes new writer for timeseries table using hgih-speed
buffered writes.
|
static Writer |
asyncWriter(Session session,
Tables tables)
Initializes new writer for timeseries table using high-speed
buffered writes.
|
static AutoFlushWriter |
autoFlushWriter(Session session,
Table[] tables)
Initializes new writer for timeseries tables that periodically flushes
its local cache.
|
static AutoFlushWriter |
autoFlushWriter(Session session,
Table[] tables,
long threshold)
Initializes new writer for timeseries tables that periodically flushes
its local cache.
|
static AutoFlushWriter |
autoFlushWriter(Session session,
Tables tables)
Initializes new writer for timeseries tables that periodically flushes
its local cache.
|
static AutoFlushWriter |
autoFlushWriter(Session session,
Tables tables,
long threshold)
Initializes new writer for timeseries tables that periodically flushes
its local cache.
|
static Writer |
expAsyncWriter(Session session,
Table[] tables)
Initializes new, experimental exp columns writer for timeseries tables.
|
static Writer |
expAsyncWriter(Session session,
Tables tables)
Initializes new, experimental exp columns writer for timeseries tables.
|
static Writer |
expFastWriter(Session session,
Table[] tables)
Initializes new writer for timeseries tables that makes use of
in-place updates rather than copy-on-write.
|
static Writer |
expFastWriter(Session session,
Tables tables)
Initializes new writer for timeseries tables that makes use of
in-place updates rather than copy-on-write.
|
static Writer |
expTruncateWriter(Session session,
Table[] tables)
Initializes new, experimental exp columns writer for timeseries tables.
|
static Writer |
expTruncateWriter(Session session,
Tables tables)
Initializes new, experimental exp columns writer for timeseries tables.
|
static Writer |
expWriter(Session session,
Table[] tables)
Initializes new, experimental writer for timeseries tables.
|
static Writer |
expWriter(Session session,
Table[] tables,
Writer.PushMode mode)
Initializes new, experimental exp columns writer for timeseries tables.
|
static Writer |
expWriter(Session session,
Tables tables)
Initializes new, experimental writer for timeseries tables.
|
static Writer |
expWriter(Session session,
Tables tables,
Writer.PushMode mode)
Initializes new, experimental writer for timeseries tables.
|
static AutoFlushWriter |
fastAutoFlushWriter(Session session,
Table[] tables)
Initializes new writer for timeseries tables that periodically flushes
its local cache, and makes use of high-speed in-place writes.
|
static AutoFlushWriter |
fastAutoFlushWriter(Session session,
Table[] tables,
long threshold)
Initializes new writer for timeseries tables that periodically flushes
its local cache, and makes use of high-speed in-place writes.
|
static AutoFlushWriter |
fastAutoFlushWriter(Session session,
Tables tables)
Initializes new writer for timeseries tables that periodically flushes
its local cache, and makes use of high-speed in-place writes.
|
static AutoFlushWriter |
fastAutoFlushWriter(Session session,
Tables tables,
long threshold)
Initializes new writer for timeseries tables that periodically flushes
its local cache, and makes use of high-speed in-place writes.
|
static Writer |
fastWriter(Session session,
Table[] tables)
Initializes new writer for timeseries tables that makes use of
in-place updates rather than copy-on-write.
|
static Writer |
fastWriter(Session session,
Tables tables)
Initializes new writer for timeseries tables that makes use of
in-place updates rather than copy-on-write.
|
protected Table[] |
getTables()
Provides access to the internal #Table collection.
|
boolean |
hasTableWithName(String tableName)
Returns true when the collection contains a table with a certain name.
|
static Tables |
ofTag(Session session,
String tag) |
static Writer |
pinnedAsyncWriter(Session session,
Table[] tables)
Initializes new, experimental pinned columns writer for timeseries tables.
|
static Writer |
pinnedAsyncWriter(Session session,
Tables tables)
Initializes new, experimental pinned columns writer for timeseries tables.
|
static Writer |
pinnedFastWriter(Session session,
Table[] tables)
Initializes new writer for timeseries tables that makes use of
in-place updates rather than copy-on-write.
|
static Writer |
pinnedFastWriter(Session session,
Tables tables)
Initializes new writer for timeseries tables that makes use of
in-place updates rather than copy-on-write.
|
static Writer |
pinnedTruncateWriter(Session session,
Table[] tables)
Initializes new, experimental pinned columns writer for timeseries tables.
|
static Writer |
pinnedTruncateWriter(Session session,
Tables tables)
Initializes new, experimental pinned columns writer for timeseries tables.
|
static Writer |
pinnedWriter(Session session,
Table[] tables)
Initializes new, experimental pinned columns writer for timeseries tables.
|
static Writer |
pinnedWriter(Session session,
Table[] tables,
Writer.PushMode mode)
Initializes new, experimental pinned columns writer for timeseries tables.
|
static Writer |
pinnedWriter(Session session,
Tables tables)
Initializes new, experimental pinned columns writer for timeseries tables.
|
static Writer |
pinnedWriter(Session session,
Tables tables,
Writer.PushMode mode)
Initializes new, experimental pinned columns writer for timeseries tables.
|
int |
size()
Returns the number of tables in this collection.
|
String |
toString() |
static Writer |
truncateWriter(Session session,
Table[] tables)
Initializes new writer for a single table that replaces any
existing data with the new data, rather than just adding.
|
static Writer |
truncateWriter(Session session,
Tables tables)
Initializes new writer for a single table that replaces any
existing data with the new data, rather than just adding.
|
static Writer |
writer(Session session,
Table[] tables)
Initializes new writer for timeseries table.
|
static Writer |
writer(Session session,
Table[] tables,
Writer.PushMode mode)
Initializes new writer for timeseries table.
|
static Writer |
writer(Session session,
Tables tables)
Initializes new writer for timeseries table.
|
static Writer |
writer(Session session,
Tables tables,
Writer.PushMode mode)
Initializes new writer for timeseries table.
|
public Tables()
public Tables(Table[] tables)
tables
- Initial collection.public int size()
public boolean hasTableWithName(String tableName)
tableName
- The tablename to search for.protected Table[] getTables()
public Tables add(Table table)
table
- The table to addpublic Tables add(Session session, String name)
session
- Active session wit the QuasarDB cluster.name
- Name of the table to addpublic static Writer writer(Session session, Tables tables)
session
- Active session with the QuasarDB cluster.tables
- Timeseries tables.public static Writer writer(Session session, Tables tables, Writer.PushMode mode)
session
- Active session with the QuasarDB cluster.tables
- Timeseries tables.public static Writer writer(Session session, Table[] tables)
session
- Active session with the QuasarDB cluster.tables
- Timeseries tables.public static Writer writer(Session session, Table[] tables, Writer.PushMode mode)
session
- Active session with the QuasarDB cluster.tables
- Timeseries tables.mode
- Push mode to usepublic static Writer pinnedWriter(Session session, Tables tables)
session
- Active session with the QuasarDB cluster.tables
- Timeseries tables.public static Writer pinnedWriter(Session session, Tables tables, Writer.PushMode mode)
session
- Active session with the QuasarDB cluster.tables
- Timeseries tables.public static Writer pinnedWriter(Session session, Table[] tables)
session
- Active session with the QuasarDB cluster.tables
- Timeseries tables.public static Writer pinnedWriter(Session session, Table[] tables, Writer.PushMode mode)
session
- Active session with the QuasarDB cluster.tables
- Timeseries tables.mode
- The pushmode to usepublic static Writer expWriter(Session session, Tables tables)
session
- Active session with the QuasarDB cluster.tables
- Timeseries tables.public static Writer expWriter(Session session, Tables tables, Writer.PushMode mode)
session
- Active session with the QuasarDB cluster.tables
- Timeseries tables.public static Writer expWriter(Session session, Table[] tables)
session
- Active session with the QuasarDB cluster.tables
- Timeseries tables.public static Writer expWriter(Session session, Table[] tables, Writer.PushMode mode)
session
- Active session with the QuasarDB cluster.tables
- Timeseries tables.mode
- The pushmode to usepublic static Writer pinnedTruncateWriter(Session session, Tables tables)
session
- Active session with the QuasarDB cluster.tables
- Timeseries tables.public static Writer pinnedTruncateWriter(Session session, Table[] tables)
session
- Active session with the QuasarDB cluster.tables
- Timeseries tables.public static Writer expTruncateWriter(Session session, Tables tables)
session
- Active session with the QuasarDB cluster.tables
- Timeseries tables.public static Writer expTruncateWriter(Session session, Table[] tables)
session
- Active session with the QuasarDB cluster.tables
- Timeseries tables.public static Writer pinnedAsyncWriter(Session session, Tables tables)
session
- Active session with the QuasarDB cluster.tables
- Timeseries tables.public static Writer pinnedAsyncWriter(Session session, Table[] tables)
session
- Active session with the QuasarDB cluster.tables
- Timeseries tables.public static Writer expAsyncWriter(Session session, Tables tables)
session
- Active session with the QuasarDB cluster.tables
- Timeseries tables.public static Writer expAsyncWriter(Session session, Table[] tables)
session
- Active session with the QuasarDB cluster.tables
- Timeseries tables.public static Writer asyncWriter(Session session, Tables tables)
session
- Active session with the QuasarDB cluster.tables
- Timeseries tables.public static Writer asyncWriter(Session session, Table[] tables)
session
- Active session with the QuasarDB cluster.tables
- Timeseries tables.public static Writer fastWriter(Session session, Tables tables)
session
- Active session with the QuasarDB cluster.tables
- Timeseries tables.public static Writer fastWriter(Session session, Table[] tables)
session
- Active session with the QuasarDB cluster.tables
- Timeseries tables.public static Writer pinnedFastWriter(Session session, Tables tables)
session
- Active session with the QuasarDB cluster.tables
- Timeseries tables.public static Writer pinnedFastWriter(Session session, Table[] tables)
session
- Active session with the QuasarDB cluster.tables
- Timeseries tables.public static Writer expFastWriter(Session session, Tables tables)
session
- Active session with the QuasarDB cluster.tables
- Timeseries tables.public static Writer expFastWriter(Session session, Table[] tables)
session
- Active session with the QuasarDB cluster.tables
- Timeseries tables.public static Writer truncateWriter(Session session, Tables tables)
session
- Active session with the QuasarDB cluster.tables
- Timeseries tables.public static Writer truncateWriter(Session session, Table[] tables)
session
- Active session with the QuasarDB cluster.tables
- Timeseries tables.public static AutoFlushWriter autoFlushWriter(Session session, Tables tables)
session
- Active session with the QuasarDB cluster.tables
- Timeseries tables to write to.public static AutoFlushWriter autoFlushWriter(Session session, Table[] tables)
session
- Active session with the QuasarDB cluster.tables
- Timeseries table.public static AutoFlushWriter autoFlushWriter(Session session, Tables tables, long threshold)
session
- Active session with the QuasarDB cluster.tables
- Timeseries tables to write to.threshold
- The amount of rows to keep in local buffer before automatic flushing occurs.public static AutoFlushWriter autoFlushWriter(Session session, Table[] tables, long threshold)
session
- Active session with the QuasarDB cluster.tables
- Timeseries table.threshold
- The amount of rows to keep in local buffer before automatic flushing occurs.public static AutoFlushWriter asyncAutoFlushWriter(Session session, Tables tables)
session
- Active session with the QuasarDB cluster.tables
- Timeseries tables to write to.public static AutoFlushWriter asyncAutoFlushWriter(Session session, Table[] tables)
session
- Active session with the QuasarDB cluster.tables
- Timeseries table.public static AutoFlushWriter asyncAutoFlushWriter(Session session, Tables tables, long threshold)
session
- Active session with the QuasarDB cluster.tables
- Timeseries tables to write to.threshold
- The amount of rows to keep in local buffer before automatic flushing occurs.public static AutoFlushWriter asyncAutoFlushWriter(Session session, Table[] tables, long threshold)
session
- Active session with the QuasarDB cluster.tables
- Timeseries table.threshold
- The amount of rows to keep in local buffer before automatic flushing occurs.public static AutoFlushWriter fastAutoFlushWriter(Session session, Tables tables)
session
- Active session with the QuasarDB cluster.tables
- Timeseries tables to write to.public static AutoFlushWriter fastAutoFlushWriter(Session session, Table[] tables)
session
- Active session with the QuasarDB cluster.tables
- Timeseries table.public static AutoFlushWriter fastAutoFlushWriter(Session session, Tables tables, long threshold)
session
- Active session with the QuasarDB cluster.tables
- Timeseries tables to write to.threshold
- The amount of rows to keep in local buffer before automatic flushing occurs.public static AutoFlushWriter fastAutoFlushWriter(Session session, Table[] tables, long threshold)
session
- Active session with the QuasarDB cluster.tables
- Timeseries table.threshold
- The amount of rows to keep in local buffer before automatic flushing occurs.Copyright © 2021. All rights reserved.