public class KeyedTable extends Table
Modifier and Type | Field and Description |
---|---|
java.lang.String |
keyName
keyName of keyTable
|
aggRowName, aggTableName, c, idcounter, q, schema, subtables
Constructor and Description |
---|
KeyedTable(TableSchema tableSchema,
java.lang.String keyName)
returns KeyTable object that is a table of tableSchema instances
using a column whose name is keyName as the key column;
Error is thrown if no such column exists
|
Modifier and Type | Method and Description |
---|---|
KeyedTable |
copy()
returns copy of key table
|
Tuple |
getKey(java.lang.String keyValue)
returns the tuple with the given keyValue; null returned if no such
keyValue exists
|
Tuple |
getKeyEH(java.lang.String keyValue)
Error Handling version of getKey; Error returned if no
such tuple exists
|
add, add, add, add, addFirst, aggregate, allBool, allInt, allMatch, allNum, antiProject, anyMatch, contains, copy, copyForSelfJoins, count, cycleCheck, delete, deleteAll, deleteEH, deleteFirst, duplicates, equals, error, exists, exists, filter, follow, forEach, getColumns, getCSVName, getFirst, getFirst, getFirstEH, getFirstEH, getIDName, getName, getSchema, getSchemaEH, getSubTables, getTableSchema, groupBy, ifThen, implies, intersect, isEmpty, isLegit, isLegit, isNotEmpty, isNotNull, isUnique, join, leftAntiSemiJoin, leftOuterJoin, leftSemiJoin, makeCycleTable, map, newID, prettyPrint, prettyPrintLocal, print, print, printLocal, project, project, project, read, reject, replaceTableWithTable, rightAntiSemiJoin, rightSemiJoin, select, show, show, size, sort, StandardConform, stream, toString, tuples, tuplesLocal, unique, uniqueId, write
public KeyedTable(TableSchema tableSchema, java.lang.String keyName)
tableSchema
- -- table schema to be instantiatedkeyName
- -- name of key column of tablepublic Tuple getKey(java.lang.String keyValue)
keyValue
- -- search keypublic Tuple getKeyEH(java.lang.String keyValue)
keyValue
- -- search keypublic KeyedTable copy()