Class GDataObject

    • Field Detail

      • VECTOR_LINE_DATA

        public static final Integer VECTOR_LINE_DATA
      • VECTOR_AREA_DATA

        public static final Integer VECTOR_AREA_DATA
      • dataIsVolatile

        protected boolean dataIsVolatile
      • dstore

        protected org.hortonmachine.gears.io.grasslegacy.utils.GDataObject.DataStore dstore
      • rafHandles

        public static Vector rafHandles
    • Constructor Detail

      • GDataObject

        public GDataObject()
      • GDataObject

        public GDataObject​(int dtype,
                           int[] xyz,
                           int[] c)
        Constructor for Point data object with xyz + some other column data.
      • GDataObject

        public GDataObject​(int dtype,
                           int use)
        Constructor for Vector data object.
      • GDataObject

        public GDataObject​(int dtype,
                           ByteBuffer buf)
        Constructor for Raster data object.
      • GDataObject

        public GDataObject​(int dtype,
                           int len,
                           int use)
        Constructor for Raster data object of len size.
    • Method Detail

      • hasData

        public boolean hasData()
      • getReadBuffer

        public ByteBuffer getReadBuffer()
      • setColumnNames

        public void setColumnNames​(String[] names)
      • setColumnName

        public void setColumnName​(int col,
                                  String name)
      • getColumnName

        public String getColumnName​(int col)
      • getColumnType

        public int getColumnType​(int col)
      • get

        public Object get​(int row,
                          int col)
        Returns the data of this objects row and column cell.
      • writeRow

        public void writeRow​(Vector v)
        Extract the number of columns worth of data from the vector and write to the data store.
      • setInt

        public void setInt​(int row,
                           int col,
                           int val)
        Set the data at the cell given by the row and column specified to integer value.
      • setFloat

        public void setFloat​(int row,
                             int col,
                             float val)
        Set the data at the cell given by the row and column specified to float value.
      • setDouble

        public void setDouble​(int row,
                              int col,
                              double val)
        Set the data at the cell given by the row and column specified to double value.
      • setString

        public void setString​(int row,
                              int col,
                              String val)
        Set the data at the cell given by the row and column specified to String value.
      • enumerator

        public Enumeration enumerator()
        Returns an enumeration of the data of this object.
      • getColumnCount

        public int getColumnCount()
        Returns the number of columns in this data object.
      • getRowCount

        public int getRowCount()
        Returns the number of rows in this data object.