Class GdbTableWriter

java.lang.Object
ch.so.agi.filegdb.write.GdbTableWriter
All Implemented Interfaces:
AutoCloseable

public final class GdbTableWriter extends Object implements AutoCloseable
Writes rows into a plain attribute table created by GdbCreator.
  • Method Details

    • name

      public String name()
    • rowCount

      public long rowCount()
    • write

      public long write(Object[] values) throws IOException
      Writes one row; the values are aligned with the table definition fields.
      Throws:
      IOException
    • updateRow

      public void updateRow(long objectId, Object[] values) throws IOException
      Replaces the values of an existing row in place.

      The object id stays allocated and unchanged. The previous row blob is marked deleted, so readers never observe the old values.

      Parameters:
      objectId - one based object id
      values - values aligned with the table definition fields
      Throws:
      IOException
    • deleteRow

      public void deleteRow(long objectId) throws IOException
      Marks a row as deleted.
      Parameters:
      objectId - one based object id; deleting an already deleted row is a no-op
      Throws:
      IOException
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Throws:
      IOException