示例#1
0
 @Override
 public FieldReader reader(String name) {
   FieldReader reader = fields.get(name);
   if (reader == null) {
     ValueVector child = vector.getChild(name);
     if (child == null) {
       reader = NullReader.INSTANCE;
     } else {
       reader = child.getAccessor().getReader();
     }
     fields.put(name, reader);
     reader.setPosition(idx());
   }
   return reader;
 }
示例#2
0
 @Override
 public java.util.Iterator<String> iterator() {
   return vector.fieldNameIterator();
 }
示例#3
0
 @Override
 public MajorType getType() {
   return vector.getField().getType();
 }
示例#4
0
 @Override
 public Object readObject() {
   return vector.getAccessor().getObject(idx());
 }