Package org.yamcs.yarch
Class TupleDefinition
java.lang.Object
org.yamcs.yarch.TupleDefinition
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
copy()
getColumn
(int index) Get a column definition by nameint
getColumnIndex
(String name) returns the index of the column with name or -1 if there is no such columnReturns a string "(col1 type, col2 type2, ....)" suitable to be used in create streamReturns a string "col1 type, col2 type2, ...."boolean
int
removeColumn
(String name) int
size()
toString()
-
Field Details
-
MAX_COLS
public static final int MAX_COLS- See Also:
-
-
Constructor Details
-
TupleDefinition
public TupleDefinition()
-
-
Method Details
-
getColumnDefinitions
-
addColumn
-
addColumn
-
removeColumn
-
getColumnIndex
returns the index of the column with name or -1 if there is no such column- Parameters:
name
-- Returns:
- the index of the column with name or -1 if there is no such column
-
hasColumn
-
getColumn
Get a column definition by name- Parameters:
name
-- Returns:
- the column definition of the named column or null if the table does not have a column by that name
-
getColumn
-
getStringDefinition
Returns a string "(col1 type, col2 type2, ....)" suitable to be used in create stream -
getStringDefinition1
Returns a string "col1 type, col2 type2, ...." (without parenthesis) suitable to be used in create table -
size
public int size()- Returns:
- number of columns part of the tuple
-
copy
- Returns:
- a copy of the tuple definition that can be used to add columns
-
toString
-