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;
}
Aggregations