org.omnaest.utils.structure.table.concrete.internal.selection.scannable
Class ScannableStripeDataContainerFullScan<E>

java.lang.Object
  extended by org.omnaest.utils.structure.table.concrete.internal.selection.scannable.ScannableStripeDataContainerFullScan<E>
Type Parameters:
E -
All Implemented Interfaces:
ScannableStripeDataContainer<E>

public class ScannableStripeDataContainerFullScan<E>
extends Object
implements ScannableStripeDataContainer<E>

Author:
Omnaest
See Also:
ScannableStripeDataContainer

Field Summary
protected  Map<E,List<TableInternal.StripeData<E>>> elementToStripeDataListMap
           
protected  boolean isValid
           
 
Constructor Summary
ScannableStripeDataContainerFullScan(TableInternal<E> tableInternal, Table.Column<E> column)
           
 
Method Summary
 void clear()
           
 boolean containsKey(E key)
           
protected  boolean createIndex(TableInternal<E> tableInternal, Table.Column<E> column)
           
 List<TableInternal.StripeData<E>> determineStripeDataListContainingElement(E key)
           
 List<TableInternal.StripeData<E>> determineStripeDataListForRange(E fromKey, E toKey)
          Returns a new List containing all TableInternal.StripeData instances containing elements which are between the fromKey and the toKey.
 boolean isValid()
          Returns true if the underlying structure could be build without errors
 Set<E> keySet()
           
 int size()
           
 List<TableInternal.StripeData<E>> values()
          Returns a new List containg all TableInternal.StripeData instances within the ScannableStripeDataContainerIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

elementToStripeDataListMap

protected Map<E,List<TableInternal.StripeData<E>>> elementToStripeDataListMap

isValid

protected boolean isValid
Constructor Detail

ScannableStripeDataContainerFullScan

public ScannableStripeDataContainerFullScan(TableInternal<E> tableInternal,
                                            Table.Column<E> column)
Parameters:
elementToStripeDataListMap -
Method Detail

createIndex

protected boolean createIndex(TableInternal<E> tableInternal,
                              Table.Column<E> column)
Parameters:
tableInternal -
column -
Returns:
true: the index could be successfully created

determineStripeDataListForRange

public List<TableInternal.StripeData<E>> determineStripeDataListForRange(E fromKey,
                                                                         E toKey)
Description copied from interface: ScannableStripeDataContainer
Returns a new List containing all TableInternal.StripeData instances containing elements which are between the fromKey and the toKey. The upper and lower bound of TableInternal.StripeDatas will be included in the result.

Specified by:
determineStripeDataListForRange in interface ScannableStripeDataContainer<E>
Returns:

containsKey

public boolean containsKey(E key)
Specified by:
containsKey in interface ScannableStripeDataContainer<E>
Returns:
See Also:
Map.containsKey(java.lang.Object)

keySet

public Set<E> keySet()
Specified by:
keySet in interface ScannableStripeDataContainer<E>
Returns:
See Also:
SortedMap.keySet()

clear

public void clear()
Specified by:
clear in interface ScannableStripeDataContainer<E>
See Also:
Map.clear()

size

public int size()
Specified by:
size in interface ScannableStripeDataContainer<E>
Returns:
See Also:
Map.size()

values

public List<TableInternal.StripeData<E>> values()
Description copied from interface: ScannableStripeDataContainer
Returns a new List containg all TableInternal.StripeData instances within the ScannableStripeDataContainerIndex

Specified by:
values in interface ScannableStripeDataContainer<E>
Returns:

isValid

public boolean isValid()
Description copied from interface: ScannableStripeDataContainer
Returns true if the underlying structure could be build without errors

Specified by:
isValid in interface ScannableStripeDataContainer<E>
Returns:

determineStripeDataListContainingElement

public List<TableInternal.StripeData<E>> determineStripeDataListContainingElement(E key)
Specified by:
determineStripeDataListContainingElement in interface ScannableStripeDataContainer<E>
Returns:
See Also:
Map.get(java.lang.Object)


Copyright © 2011. All Rights Reserved.