@Override public long lookupFieldByIdentity(int id, Object obj) { if ((id & StructRegistry.IS_STRUCT_BIT) == 0) { //this is a route so we must covert to struct id = routerConfig.getStructIdForRouteId(id); } return gm.recordTypeData.fieldLookupByIdentity(obj, id); }
/** * Reads int from specified field in pipe * @param association field association showing where to read * @return -1 when absent, else int */ public int readInt(Object association) { return readInt(Pipe.structRegistry(DataInputBlobReader.getBackingPipe(channelReader)).fieldLookupByIdentity(association, DataInputBlobReader.getStructType(channelReader))); }
/** * Visits short field and can add new operations without modifying the structures * @param visitor used to visit short field * @param association field association showing where to visit */ public void visitShort(StructShortListener visitor, Object association) { visitShort(visitor, Pipe.structRegistry(DataInputBlobReader.getBackingPipe(channelReader)).fieldLookupByIdentity(association, DataInputBlobReader.getStructType(channelReader))); }
public boolean isNull(Object association) { return isNull( Pipe.structRegistry(DataInputBlobReader.getBackingPipe(channelReader)) .fieldLookupByIdentity(association, DataInputBlobReader.getStructType(channelReader) )); }
/** * Reads String as double in given field * @param association field association showing where to read * @return converted String, if field is null return -1 */ //returns -1 when absent public double readTextAsDouble(Object association) { return readTextAsDouble(Pipe.structRegistry(DataInputBlobReader.getBackingPipe(channelReader)).fieldLookupByIdentity(association, DataInputBlobReader.getStructType(channelReader))); }
/** * Reads decimal as double from specified field in pipe * @param association field association showing where to read * @return <code>NaN</code> if field is absent, else double */ public double readDecimalAsDouble(Object association) { return readDecimalAsDouble(Pipe.structRegistry(DataInputBlobReader.getBackingPipe(channelReader)).fieldLookupByIdentity(association, DataInputBlobReader.getStructType(channelReader))); }
/** * Reads text from specified field in pipe * @param association field association showing where to read * @return String data */ public String readText(Object association) { return readText(Pipe.structRegistry( DataInputBlobReader.getBackingPipe(channelReader)) .fieldLookupByIdentity(association, DataInputBlobReader.getStructType(channelReader))); }
/** * Reads String as double in given field * @param association field association showing where to read * @return converted String, if field is null return -1 */ //returns -1 when absent public double readTextAsDouble(Object association) { return readTextAsDouble(Pipe.structRegistry(DataInputBlobReader.getBackingPipe(channelReader)).fieldLookupByIdentity(association, DataInputBlobReader.getStructType(channelReader))); }
/** * Reads decimal exponent from specified field in pipe * @param association field association showing where to read * @return 0 when absent, else exponent */ public byte readDecimalExponent(Object association) { return readDecimalExponent(Pipe.structRegistry(DataInputBlobReader.getBackingPipe(channelReader)).fieldLookupByIdentity(association, DataInputBlobReader.getStructType(channelReader))); }
/** * Visits short field and can add new operations without modifying the structures * @param visitor used to visit short field * @param association field association showing where to visit */ public void visitShort(StructShortListener visitor, Object association) { visitShort(visitor, Pipe.structRegistry(DataInputBlobReader.getBackingPipe(channelReader)).fieldLookupByIdentity(association, DataInputBlobReader.getStructType(channelReader))); }
public void visitDouble(StructDoubleListener visitor, Object association) { visitDouble(visitor, Pipe.structRegistry(DataInputBlobReader.getBackingPipe(channelReader)).fieldLookupByIdentity(association, DataInputBlobReader.getStructType(channelReader))); } /**
/** * Visits boolean field and can add new operations without modifying the structures * @param visitor used to visit boolean field * @param association field association showing where to visit */ public void visitBoolean(StructBooleanListener visitor, Object association) { visitBoolean(visitor, Pipe.structRegistry(DataInputBlobReader.getBackingPipe(channelReader)).fieldLookupByIdentity(association, DataInputBlobReader.getStructType(channelReader))); } /**
/** * Reads String as long in given field * @param association field association showing where to read * @return converted String, if field is null return -1 */ //returns -1 when absent public long readTextAsLong(Object association) { return readTextAsLong(Pipe.structRegistry(DataInputBlobReader.getBackingPipe(channelReader)).fieldLookupByIdentity(association, DataInputBlobReader.getStructType(channelReader))); }
/** * Reads boolean from specified field in pipe * @param association field association showing where to read * @return <code>false</code> when absent, else <code>true</code> */ public boolean readBoolean(Object association) { return readBoolean(Pipe.structRegistry(DataInputBlobReader.getBackingPipe(channelReader)).fieldLookupByIdentity(association, DataInputBlobReader.getStructType(channelReader))); }
public void visitDouble(StructDoubleListener visitor, Object association) { visitDouble(visitor, Pipe.structRegistry(DataInputBlobReader.getBackingPipe(channelReader)).fieldLookupByIdentity(association, DataInputBlobReader.getStructType(channelReader))); } /**
/** * Visits boolean field and can add new operations without modifying the structures * @param visitor used to visit boolean field * @param association field association showing where to visit */ public void visitBoolean(StructBooleanListener visitor, Object association) { visitBoolean(visitor, Pipe.structRegistry(DataInputBlobReader.getBackingPipe(channelReader)).fieldLookupByIdentity(association, DataInputBlobReader.getStructType(channelReader))); } /**
/** * Reads text from specified field in pipe * @param association field association showing where to read * @return String data */ public String readText(Object association) { return readText(Pipe.structRegistry(DataInputBlobReader.getBackingPipe(channelReader)).fieldLookupByIdentity(association, DataInputBlobReader.getStructType(channelReader))); }
/** * Reads boolean from specified field in pipe * @param association field association showing where to read * @return <code>false</code> when absent, else <code>true</code> */ public boolean readBoolean(Object association) { return readBoolean(Pipe.structRegistry(DataInputBlobReader.getBackingPipe(channelReader)).fieldLookupByIdentity(association, DataInputBlobReader.getStructType(channelReader))); }
/** * Visits long field and can add new operations without modifying the structures * @param visitor used to visit long field * @param association field association showing where to visit */ public void visitLong(StructLongListener visitor, Object association) { visitLong(visitor, Pipe.structRegistry(DataInputBlobReader.getBackingPipe(channelReader)).fieldLookupByIdentity(association, DataInputBlobReader.getStructType(channelReader))); } /**
/** * Visits decimal field and can add new operations without modifying the structures * @param visitor used to visit decimal field * @param association field association showing where to visit */ public void visitDecimal(StructDecimalListener visitor, Object association) { visitDecimal(visitor, Pipe.structRegistry(DataInputBlobReader.getBackingPipe(channelReader)).fieldLookupByIdentity(association, DataInputBlobReader.getStructType(channelReader))); } /**