org.omnaest.utils.structure.table.concrete.internal.selection.scannable
Class ScannableStripeDataContainerFullScan<E>
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
elementToStripeDataListMap
protected Map<E,List<TableInternal.StripeData<E>>> elementToStripeDataListMap
isValid
protected boolean isValid
ScannableStripeDataContainerFullScan
public ScannableStripeDataContainerFullScan(TableInternal<E> tableInternal,
Table.Column<E> column)
- Parameters:
elementToStripeDataListMap -
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.