MetaTF API

MetaTF.Runtime
Class Section

java.lang.Object
  |
  +--MetaTF.Runtime.Section

public abstract class Section
extends java.lang.Object

Superclass for global and user-defined sections Provides: 1. putMetadata(current section number, field, encoding [, values...]) methods to change encodings of all instances of given field in this section before emitting the appropriate metadata record.

Version:
rel-1-2 ($Revision: 1.1 $, $Date: 2000/12/15 16:35:32 $),
Author:
Richard Jones

Field Summary
(package private) static java.util.List[][] lookupField
          The lookupField data structure that supports changing all encodings of a given field name in a section.
 
Constructor Summary
Section()
           
 
Method Summary
(package private) static void addLookupField(int s, int f, TraceField tf)
          Add a TraceField to the lookupField list
(package private) static void changeInterpretation(int section, int field, int encoding)
          Change the encodings of all fields of this name.
(package private) static void changeInterpretation(int section, int field, int encoding, long v1)
          Change the encodings of all fields of this name.
(package private) static void changeInterpretation(int section, int field, int encoding, long v1, long v2)
          Change the encodings of all fields of this name.
(package private) static void changeInterpretation(int section, int field, int encoding, java.lang.String v)
          Change the encodings of all fields of this name.
static void debug()
           
(package private) static void initLookup(int n, int f)
          Initialise the lookupField data structure that support metadata changes to every field of a given name in a section.
static void initLookupList(int s, int n)
          Start a new list for a name in this section
protected static void putSectionMetadata(LowLevelWriter llw, int sectionNumber, int f, int i)
           
protected static void putSectionMetadata(LowLevelWriter llw, int sectionNumber, int f, int i, long v)
           
protected static void putSectionMetadata(LowLevelWriter llw, int sectionNumber, int f, int i, long v1, long v2)
           
protected static void putSectionMetadata(LowLevelWriter llw, int sectionNumber, int f, int i, java.lang.String v)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lookupField

static java.util.List[][] lookupField
The lookupField data structure that supports changing all encodings of a given field name in a section. Implemented as List
Constructor Detail

Section

public Section()
Method Detail

debug

public static void debug()

initLookup

static void initLookup(int n,
                       int f)
Initialise the lookupField data structure that support metadata changes to every field of a given name in a section.
Parameters:
n - the number of sections
f - the number of field names

initLookupList

public static void initLookupList(int s,
                                  int n)
Start a new list for a name in this section
Parameters:
s - the section number
n - the encoded number of the field name

addLookupField

static void addLookupField(int s,
                           int f,
                           TraceField tf)
Add a TraceField to the lookupField list
Parameters:
s - the section number
f - the encoded field number
tf - the TraceField

putSectionMetadata

protected static void putSectionMetadata(LowLevelWriter llw,
                                         int sectionNumber,
                                         int f,
                                         int i)
                                  throws BadRecordException,
                                         java.io.IOException

putSectionMetadata

protected static void putSectionMetadata(LowLevelWriter llw,
                                         int sectionNumber,
                                         int f,
                                         int i,
                                         long v)
                                  throws BadRecordException,
                                         java.io.IOException

putSectionMetadata

protected static void putSectionMetadata(LowLevelWriter llw,
                                         int sectionNumber,
                                         int f,
                                         int i,
                                         long v1,
                                         long v2)
                                  throws BadRecordException,
                                         java.io.IOException

putSectionMetadata

protected static void putSectionMetadata(LowLevelWriter llw,
                                         int sectionNumber,
                                         int f,
                                         int i,
                                         java.lang.String v)
                                  throws BadRecordException,
                                         java.io.IOException

changeInterpretation

static void changeInterpretation(int section,
                                 int field,
                                 int encoding)
                          throws BadRecordException
Change the encodings of all fields of this name.
Parameters:
section - the number of the section
field - the encoding of the field to be changed

changeInterpretation

static void changeInterpretation(int section,
                                 int field,
                                 int encoding,
                                 long v1)
                          throws BadRecordException
Change the encodings of all fields of this name.
Parameters:
section - the number of the section
field - the encoding of the field to be changed

changeInterpretation

static void changeInterpretation(int section,
                                 int field,
                                 int encoding,
                                 java.lang.String v)
                          throws BadRecordException
Change the encodings of all fields of this name.
Parameters:
section - the number of the section
field - the encoding of the field to be changed

changeInterpretation

static void changeInterpretation(int section,
                                 int field,
                                 int encoding,
                                 long v1,
                                 long v2)
                          throws BadRecordException
Change the encodings of all fields of this name.
Parameters:
section - the number of the section
field - the encoding of the field to be changed

MetaTF API

Copyright © 2001 - Richard Jones     MetaTF