|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tranql.field.FieldAccessor
public class FieldAccessor
Public accessor to a row for use at the end of a transform pipeline.
Field Summary | |
---|---|
protected java.lang.Class |
fieldClass
|
protected int |
slot
|
Constructor Summary | |
---|---|
FieldAccessor(int slot,
java.lang.Class fieldClass)
Constructor specify the slot this is an accessor for. |
Method Summary | |
---|---|
java.lang.Object |
get(Row row)
Return a value from the supplied row. |
java.lang.Class |
getFieldClass()
Return the Java Class that will be returned by fetch and that should be passed to set. |
void |
set(Row row,
java.lang.Object value)
Set a value into the supplied row. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.lang.Class fieldClass
protected final int slot
Constructor Detail |
---|
public FieldAccessor(int slot, java.lang.Class fieldClass)
slot
- the slot whose data this accessor managesfieldClass
- the Class of the Objects the slot will containMethod Detail |
---|
public java.lang.Class getFieldClass()
FieldTransform
getFieldClass
in interface FieldTransform
public java.lang.Object get(Row row)
get
in interface FieldTransform
row
- the row whose data should be returned
public void set(Row row, java.lang.Object value)
set
in interface FieldTransform
row
- the row whose data should be setvalue
- the value to store in the row, may be null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |