public List<K> keyList() { int size = size(); Set<K> keys = keySet(); List<K> children = new ArrayList<>(size); for (K key : keys) { children.add(getOrdinal(key), key); } return children; }
/** * Get a child vector by name. * @param name the name of the child to return * @return a vector with its corresponding ordinal mapping if field exists or null. */ @Override public VectorWithOrdinal getChildVectorWithOrdinal(String name) { final int ordinal = vectors.getOrdinal(name); if (ordinal < 0) { return null; } final ValueVector vector = vectors.getByOrdinal(ordinal); return new VectorWithOrdinal(vector, ordinal); }