Composite-Table-Related Functions

The following are composite-table-related functions that handle computations over composite tables that are unique in esProc.

Ø  C

A column in a table, its parent table, or a table above them

Ø  cs.joinx()

Join up a cursor and an entity table by the foreign key

Ø  cs.memory()

Generate an in-memory table from a cursor

Ø  CS.mergex()

Merge a sequence of composite table cursors

Ø  f.create(C,…;x)

Generate a composite table’s base table from a file

Ø  file(fn:z)

Return a file or homo-name files group preceded by corresponding zone table number(s)

Ø  f.open()

Open a composite table’s base table

Ø  f.reset()

Reorganize a composite table file and write it to another composite table file

Ø  f.rollback()

Restore a composite table file to the previous state when update error happens

Ø  joinx(Ti:Fi,xj,..;…)

Join up multiple pseudo tables

Ø  k.r(T,F)

Query a specified field in a specific row in an in-memory table

Ø  k.row

Find one or more records from an in-memory table according to specified key value(s)

Ø  k.sbs()

Get an integer consisting of certain bytes of a serial byte key

Ø  pseudo(pd)

Generate a pseudo table definition object

Ø  T.alter(F:x,…;F’,…)

Alter one or more fields in an entity table

Ø  T.append(cs)

Append records in a cursor to an entity table

Ø  T.append(cs)

Append-write records of a cursor to a pseudo table

Ø  T.attach(T’,C)

Add an attached table to a composite table’s base table

Ø  T.C

Retrieve a specified column from an attached table

Ø  T.close()

Close a composite table file

Ø  T.create(f;x)

Create a new composite table file using the data structure of an existing composite table

Ø  T.cursor(x:C,;wi,...;k:n)

Segment an entity/in-memory table and return the cursor of a specified segment

Ø  T.cursor(x:C,...;wi,...;mcs)

Synchronously segment an entity table according to a multicursor and return a multicursor

Ø  T.cursor(xi:Ci,…)

Get a cursor based on a pseudo table

Ø  T.delete(P)

Delete specified record(s) from an entity table

Ø  T.delete(P)

Delete one or more specified records from a pseudo table

Ø  T.f(C)

Perform an aggregate operation over an attached table’s column

Ø  T.find(k,…)

Find the record(s) according to the specified primary key value(s) from an in-memory table

Ø  T.find(k;x:C,...)

Find the record(s) according to the specified primary key value(s) from the base table

Ø  T.group(xi,…)

Group records of a pseudo table by comparing the grouping field in each with its next neighbor

Ø  T.groups(x:F,…;y:G…;n)

Group records in a pseudo table

Ø  T.icursor(C,;w,I)

Use index to filter an entity table according to the filtering condition

Ø  T.ifind(k,...;I)

Search for a specified key value in an in-memory table according to the index.

Ø  T.import()

Read in records from an entity table and return them as a table sequence

Ø  T.import(xi:Ci,…)

Get a table sequence based on a pseudo table

Ø  T.index(I:h,w;C,…;F,…)

Create an index file for an entity table/multi-zone composite table

Ø  T.index(I:h,w;C,…)

Create one or multiple non-primary-key-based indexes for an in-memory table

Ø  T.index(n)

Create an index for the key of an in-memory table

Ø  T.keys()

Define the key(s) for an in-memory table

Ø  T.keys@i(Ki,;n)

Set primary key for an in-memory table and in the meantime create index on it

Ø  T.len()

Get the number of records in an in-memory table

Ø  T.memory()

Convert a table sequence to an in-memory table

Ø  T.memory(C,…;w)

Generate an in-memory table from an entity table

Ø  T.new(A/cs,K,x:C,...;wi,…)

Get specified field(s) from a composite table according to correspondence between its key values and the fields in a table sequence or a cursor, and return result as a table sequence or a cursor

Ø  T.news(A/cs,K,x:C,...;wi,...)

Get values of specified field(s) according to key values in a table sequence or a cursor, concatenate them and return result as a table sequence or a cursor

Ø  T.rename(F:F’,…)

Rename fields in an entity table or distributed table

Ø  T.select(x)

Select records from a pseudo table according to a specified condition and return the original pseudo table

Ø  T.update(P)

Update records in an entity table

Ø  T.update(P)

Update records in a pseudo table

Ø  T{x:C,...}

Return an attached table’s records as a sub table sequence