Package net.quasardb.qdb.ts
Class Tables
java.lang.Object
net.quasardb.qdb.ts.Tables
- All Implemented Interfaces:
Serializable
Utility class to make working with multiple tables easier by bridging
between the #Table and #Writer class.
It maintains its own internal array of tables and can be serialized.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a copy of this collection with the new table added.Returns a copy of this collection with the new table added.protected Table[]
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
Looks up many tables by tag.int
size()
Returns the number of tables in this collection.toString()
-
Field Details
-
tables
-
-
Constructor Details
-
Tables
public Tables()Initialize empty collection of Tables. -
Tables
Initialize a collection of timeseries Tables.- Parameters:
tables
- Initial collection.
-
-
Method Details
-
size
public int size()Returns the number of tables in this collection.- Returns:
- The number of tables in this collection.
-
hasTableWithName
Returns true when the collection contains a table with a certain name. This operation has O(N) complexity.- Parameters:
tableName
- The tablename to search for.- Returns:
- True when the collection contains a table with the name.
-
getTables
Provides access to the internal #Table collection. -
add
Returns a copy of this collection with the new table added.- Parameters:
table
- The table to add
-
add
Returns a copy of this collection with the new table added.- Parameters:
session
- Active session wit the QuasarDB cluster.name
- Name of the table to add
-
ofTag
Looks up many tables by tag. -
toString
-