public class Schema
extends java.lang.Object
implements java.io.Serializable
Schema defines an ordered set of columns and is used in the
log manager to
describe the structure of
logs
complex columns and
Log.read(de.aristaflow.adept2.base.sessionmanagement.SessionToken, String, String, int, String...)| Constructor and Description |
|---|
Schema(Column... columns)
Constructs a new
Schema with the specified columns. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
Column |
getColumn(int index)
Returns the column at the specified index.
|
Column |
getColumn(java.lang.String columnName)
Returns the column with the specified name or
null if no such
column exists. |
int |
getColumnCount()
Returns the number of columns in this schema.
|
java.util.List<Column> |
getColumnRecursively(java.lang.String columnName)
Returns the column with the specified name recursively or the empty list if
no such column exists.
|
Column[] |
getColumns()
Returns all columns of this schema.
|
int |
hashCode() |
int |
indexOfColumn(java.lang.String columnName)
Returns the index of the column with the specified name or
-1 if no
such column exists. |
public Schema(Column... columns)
Schema with the specified columns.columns - the columns of this schemapublic int getColumnCount()
public Column getColumn(int index)
index - the desired indexpublic int indexOfColumn(java.lang.String columnName)
-1 if no
such column exists.columnName - the column name being looked for-1 if no
such column existspublic Column getColumn(java.lang.String columnName)
null if no such
column exists.columnName - the column name being looked forpublic java.util.List<Column> getColumnRecursively(java.lang.String columnName)
columnName - the column name being looked forpublic Column[] getColumns()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object