erjang.m.ets
Class Native

java.lang.Object
  extended by erjang.ENative
      extended by erjang.m.ets.Native

public class Native
extends ENative

This class implements the BIFs in ets.


Field Summary
static EAtom am_$end_of_table
          The atom '$end_of_table'
static EAtom am_bag
           
static EAtom am_duplicate_bag
           
static EAtom am_fixed
           
static EAtom am_heir
           
static EAtom am_keypos
           
static EAtom am_memory
           
static EAtom am_name
           
static EAtom am_named_table
           
static EAtom am_node
           
static EAtom am_none
           
static EAtom am_ordered_set
           
static EAtom am_owner
           
static EAtom am_private
           
static EAtom am_protected
           
static EAtom am_protection
           
static EAtom am_public
           
static EAtom am_safe_fixed
           
static EAtom am_set
           
static EAtom am_size
           
static EAtom am_stats
           
static EAtom am_type
           
static EAtom am_write_concurrency
           
 
Constructor Summary
Native()
           
 
Method Summary
static ESeq all()
           
static EAtom delete_all_objects(EProc caller, EObject nameOrTid)
           
static EObject delete_object(EProc proc, EObject tab, EObject obj)
          this is not documented anywhere, but referenced from the module global
static EAtom delete(EProc caller, EObject nameOrTid)
           
static EObject delete(EProc proc, EObject tab, EObject key)
           
static EObject first(EProc proc, EObject tab)
           
static EObject info(EProc proc, EObject nameOrTid)
           
static EObject info(EProc proc, EObject nameOrTid, EObject item)
           
static EObject insert_new(EProc proc, EObject tab, EObject oneOrMore)
           
static EObject insert(EProc proc, EObject tab, EObject oneOrMore)
           
static EObject is_compiled_ms(EObject spec)
           
static EObject last(EObject obj)
           
static EObject lookup_element(EProc proc, EObject tab, EObject key, EObject pos)
           
static ESeq lookup(EProc proc, EObject tab, EObject key)
           
static EObject match_object(EProc caller, EObject nameOrTid, EObject spec)
           
static EObject match_spec_compile(EObject spec)
           
static EObject match_spec_run_r(EObject list, EObject matchSpec, EObject tail_arg)
           
static EObject member(EProc proc, EObject tab, EObject key)
          this is not documented anywhere, but referenced from the module global
static EObject new$(EProc self, EObject name, EObject options)
          Implements ets:new/2.
static EObject next(EProc proc, EObject tab, EObject key)
           
static EObject prev(EObject obj, EObject obj2)
           
static EObject repair_continuation(EObject cont, EObject ms)
           
static EObject safe_fixtable(EProc proc, EObject tab, EObject onOff)
           
static ESmall select_count(EProc caller, EObject nameOrTid, EObject matchSpec)
           
static EObject select(EObject obj1)
           
static ESeq select(EProc caller, EObject nameOrTid, EObject matchSpec)
           
static EObject select(EProc caller, EObject nameOrTid, EObject matchSpec, EObject limit)
           
static EObject setopts(EProc proc, EObject tab, EObject opts)
           
static EObject slot(EProc caller, EObject nameOrTid, EObject i)
           
static EObject update_counter(EProc proc, EObject tab, EObject key, EObject upd)
          this is not documented anywhere, but referenced from the module global
static EObject update_element(EProc proc, EObject tab, EObject key, EObject upd)
           
 
Methods inherited from class erjang.ENative
getNativeClasses
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

am_$end_of_table

public static final EAtom am_$end_of_table
The atom '$end_of_table'


am_set

public static final EAtom am_set

am_ordered_set

public static final EAtom am_ordered_set

am_bag

public static final EAtom am_bag

am_duplicate_bag

public static final EAtom am_duplicate_bag

am_public

public static final EAtom am_public

am_private

public static final EAtom am_private

am_protected

public static final EAtom am_protected

am_owner

public static final EAtom am_owner

am_heir

public static final EAtom am_heir

am_keypos

public static final EAtom am_keypos

am_name

public static final EAtom am_name

am_size

public static final EAtom am_size

am_memory

public static final EAtom am_memory

am_node

public static final EAtom am_node

am_named_table

public static final EAtom am_named_table

am_write_concurrency

public static final EAtom am_write_concurrency

am_type

public static final EAtom am_type

am_none

public static final EAtom am_none

am_protection

public static final EAtom am_protection

am_fixed

public static final EAtom am_fixed

am_safe_fixed

public static final EAtom am_safe_fixed

am_stats

public static final EAtom am_stats
Constructor Detail

Native

public Native()
Method Detail

new$

public static EObject new$(EProc self,
                           EObject name,
                           EObject options)
Implements ets:new/2.

Parameters:
name - an atom
options - [Option]

insert

public static EObject insert(EProc proc,
                             EObject tab,
                             EObject oneOrMore)

delete

public static EObject delete(EProc proc,
                             EObject tab,
                             EObject key)

lookup_element

public static EObject lookup_element(EProc proc,
                                     EObject tab,
                                     EObject key,
                                     EObject pos)

lookup

public static ESeq lookup(EProc proc,
                          EObject tab,
                          EObject key)

insert_new

public static EObject insert_new(EProc proc,
                                 EObject tab,
                                 EObject oneOrMore)

delete

public static EAtom delete(EProc caller,
                           EObject nameOrTid)

delete_all_objects

public static EAtom delete_all_objects(EProc caller,
                                       EObject nameOrTid)

match_spec_compile

public static EObject match_spec_compile(EObject spec)

is_compiled_ms

public static EObject is_compiled_ms(EObject spec)

prev

public static EObject prev(EObject obj,
                           EObject obj2)

first

public static EObject first(EProc proc,
                            EObject tab)

slot

public static EObject slot(EProc caller,
                           EObject nameOrTid,
                           EObject i)

all

public static ESeq all()

last

public static EObject last(EObject obj)

match_object

public static EObject match_object(EProc caller,
                                   EObject nameOrTid,
                                   EObject spec)

next

public static EObject next(EProc proc,
                           EObject tab,
                           EObject key)

safe_fixtable

public static EObject safe_fixtable(EProc proc,
                                    EObject tab,
                                    EObject onOff)

repair_continuation

public static EObject repair_continuation(EObject cont,
                                          EObject ms)

select

public static EObject select(EObject obj1)

select_count

public static ESmall select_count(EProc caller,
                                  EObject nameOrTid,
                                  EObject matchSpec)

select

public static ESeq select(EProc caller,
                          EObject nameOrTid,
                          EObject matchSpec)

select

public static EObject select(EProc caller,
                             EObject nameOrTid,
                             EObject matchSpec,
                             EObject limit)

match_spec_run_r

public static EObject match_spec_run_r(EObject list,
                                       EObject matchSpec,
                                       EObject tail_arg)

setopts

public static EObject setopts(EProc proc,
                              EObject tab,
                              EObject opts)

info

public static EObject info(EProc proc,
                           EObject nameOrTid)

info

public static EObject info(EProc proc,
                           EObject nameOrTid,
                           EObject item)

member

public static EObject member(EProc proc,
                             EObject tab,
                             EObject key)
this is not documented anywhere, but referenced from the module global


delete_object

public static EObject delete_object(EProc proc,
                                    EObject tab,
                                    EObject obj)
this is not documented anywhere, but referenced from the module global


update_counter

public static EObject update_counter(EProc proc,
                                     EObject tab,
                                     EObject key,
                                     EObject upd)
this is not documented anywhere, but referenced from the module global


update_element

public static EObject update_element(EProc proc,
                                     EObject tab,
                                     EObject key,
                                     EObject upd)