use of org.apache.asterix.external.library.java.JObjectAccessors.JRecordAccessor in project asterixdb by apache.
the class JObjectPointableVisitor method visit.
@Override
public IJObject visit(ARecordVisitablePointable accessor, TypeInfo arg) throws HyracksDataException {
IJObject result = null;
IJRecordAccessor jRecordAccessor = raccessorToJObject.get(accessor);
if (jRecordAccessor == null) {
jRecordAccessor = new JRecordAccessor(accessor.getInputRecordType(), arg.getObjectPool());
raccessorToJObject.put(accessor, jRecordAccessor);
}
result = jRecordAccessor.access(accessor, arg.getObjectPool(), (ARecordType) arg.getAtype(), this);
return result;
}
Aggregations