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, copy, copyForSelfJoins, delete, filter, getColumns, getCSVName, getDBSchema, getDBSchemaEH, getFirst, getFirstEH, getName, getSchema, getSubTables, join, map, print, project, project, project, readTable, size, sort, stream, tuples, tuplesLocal, 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()