Class TupleNameSpace<T>

java.lang.Object
org.apache.drill.exec.record.metadata.TupleNameSpace<T>
Type Parameters:
T - the type of object representing each column
All Implemented Interfaces:
Iterable<T>

public class TupleNameSpace<T> extends Object implements Iterable<T>
Implementation of a tuple name space. Tuples allow both indexed and named access to their members.
  • Constructor Details

    • TupleNameSpace

      public TupleNameSpace()
  • Method Details

    • add

      public int add(String key, T value)
    • get

      public T get(int index)
    • get

      public T get(String key)
    • indexOf

      public int indexOf(String key)
    • count

      public int count()
    • iterator

      public Iterator<T> iterator()
      Specified by:
      iterator in interface Iterable<T>
    • isEmpty

      public boolean isEmpty()
    • entries

      public List<T> entries()
    • replace

      public void replace(String key, T replaceWith)
    • toString

      public String toString()
      Overrides:
      toString in class Object