Search in sources :

Example 1 with IJObjectAccessor

use of org.apache.asterix.external.api.IJObjectAccessor in project asterixdb by apache.

the class JObjectPointableVisitor method visit.

@Override
public IJObject visit(AFlatValuePointable accessor, TypeInfo arg) throws HyracksDataException {
    ATypeTag typeTag = arg.getTypeTag();
    IJObject result = null;
    IJObjectAccessor jObjectAccessor = flatJObjectAccessors.get(typeTag);
    if (jObjectAccessor == null) {
        jObjectAccessor = JObjectAccessors.createFlatJObjectAccessor(typeTag);
        flatJObjectAccessors.put(typeTag, jObjectAccessor);
    }
    result = jObjectAccessor.access(accessor, arg.getObjectPool());
    return result;
}
Also used : ATypeTag(org.apache.asterix.om.types.ATypeTag) IJObject(org.apache.asterix.external.api.IJObject) IJObjectAccessor(org.apache.asterix.external.api.IJObjectAccessor)

Aggregations

IJObject (org.apache.asterix.external.api.IJObject)1 IJObjectAccessor (org.apache.asterix.external.api.IJObjectAccessor)1 ATypeTag (org.apache.asterix.om.types.ATypeTag)1