it.unimi.di.mg4j.index.remote
Class RemoteOffsetList

java.lang.Object
  extended by java.util.AbstractCollection<Long>
      extended by it.unimi.dsi.fastutil.longs.AbstractLongCollection
          extended by it.unimi.dsi.fastutil.longs.AbstractLongList
              extended by it.unimi.di.mg4j.index.remote.RemoteOffsetList
All Implemented Interfaces:
LongCollection, LongIterable, LongList, LongStack, Stack<Long>, Serializable, Comparable<List<? extends Long>>, Iterable<Long>, Collection<Long>, List<Long>

public class RemoteOffsetList
extends AbstractLongList
implements Serializable

A class accessing remotely a LongList.

Author:
Alessandro Arrabito, Sebastiano Vigna
See Also:
Serialized Form

Nested Class Summary
static class RemoteOffsetList.ServerThread
           
 
Nested classes/interfaces inherited from class it.unimi.dsi.fastutil.longs.AbstractLongList
AbstractLongList.LongSubList
 
Constructor Summary
RemoteOffsetList(SocketAddress addr, int size)
          Creates a new remote long list.
 
Method Summary
 long getLong(int index)
           
 int size()
           
 
Methods inherited from class it.unimi.dsi.fastutil.longs.AbstractLongList
add, add, add, addAll, addAll, addAll, addAll, addAll, addAll, addElements, addElements, compareTo, contains, ensureIndex, ensureRestrictedIndex, equals, get, getElements, hashCode, indexOf, indexOf, iterator, lastIndexOf, lastIndexOf, listIterator, listIterator, longListIterator, longListIterator, longSubList, peek, peekLong, pop, popLong, push, push, rem, remove, remove, removeElements, removeLong, set, set, size, subList, top, topLong, toString
 
Methods inherited from class it.unimi.dsi.fastutil.longs.AbstractLongCollection
add, contains, containsAll, containsAll, isEmpty, longIterator, rem, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toLongArray, toLongArray
 
Methods inherited from class java.util.AbstractCollection
clear
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
add, clear, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray
 
Methods inherited from interface it.unimi.dsi.fastutil.longs.LongCollection
containsAll, longIterator, removeAll, retainAll, toArray, toArray, toLongArray, toLongArray
 
Methods inherited from interface it.unimi.dsi.fastutil.Stack
isEmpty
 

Constructor Detail

RemoteOffsetList

public RemoteOffsetList(SocketAddress addr,
                        int size)
Creates a new remote long list.

Parameters:
addr - the address of the socket assigned to the server thread.
size - the size of the list.
Method Detail

getLong

public long getLong(int index)
Specified by:
getLong in interface LongList

size

public int size()
Specified by:
size in interface Collection<Long>
Specified by:
size in interface List<Long>
Specified by:
size in class AbstractCollection<Long>