Composite-Table-Related Functions

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

Ø  $(d)dql...

Execute DQL query statement

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

Create association between cursors or record sequences through the join key

Ø  CS.merge()

Merge a sequence of composite table cursors

Ø  d.query(dql,...)

Execute DQL query statement

Ø  dql(meta)

Create DQL connection

Ø  f.create(C,…;x;b)

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/homo-name files group and write it to a new composite table file/homo-name files group

Ø  f.rollback()

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

Ø  f.structure()

Get structure information of a composite table

Ø  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

Ø  movefile()

Copy, move, delete or rename a file

Ø  pseudo(pd,n)

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.close()

Close a pseudo table

Ø  T.conj(…)

Split each record of a pseudo table and concatenate the splitting results

Ø  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/multizone composite table and return the cursor of a specified segment

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

Synchronously segment an entity table/in-memory table/multizone composite table according to a multicursor and return a multicursor

Ø  T.cursor(xi:Ci,…)

Get a cursor based on a pseudo table

Ø  T.derive(xi :Fi,…)

Add new fields to 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,...)

Get record(s) in an entity table or a multizone composite table according to key value(s)

Ø  T.fjoin(w:Ti,x:F,…;…)

Perform foreign-key-style association on a pseudo table

Ø  T.group(xi,…)

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

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

Group a pseudo table by comparing each record with its next neighbor, perform aggregation over each group, and return a new pseudo table

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

Group records in a pseudo table

Ø  T.groupn(x;F)

Group records of a pseudo table and write the grouped subsets to a sequence of bin files

Ø  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/multizone 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.join(C:.,A:K,x:F,…; …;…)

A foreign-key-style join between a pseudo table and a table sequence/record sequence

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

Create association between a pseudo table and a cursor/record sequence through the join key

Ø  T.pseudo(T’,…)

Segment a pseudo table according to the segmentation way of another

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

Rename fields in an entity table or distributed table

Ø  T.run (xi:Fi,…)

Compute a specified expression on each record of a pseudo table

Ø  T.select(x)

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

Ø  T.select(x;f)

Write pseudo table records that cannot meet the specified condition into a bin file

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

Replace values of a specified field in a pseudo table with the corresponding referencing values in another table

Ø  T.update(P:D)

Update records in an entity table

Ø  T.update(P:D)

Update records in a pseudo table

Ø  T{x:C,...}

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