Class TableList<State extends TableState>

java.lang.Object
com.illumon.iris.web.shared.state.TableList<State>
All Implemented Interfaces:
MappedIterable<State>, Iterable<State>

public class TableList<State extends TableState> extends Object implements MappedIterable<State>
A linked list of TableHandle and TableState tuples, addressed from a root Table which has a String name from a persistent query. In cases where there is no originating String name, the first root table int clientId will be toString()d as the name. This type is purposely not serializable, as the client and server are each intended to keep their own copy of TableList, to represent their current interpretation of "what the client is viewing". In the future, we may want to give copy() an optional name parameter, so we can have nice debug names for things.
  • Constructor Details

    • TableList

      public TableList(String name, State state)
    • TableList

      public TableList(TableList from)
    • TableList

      public TableList(TableList<State> from, TableHandle end)
      Create a new TableList from an existing table list, truncated to the given TableHandle, if that table handle exists (we will assert this invariant to be true)
      Parameters:
      from - - The source TableList to get rootName and root handle from
      end - - The position in the given list to truncate to. This truncation only applies to the RootNode.tail, which means a tail's .next pointer might be filled in, even though it is the logical "tail" position.
  • Method Details