public class KeyedTable extends Table
Modifier and Type | Field and Description |
---|---|
java.lang.String |
keyName
keyName of keyTable
|
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, addTuple, addTuples, addTuples, allMatch, antiProject, antiSemiJoin, anyMatch, contains, copy, copyForSelfJoins, count, delete, deleteAll, deleteEH, duplicates, equals, error, exists, exists, filter, forEach, getColumns, getCSVName, getDBSchema, getDBSchemaEH, getFirst, getFirstEH, getIDName, getName, getSchema, getSubTables, groupBy, intersect, join, leftOuterJoin, map, print, print, printLocal, project, project, project, readTable, rightSemiJoin, semiJoin, sort, stream, tuples, tuplesLocal, unique, writeTable
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()