public abstract class ColumnStorage extends Object
ByteStore type can be used,
 but there are special entry points for use with storage in named files,
 which makes it possible to use this class for column storage that
 persists beyond the length of a JVM.| Constructor and Description | 
|---|
ColumnStorage()  | 
| Modifier and Type | Method and Description | 
|---|---|
abstract CachedColumn | 
createColumn(java.util.function.Supplier<ByteStore> byteStoreSupplier)
Creates a CachedColumn for read/write of a data array given any
 ByteStore type. 
 | 
abstract CachedColumn | 
createDiskColumn(File[] files)
Returns a CachedColumn that can be used to read/write data using
 disk storage. 
 | 
abstract CachedReader | 
createDiskReader(File[] files)
Returns a CachedReader that can be used to read data previously
 written by this storage object. 
 | 
abstract long | 
getDiskRowCount(File[] files)
Returns an estimate of the number of rows contained in files
 previously written by this storage object. 
 | 
abstract File[] | 
getFileNames(File baseFile)
Returns an array of filenames that can be used for disk-based I/O
 of data using this storage type. 
 | 
static ColumnStorage | 
getStorage(StorageType type)
Returns a ColumnStorage object suitable for use with a given StorageType. 
 | 
public abstract CachedColumn createColumn(java.util.function.Supplier<ByteStore> byteStoreSupplier)
byteStoreSupplier - factory for byte storage instancespublic abstract File[] getFileNames(File baseFile)
baseFile - context filenamepublic abstract CachedColumn createDiskColumn(File[] files) throws IOException
files array should be a value
 returned from getFileNames method.files - array of filenames into which bytes will be writtenIOExceptionpublic abstract CachedReader createDiskReader(File[] files) throws IOException
createDiskColumn method invoked with
 the same files argument, the reader returned by
 this method will be able to retrieve it.files - array of filenames from which bytes will be readIOExceptionpublic abstract long getDiskRowCount(File[] files)
files array should be a value
 returned from getFileNames method.
 An approximate value is permitted; if no information is available,
 -1 may be returned.files - array of filenames from which bytes will be readpublic static ColumnStorage getStorage(StorageType type)
type - storage typeCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.