Search in sources :

Example 1 with IJRecordAccessor

use of org.apache.asterix.external.api.IJRecordAccessor 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;
}
Also used : IJObject(org.apache.asterix.external.api.IJObject) JRecordAccessor(org.apache.asterix.external.library.java.JObjectAccessors.JRecordAccessor) IJRecordAccessor(org.apache.asterix.external.api.IJRecordAccessor) ARecordType(org.apache.asterix.om.types.ARecordType) IJRecordAccessor(org.apache.asterix.external.api.IJRecordAccessor)

Aggregations

IJObject (org.apache.asterix.external.api.IJObject)1 IJRecordAccessor (org.apache.asterix.external.api.IJRecordAccessor)1 JRecordAccessor (org.apache.asterix.external.library.java.JObjectAccessors.JRecordAccessor)1 ARecordType (org.apache.asterix.om.types.ARecordType)1