java.lang.Object
de.siegmar.fastcsv.reader.CsvIndex
- All Implemented Interfaces:
Serializable
Index built by
IndexedCsvReader
to access large CSV data files.- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
The length of an optional BOM header.private final byte
The comment character used when building this index.private final CommentStrategy
The comment strategy used when building this index.private final byte
The field separator used when building this index.private final long
The CSV file size this index was built for.private final List
<CsvIndex.CsvPage> The pages this index is partitioned.private final byte
The quote character used when building this index.private final long
The total number of records the CSV file contains this index was built for.private static final long
-
Constructor Summary
ConstructorsConstructorDescriptionCsvIndex
(int bomHeaderLength, long fileSize, byte fieldSeparator, byte quoteCharacter, CommentStrategy commentStrategy, byte commentCharacter, long recordCounter, List<CsvIndex.CsvPage> pages) -
Method Summary
Modifier and TypeMethodDescriptionboolean
(package private) int
(package private) byte
(package private) CommentStrategy
(package private) byte
(package private) long
(package private) CsvIndex.CsvPage
getPage
(int pageNumber) int
Gets the number of pages the file contents is partitioned to.(package private) byte
long
Gets the number of records the file contains.int
hashCode()
toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
bomHeaderLength
private final int bomHeaderLengthThe length of an optional BOM header. -
fileSize
private final long fileSizeThe CSV file size this index was built for. -
fieldSeparator
private final byte fieldSeparatorThe field separator used when building this index. -
quoteCharacter
private final byte quoteCharacterThe quote character used when building this index. -
commentStrategy
The comment strategy used when building this index. -
commentCharacter
private final byte commentCharacterThe comment character used when building this index. -
recordCounter
private final long recordCounterThe total number of records the CSV file contains this index was built for. -
pages
The pages this index is partitioned.
-
-
Constructor Details
-
CsvIndex
CsvIndex(int bomHeaderLength, long fileSize, byte fieldSeparator, byte quoteCharacter, CommentStrategy commentStrategy, byte commentCharacter, long recordCounter, List<CsvIndex.CsvPage> pages)
-
-
Method Details
-
getBomHeaderLength
int getBomHeaderLength() -
getFileSize
long getFileSize() -
getFieldSeparator
byte getFieldSeparator() -
getQuoteCharacter
byte getQuoteCharacter() -
getCommentStrategy
CommentStrategy getCommentStrategy() -
getCommentCharacter
byte getCommentCharacter() -
getPageCount
public int getPageCount()Gets the number of pages the file contents is partitioned to.- Returns:
- the number of pages the file contents is partitioned to
-
getRecordCount
public long getRecordCount()Gets the number of records the file contains.- Returns:
- the number of records the file contains
-
getPage
-
equals
-
hashCode
public int hashCode() -
toString
-