public class TupleDefinition extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_COLS |
| Constructor and Description |
|---|
TupleDefinition() |
| Modifier and Type | Method and Description |
|---|---|
void |
addColumn(ColumnDefinition c) |
void |
addColumn(String name,
DataType type) |
TupleDefinition |
copy() |
ColumnDefinition |
getColumn(int index) |
ColumnDefinition |
getColumn(String name)
Get a column definition by name
|
List<ColumnDefinition> |
getColumnDefinitions() |
int |
getColumnIndex(String name)
returns the index of the column with name or -1 if there is no such column
|
String |
getStringDefinition()
Returns a string "(col1 type, col2 type2, ....)"
suitable to be used in create stream
|
String |
getStringDefinition1()
Returns a string "col1 type, col2 type2, ...."
(without parenthesis) suitable to be used in create table
|
boolean |
hasColumn(String name) |
int |
size() |
String |
toString() |
public static final int MAX_COLS
public List<ColumnDefinition> getColumnDefinitions()
public void addColumn(ColumnDefinition c)
public int getColumnIndex(String name)
name - public boolean hasColumn(String name)
public ColumnDefinition getColumn(String name)
name - public ColumnDefinition getColumn(int index)
public String getStringDefinition()
public String getStringDefinition1()
public int size()
public TupleDefinition copy()
Copyright © 2018 Space Applications Services. All rights reserved.