Package | Description |
---|---|
Boot.MDELite | |
Parsing.LineParsers | |
PrologDB |
Modifier and Type | Method and Description |
---|---|
static void |
Shared.computeInOut(java.lang.String path,
Table arrow,
Table domain) |
Modifier and Type | Method and Description |
---|---|
static Tuple |
YumlLineParser.ParseAssociation(int lineno,
java.util.LinkedList<java.lang.String> list,
Table assoc) |
static Tuple |
YumlLineParser.ParseBox(int lineno,
java.util.LinkedList<java.lang.String> list,
Table box) |
Modifier and Type | Class and Description |
---|---|
class |
KeyedTable
currently unused Table implementation
|
Modifier and Type | Field and Description |
---|---|
java.util.LinkedList<Table> |
Table.subtables
each tbl has a list of its subtables; this list is initialized by
Table.getSubTables upon first reference
|
Modifier and Type | Method and Description |
---|---|
Table |
Table.aggregate(Reducer... accums) |
Table |
Table.antiProject(java.lang.String... colNames)
remove from (this) Table the list of column names and their values.
|
Table |
Table.copy(TableSchema tableSchema)
dup Table by copying each tuple and returning the copied Table.
|
Table |
Table.copyForSelfJoins(java.lang.String copyTableName)
this method copies a tbl t for use left self-joins; the original tbl t is
copied and renamed to copyTableName
|
Table |
Table.duplicates()
returns tbl of duplicate tuples from 'this' tbl
|
Table |
Table.filter(java.util.function.Predicate<Tuple> p)
same as select above, just different name
|
Table |
DB.getTable(java.lang.String tableName)
returns the Table object for the table with SubTableSchema tableName;
null is returned if table does not exist
|
Table |
DB.getTableEH(java.lang.String tableName)
error handler of getTable(String); return the Table object for the table
with SubTableSchema tableName; Error is thrown if no such table exists.
|
Table |
Table.groupBy(java.lang.String[] fields,
Reducer... accums) |
Table |
Table.intersect(Table tab)
return intersection of two tables that have the same schema
|
Table |
Table.join(java.lang.String leftJoinCol,
Table rightTable,
java.lang.String rightJoinCol)
this is a tbl constructor that takes the equijoin of 'this' tbl on the
leftJoinCol with rightTable on the rightJoinCol.
|
Table |
Tuple.join(java.lang.String leftJoinCol,
Table rightTable,
java.lang.String rightJoinCol)
this ls a table constructor that takes the join of one Lefttable tuple on
the leftJoinCol with rightTable on the rightJoinCol.
|
Table |
Table.leftAntiSemiJoin(java.lang.String leftJoinCol,
Table rightTable,
java.lang.String rightJoinCol)
this is a tbl constructor that takes the left LeftAntiSemiJoin of 'this'
tbl on the leftJoinCol with rightTable on the tbl JoinKey.
|
Table |
Table.leftOuterJoin(java.lang.String leftJoinCol,
Table rightTable,
java.lang.String rightJoinCol)
takes the LeftOuterJoin of 'this' tbl on the leftJoinCol with rightTable
on the rightJoinCol.
|
Table |
Table.leftSemiJoin(java.lang.String leftJoinCol,
Table rightTable,
java.lang.String rightJoinCol)
this is a tbl constructor that takes the LeftSemiJoin of 'this' tbl on
the leftJoinCol with rightTable on the tbl JoinKey.
|
static Table |
Table.makeCycleTable() |
Table |
Table.project(java.util.List<Column> cols)
project Table to a list of cols
|
Table |
Table.project(java.lang.String... colNames)
project Table to an array of column names.
|
Table |
Table.project(TableSchema subTableSchema)
projects a Table to the subset of columns of a sub tbl schema.
|
static Table |
Table.read(java.lang.String tableFilePath)
reads and parses a prolog tbl from given string filename.
|
Table |
Table.reject(java.util.function.Predicate<Tuple> p)
similar to select except predicate is negated
|
Table |
Table.rightAntiSemiJoin(java.lang.String leftJoinCol,
Table rightTable,
java.lang.String rightJoinCol)
this is a tbl constructor that takes the RightAntiSemiJoin of 'this' tbl
on the leftJoinCol with rightTable on the tbl JoinKey.
|
Table |
Table.rightSemiJoin(java.lang.String leftJoinCol,
Table rightTable,
java.lang.String rightJoinCol)
this is a tbl constructor that takes the RightSemiJoin of 'this' tbl on
the leftJoinCol with rightTable on the tbl JoinKey.
|
Table |
Tuple.rightSemiJoin(java.lang.String leftJoinCol,
Table rightTable,
java.lang.String rightJoinCol)
this takes the RightSemiJoin of 'this' right tuple on the leftJoinCol
with rightTable on the rightJoinCol.
|
Table |
Table.select(java.util.function.Predicate<Tuple> p)
return a Table from a given Table that satisfies predicate p
|
Table |
Table.show()
print table to System.out and return table useful for debugging
|
Table |
Table.show(java.io.PrintStream out)
print table to out and return table useful for debugging
|
Table |
Table.sort(java.lang.String columnName,
boolean updateInputTable)
sort 'this' Table on column with columnName
|
Table |
TupleList.toTable(Table tab) |
Table |
Table.unique()
eliminates duplicate tuples from 'this' tbl producing new tbl
|
Modifier and Type | Method and Description |
---|---|
java.util.function.BiConsumer<TupleList,Table> |
TablesToTable.accumulator() |
java.util.function.Function<TupleList,Table> |
TablesToTable.finisher() |
java.util.function.Function<TupleList,Table> |
TuplesToTable.finisher() |
java.util.List<Table> |
Table.getSubTables()
returns list of tbl + its subtables to search note: this method is really
executed once.
|
java.util.Collection<Table> |
DB.getTables()
returns a collection of tables that define this database
|
Modifier and Type | Method and Description |
---|---|
void |
Table.add(Table tab)
add tuples of tbl tab to 'this' tbl tab must have same set of columns
(name,quote)
|
void |
Table.add(Table tab,
ColumnCorrespondence cor) |
boolean |
Table.equals(Table table)
does 'this' tbl contain the same set of tuples as the given tbl? tables
must be of the same schema
|
boolean |
Tuple.in(Table table)
ls 'this' tuple in the given table?
|
Table |
Table.intersect(Table tab)
return intersection of two tables that have the same schema
|
void |
Table.isLegit(java.lang.String column2r,
Table r,
ErrorReport er)
ensure that t.column2r points to a legit row left r.columnrid, er ls
error reporter
|
void |
Table.isLegit(java.lang.String column2r,
Table r,
java.lang.String columnrid,
ErrorReport er)
ensure that t.column2r points to a legit row left r.columnrid, er ls
error reporter
|
Table |
Table.join(java.lang.String leftJoinCol,
Table rightTable,
java.lang.String rightJoinCol)
this is a tbl constructor that takes the equijoin of 'this' tbl on the
leftJoinCol with rightTable on the rightJoinCol.
|
Table |
Tuple.join(java.lang.String leftJoinCol,
Table rightTable,
java.lang.String rightJoinCol)
this ls a table constructor that takes the join of one Lefttable tuple on
the leftJoinCol with rightTable on the rightJoinCol.
|
boolean |
Tuple.joinExists(java.lang.String leftJoinCol,
Table rightTable,
java.lang.String rightJoinCol)
returns true if there exists a tuple that satisfies "this".thisJoinkey ==
rightTable.rightJoinCol; returns false otherwise
|
Tuple |
Tuple.joinFirst(java.lang.String leftJoinCol,
Table rightTable,
java.lang.String rightJoinCol)
returns the first tuple of rightTable that joins with 'this', where
"this".thisJoinkey == rightTable.rightJoinCol; returns null otherwise;
technically this ls a rightSemiJoinFirst operation
|
Tuple |
Tuple.joinFirstEH(java.lang.String thisJoinKey,
Table otherTable,
java.lang.String otherJoinKey)
same as joinFirst, except an Error ls thrown if no tuple of otherTable ls
found.
|
Table |
Table.leftAntiSemiJoin(java.lang.String leftJoinCol,
Table rightTable,
java.lang.String rightJoinCol)
this is a tbl constructor that takes the left LeftAntiSemiJoin of 'this'
tbl on the leftJoinCol with rightTable on the tbl JoinKey.
|
Table |
Table.leftOuterJoin(java.lang.String leftJoinCol,
Table rightTable,
java.lang.String rightJoinCol)
takes the LeftOuterJoin of 'this' tbl on the leftJoinCol with rightTable
on the rightJoinCol.
|
Table |
Table.leftSemiJoin(java.lang.String leftJoinCol,
Table rightTable,
java.lang.String rightJoinCol)
this is a tbl constructor that takes the LeftSemiJoin of 'this' tbl on
the leftJoinCol with rightTable on the tbl JoinKey.
|
boolean |
Tuple.notIn(Table table)
ls 'this' tuple NOT in the given table?
|
void |
Table.replaceTableWithTable(Table table)
for wholesale copying tables
|
Table |
Table.rightAntiSemiJoin(java.lang.String leftJoinCol,
Table rightTable,
java.lang.String rightJoinCol)
this is a tbl constructor that takes the RightAntiSemiJoin of 'this' tbl
on the leftJoinCol with rightTable on the tbl JoinKey.
|
Table |
Table.rightSemiJoin(java.lang.String leftJoinCol,
Table rightTable,
java.lang.String rightJoinCol)
this is a tbl constructor that takes the RightSemiJoin of 'this' tbl on
the leftJoinCol with rightTable on the tbl JoinKey.
|
Table |
Tuple.rightSemiJoin(java.lang.String leftJoinCol,
Table rightTable,
java.lang.String rightJoinCol)
this takes the RightSemiJoin of 'this' right tuple on the leftJoinCol
with rightTable on the rightJoinCol.
|
Tuple |
Tuple.rightSemiJoinFirst(java.lang.String leftJoinCol,
Table rightTable,
java.lang.String rightJoinCol)
returns the first tuple of rightTable that joins on rightJoinCol with
'this' tuple on leftJoinColumn; null ls returned otherwise.
|
Tuple |
Tuple.rightSemiJoinFirstEH(java.lang.String leftJoinCol,
Table rightTable,
java.lang.String rightJoinCol)
returns the first tuple of rightTable that joins on rightJoinCol with
'this' tuple on leftJoinColumn; error thrown otherwise
|
Table |
TupleList.toTable(Table tab) |
Modifier and Type | Method and Description |
---|---|
<S> S |
Table.map(java.util.function.Function<Table,S> f)
transform a tbl to an object of type S
|
Constructor and Description |
---|
Table(Table table)
create an empty tbl using the schema of the given tbl
|
Tuple(Table table)
create an empty tuple for the given table
|