All Downloads are FREE. Search and download functionalities are using the official Maven repository.

uk.ac.starlink.table.storage.ColumnStore Maven / Gradle / Ivy

There is a newer version: 4.3
Show newest version
package uk.ac.starlink.table.storage;

import java.io.IOException;

/**
 * Defines an object which can store the data of a column, that is,
 * an array of homogeneous objects.
 * The store is populated sequentially, and when ready provides random access.
 *
 * 

The sequence of calls must be as follows: *

    *
  1. Zero or more calls of {@link #acceptCell}
  2. *
  3. A call of {@link #endCells}
  4. *
  5. Zero or more calls of {@link #createReader}
  6. *
* Behaviour will be undefined if you violate this sequence. * * @author Mark Taylor * @since 21 Jun 2006 */ public interface ColumnStore { /** * Writes a datum to this store. * * @param value the value to add */ void acceptCell( Object value ) throws IOException; /** * Signals that no more calls to acceptCell will be made, * and that calls to createReader may be made. */ void endCells() throws IOException; /** * Returns an object that can provide random access to the * cells written to this store. * * @return column cell reader */ ColumnReader createReader(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy