MetaTF.Runtime
Class IndexTraceField
java.lang.Object
|
+--MetaTF.Runtime.TraceField
|
+--MetaTF.Runtime.IndexTraceField
- public class IndexTraceField
- extends TraceField
A TraceField representing a field with index type
- Version:
- rel-1-2 ($Revision: 1.1 $, $Date: 2000/12/15 16:35:32 $),
- Author:
- Richard Jones
Field Summary |
(package private) int |
stride
The stride (if encoding is sectionStride) |
Constructor Summary |
IndexTraceField(java.lang.String n,
int it,
java.util.List recs)
Allocate a new object representing a encoding of a field of index type |
IndexTraceField(java.lang.String n,
int it,
java.util.List recs,
int st)
Allocate a new object representing a encoding of a field of index type |
Method Summary |
java.util.List |
getRecords()
|
(package private) long |
getValue()
|
(package private) int |
getValue2()
|
(package private) void |
setInterpretationType(int i)
Set the encoding type of this field (none, default, ...) |
(package private) void |
setValue(long v)
Set the first encoding value |
(package private) void |
setValue(java.lang.String v)
Set the first encoding value |
(package private) void |
setValue2(long v)
Set the second encoding value |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
stride
int stride
- The stride (if encoding is sectionStride)
IndexTraceField
public IndexTraceField(java.lang.String n,
int it,
java.util.List recs,
int st)
- Allocate a new object representing a encoding of a field of index type
- Parameters:
n
- the name of the fieldit
- the encodingrecs
- the cached list of records that this field indexes intost
- the stride
IndexTraceField
public IndexTraceField(java.lang.String n,
int it,
java.util.List recs)
- Allocate a new object representing a encoding of a field of index type
- Parameters:
n
- the name of the fieldit
- the encodingrecs
- the cached list of records that this field indexes into
setInterpretationType
void setInterpretationType(int i)
throws BadRecordException
- Description copied from class:
TraceField
- Set the encoding type of this field (none, default, ...)
- Overrides:
setInterpretationType
in class TraceField
- Following copied from class:
MetaTF.Runtime.TraceField
- Parameters:
i
- the encoding- Throws:
BadRecordException
- IF the encoding does not match the type of the field
setValue
void setValue(long v)
throws BadRecordException
- Description copied from class:
TraceField
- Set the first encoding value
- Overrides:
setValue
in class TraceField
- Following copied from class:
MetaTF.Runtime.TraceField
- Parameters:
i
- the value- Throws:
BadRecordException
- IF the value is inappropriate for this type of field
setValue
void setValue(java.lang.String v)
throws BadRecordException
- Description copied from class:
TraceField
- Set the first encoding value
- Overrides:
setValue
in class TraceField
- Following copied from class:
MetaTF.Runtime.TraceField
- Parameters:
s
- the value (a string)- Throws:
BadRecordException
- IF the value is inappropriate for this type of field
setValue2
void setValue2(long v)
throws BadRecordException
- Description copied from class:
TraceField
- Set the second encoding value
- Overrides:
setValue2
in class TraceField
- Following copied from class:
MetaTF.Runtime.TraceField
- Parameters:
i
- the value- Throws:
BadRecordException
- IF the value is inappropriate for this type of field
getValue
long getValue()
getValue2
int getValue2()
getRecords
public java.util.List getRecords()
Copyright © 2001 - Richard Jones MetaTF