Search in sources :

Example 1 with JListAccessor

use of org.apache.asterix.external.library.java.JObjectAccessors.JListAccessor in project asterixdb by apache.

the class JObjectPointableVisitor method visit.

@Override
public IJObject visit(AListVisitablePointable accessor, TypeInfo arg) throws HyracksDataException {
    IJObject result = null;
    IJListAccessor jListAccessor = laccessorToPrinter.get(accessor);
    if (jListAccessor == null) {
        jListAccessor = new JListAccessor(arg.getObjectPool());
        laccessorToPrinter.put(accessor, jListAccessor);
    }
    result = jListAccessor.access(accessor, arg.getObjectPool(), arg.getAtype(), this);
    return result;
}
Also used : IJListAccessor(org.apache.asterix.external.api.IJListAccessor) IJObject(org.apache.asterix.external.api.IJObject) JListAccessor(org.apache.asterix.external.library.java.JObjectAccessors.JListAccessor) IJListAccessor(org.apache.asterix.external.api.IJListAccessor)

Aggregations

IJListAccessor (org.apache.asterix.external.api.IJListAccessor)1 IJObject (org.apache.asterix.external.api.IJObject)1 JListAccessor (org.apache.asterix.external.library.java.JObjectAccessors.JListAccessor)1