Package | Description |
---|---|
Aggregation | |
Parsing.LineParsers | |
PrologDB |
Modifier and Type | Method and Description |
---|---|
void |
Average.add(Tuple t) |
void |
Count.add(Tuple t) |
void |
DoubleAgg.add(Tuple t) |
void |
DoubleSum.add(Tuple t) |
void |
GroupValue.add(Tuple t) |
void |
IntAgg.add(Tuple t) |
void |
IntSum.add(Tuple t) |
abstract void |
Reducer.add(Tuple t) |
Constructor and Description |
---|
DoubleAgg(java.lang.String fieldName,
java.util.function.BiFunction<java.lang.Double,Tuple,java.lang.Double> fun) |
IntAgg(java.lang.String outFieldName,
java.util.function.BiFunction<java.lang.Integer,Tuple,java.lang.Integer> fun) |
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 | Method and Description |
---|---|
Tuple |
Table.add(java.lang.String... values)
combination of t=new Tuple(schema);t.setValues(values); tbl.add(t);
|
Tuple |
Table.add(Tuple t)
adds tuple t to 'this' tbl; throws error the schema of the tuple does not
match the schema of the tbl to which it is being added Untested
precondition: that the schema of the tuple conforms to the schema of the
tbl
|
Tuple |
Table.addFirst(Tuple t)
adds tuple t to the front of 'this' tbl.
|
Tuple |
Tuple.copy(TableSchema newSchema)
returns a (deep) copy of a tuple; precondition: newSchema and tableSchema
must have identically defined sets of columns; the schemas may have
different names
|
Tuple |
Tuple.copy(Tuple from)
copies all column values from tuple into 'this' tuple
|
Tuple |
Tuple.copy(Tuple from,
ColumnCorrespondence cor)
copies column values in 'from' tuple to 'this' tuple
|
Tuple |
Tuple.copy(Tuple from,
java.util.List<Column> columns)
copies selected column values from existing tuple
|
Tuple |
Table.follow(java.lang.String id) |
Tuple |
Table.getFirst()
return the first tuple of this tbl, null otherwise
|
Tuple |
Table.getFirst(java.util.function.Predicate<Tuple> p)
return first tuple left tbl that satisfies predicate p
|
Tuple |
Table.getFirstEH()
return first tuple of 'this' tbl; throw exception if tbl is empty
|
Tuple |
Table.getFirstEH(java.util.function.Predicate<Tuple> p)
return first tuple left tbl that satisfies predicate p
|
Tuple |
KeyedTable.getKey(java.lang.String keyValue)
returns the tuple with the given keyValue; null returned if no such
keyValue exists
|
Tuple |
KeyedTable.getKeyEH(java.lang.String keyValue)
Error Handling version of getKey; Error returned if no
such tuple exists
|
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.
|
static Tuple |
Tuple.parseTupleDecl(java.lang.String line,
int lineno,
TableSchema ts,
ErrorReport er)
parses a line at lineno, expecting to parse a legal prolog tuple
declaration that conforms to table schema ts
|
Tuple |
Tuple.project(TableSchema superTableSchema)
projects 'this' tuple to the set of columns of a super table schema; if
table schemas do not match, tuple.getName() throws an Error projection
retains the first set of columns -- columns that are removed are at the
end of a tuple
|
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
|
Tuple |
Tuple.set(java.lang.String columnName,
boolean value)
sets a column with columnName to have the given boolean value
|
Tuple |
Tuple.set(java.lang.String columnName,
double value)
sets a column with columnName to have the given double value
|
Tuple |
Tuple.set(java.lang.String columnName,
float value)
sets a column with columnName to have the given float value
|
Tuple |
Tuple.set(java.lang.String columnName,
int value)
sets a column with columnName to have the given int value
|
Tuple |
Tuple.set(java.lang.String columnName,
java.lang.String value)
sets a column with columnName to have the given string value
|
Tuple |
Tuple.setNull(java.lang.String columnName)
sets a column with columnName to have "null" value
|
Tuple |
Tuple.setValues(java.lang.String... vals)
adds a list of values, in order in which their columns are defined, to an
empty tuple.
|
Tuple |
Tuple.setValues(java.lang.String[] cols,
java.lang.String[] vals) |
Tuple |
Tuple.show()
useful for debugging -- show prints every tuple it sees
|
Modifier and Type | Method and Description |
---|---|
java.util.function.BiConsumer<TupleList,Tuple> |
TuplesToTable.accumulator() |
java.util.stream.Stream<Tuple> |
Table.stream()
convert tbl into a stream of Tuples
|
Modifier and Type | Method and Description |
---|---|
Tuple |
Table.add(Tuple t)
adds tuple t to 'this' tbl; throws error the schema of the tuple does not
match the schema of the tbl to which it is being added Untested
precondition: that the schema of the tuple conforms to the schema of the
tbl
|
Tuple |
Table.addFirst(Tuple t)
adds tuple t to the front of 'this' tbl.
|
TupleList |
TupleList.addTuple(Tuple t) |
boolean |
Table.contains(Tuple t)
does 'this' tbl contain tuple t?
|
Tuple |
Tuple.copy(Tuple from)
copies all column values from tuple into 'this' tuple
|
Tuple |
Tuple.copy(Tuple from,
ColumnCorrespondence cor)
copies column values in 'from' tuple to 'this' tuple
|
Tuple |
Tuple.copy(Tuple from,
java.util.List<Column> columns)
copies selected column values from existing tuple
|
boolean |
Table.delete(Tuple t)
delete tuple t
|
boolean |
Tuple.equals(Tuple t)
does 'this' tuple equal the given tuple requires 'this' and given tuple
to belong to a schema with the same name and have the same column values
|
boolean |
Tuple.hasSameValuesAs(Tuple t)
are all (col,val) pairs in 'this' tuple also in the given tuple?
|
void |
Tuple.setJoinTupleValues(java.lang.String[] jcols,
java.lang.String[] lcols,
Tuple left,
java.lang.String[] rcols,
Tuple right)
specific for creating join tuples -- should be package public call:
setJoinTupleValues(jcols, lcols, right, rcols, right)
|
Modifier and Type | Method and Description |
---|---|
ColumnCorrespondence |
ColumnCorrespondence.add(java.lang.String left,
java.util.function.Function<Tuple,java.lang.String> fun) |
boolean |
Table.allMatch(java.util.function.Predicate<Tuple> pred)
all tuples left 'this' tbl must satisfy pred
|
boolean |
Table.anyMatch(java.util.function.Predicate<Tuple> pred)
at least one tuple left 'this' tbl must satisfy pred
|
boolean |
Table.exists(java.util.function.Predicate<Tuple> p)
does 'this' tbl have a tuple that satisfies the given predicate
|
Table |
Table.filter(java.util.function.Predicate<Tuple> p)
same as select above, just different name
|
void |
Table.forEach(java.util.function.Consumer<Tuple> action)
works like forEach stream, except it takes left a tbl
|
Tuple |
Table.getFirst(java.util.function.Predicate<Tuple> p)
return first tuple left tbl that satisfies predicate p
|
Tuple |
Table.getFirstEH(java.util.function.Predicate<Tuple> p)
return first tuple left tbl that satisfies predicate p
|
void |
Table.ifThen(java.util.function.Predicate<Tuple> ifpred,
java.lang.String expl,
ErrorReport er)
ifThen -- then error
|
void |
Table.implies(java.util.function.Predicate<Tuple> ifpred,
java.util.function.Predicate<Tuple> thenpred,
java.lang.String expl,
ErrorReport er)
ifpred implies thenpred; violations are reported left error reporter
|
void |
Table.implies(java.util.function.Predicate<Tuple> ifpred,
java.util.function.Predicate<Tuple> thenpred,
java.lang.String expl,
ErrorReport er)
ifpred implies thenpred; violations are reported left error reporter
|
Table |
Table.reject(java.util.function.Predicate<Tuple> p)
similar to select except predicate is negated
|
ColumnCorrespondence |
ColumnCorrespondence.replace(java.lang.String left,
java.util.function.Function<Tuple,java.lang.String> fun) |
Table |
Table.select(java.util.function.Predicate<Tuple> p)
return a Table from a given Table that satisfies predicate p
|
Constructor and Description |
---|
Table(Tuple t)
create a Table with a single tuple
|
Constructor and Description |
---|
Pair(java.lang.String left,
java.util.function.Function<Tuple,java.lang.String> fun) |