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

Ø  channel(cs)

Create a cluster channel and push data in a specified cluster cursor into it

Ø  channel(ch)

Create a cluster channel and push data in another cluster channel into it

Ø  cs.fetch()

Fetch data from a distributed cursor

Ø  cs.group()

Group a cluster cursor by comparing each record with its next neighbor

Ø  cs.group(x:F,...;y:G,...)

Group a cluster cursor by comparing each record with its next neighbor and then aggregate each group

Ø  cs.groups()

Group the records in a cluster cursor

Ø  cs.groupx()

Group records in a cluster cursor and return result as a synchronously segmented cluster cursor

Ø  cs.join()

A foreign-key-style join between a cluster cursor and a record sequence

Ø  cs.joinx()

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

Ø  cs.memory()

Generate a memory table from a cursor

Ø  cs.memory()

Generate a cluster memory table from a cluster cursor

Ø  cs.mergex()

Merge all parts of a composite table multicursor into an ordinary cursor

Ø  CS.mergex()

Merge a sequence of composite table cursors

Ø  cs.sortx()

Sort data in a cluster cursor

Ø  cs.switch()

Replace values of a specified field in a cluster cursor with the referencing field values of the corresponding record in another table

Ø  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)

Ø  file(fn:z,f)

Generate a new cluster homo-name files group using the distribution style of an existing one

Ø  file(fn:z,hs)

Generate a cluster file on one or more nodes

Ø  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()

Join multiple synchronously segmented cluster cursors/multicursors

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

Join up multiple pseudo tables

Ø  k1+k2

Concatenate serial bytes

Ø  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 a memory table according to specified key value(s)

Ø  k.sbs()

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

Ø  memory()

Generate a cluster memory table from a local memory table

Ø  movefile(fn:z,h;path,hs)

Move a specified file in a node to another node

Ø  pseudo(pd)

Generate a pseudo table definition object

Ø  syncfile(hs,p)

Synchronize a local path onto a sequence of nodes

Ø  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’)

Retrieve an attached table from a cluster composite 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.close()

Close a cluster table

Ø  T.create(f;x)

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

Ø  T.cuboid(C,Fi,…;y:Gi,…)

Store the result set of grouping an entity table/multi-zone composite table as a pre-summarized data cube

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

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

Ø  T.cursor(x,...;wi,...)

Return one or more specified columns of a cluster entity table/cluster memory table as a cluster cursor

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

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

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

Synchronously segment a cluster entity table according to a cluster multicursor and return a cluster 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.derive()

Add fields of a composite table to a table sequence/cursor according to the latter's key values

Ø  T.derive()

Add fields of a cluster composite table to a table sequence/cursor according to the latter's key values

Ø  T.dup()

Join up cluster memory table into a local memory table

Ø  T.dup(h)

Copy a local memory table onto nodes to create a duplicate cluster memory 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 a 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.icursor(C,...;w,I)

Use index to filter a cluster table according to the filtering condition

Ø  T.import()

Read in records from an entity table and return them as a sequence, record sequence or 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(n)

Create an index for the key of a memory table

Ø  T.join(C:., Ai:K,x:F,…; …;…)

The foreign-key style join between an in-memory table and a table sequence or two in-memory tables

Ø  T.keys()

Define the key(s) for a memory table

Ø  T.len()

Get the number of records in a memory table

Ø  T.memory(C,…;w)

Generate a memory table from an entity table

Ø  T.memory(C,…;w)

Generate a cluster memory table from a cluster entity table

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

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

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

Retrieve specific fields from a cluster composite table according to key values of a table sequence/record sequence or a cursor and return a cluster multicursor

Ø  T.news(A/cs,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.news(A/cs,x:C,…;wi,...)

Get values of specified field(s) according to key values in a cluster in-memory table or a cluster cursor, and concatenate them into a new table sequence or a cluster multicursor

Ø  T.switch(Fi,Ai:x;…)

Replace values of specified fields in an in-memory table with the corresponding referencing field values

Ø  f.open()

Open a composite table’s base table

Ø  f.open()

Generate a cluster table from a cluster file

Ø  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