pl.edu.agh.cast.importer.base.data
Class RawTabularData
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<E>
java.util.LinkedList<RawDataRow>
pl.edu.agh.cast.importer.base.data.RawTabularData
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<RawDataRow>, Collection<RawDataRow>, Deque<RawDataRow>, List<RawDataRow>, Queue<RawDataRow>, ITabularData<RawDataRow>
public class RawTabularData
- extends LinkedList<RawDataRow>
- implements ITabularData<RawDataRow>
Class, which represents the data read from the source data file in a form of a table with unanalyzed records. It
extends LinkedList
of RawDataRow
s, which do not need to have the same number of columns.
- Author:
- AGH CAST Team
- See Also:
- Serialized Form
Methods inherited from class java.util.LinkedList |
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, toArray, toArray |
Methods inherited from interface java.util.List |
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
RawTabularData
public RawTabularData()
- The default constructor.
RawTabularData
public RawTabularData(RawTabularData data)
- The copying constructor. Constructs a raw tabular data containing the raw data rows of the specified data, in the
order they are returned by the specified data's iterator.
- Parameters:
data
- the raw tabular data to copy the raw data rows from
getColumnsCount
public int getColumnsCount()
- Retrieves the number of columns of the tabular data.
- Specified by:
getColumnsCount
in interface ITabularData<RawDataRow>
- Returns:
- the columns count
- See Also:
ITabularData.getColumnsCount()
getColumnCaptions
public List<String> getColumnCaptions()
- Retrieves the captions of columns of the tabular data.
- Specified by:
getColumnCaptions
in interface ITabularData<RawDataRow>
- Returns:
- the columns' captions
- See Also:
ITabularData.getColumnCaptions()
getDistinctTokensInColumn
public List<String> getDistinctTokensInColumn(int columnIndex)
- Retrieves all distinct tokens in column with the specified index.
- Parameters:
columnIndex
- the column index
- Returns:
- distinct tokens in specified column
setSheetName
public void setSheetName(String name)
getSheetName
public String getSheetName()
Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.