/alaspatial/src/main/java/org/ala/spatial/analysis/index/IndexedRecord2.java
http://alageospatialportal.googlecode.com/ · Java · 55 lines · 17 code · 4 blank · 34 comment · 0 complexity · bc838598d8cc4093480b8eb807189afe MD5 · raw file
- package org.ala.spatial.analysis.index;
- import java.io.Serializable;
- /**
- * record for indexing of a species name (or other level such as genus)
- * against sorted records file
- *
- * @author adam
- *
- */
- public class IndexedRecord2 implements Serializable {
- static final long serialVersionUID = 238184888719362147L;
- /**
- * String value of this record
- */
- public String name;
- /**
- * first record position in sorted records file
- */
- public int record_start;
- /**
- * last record position in sorted records file
- */
- public int record_end;
- /**
- * indexed record type, arbitary
- *
- * current usage as sorted records file column index
- */
- public byte type;
- /**
- * array position
- */
- public int pos;
- /**
- * constructor for new IndexedRecord
- * @param _name value of this record as String
- * @param _file_start first char position in sorted records file
- * @param _file_end last char position in sorted records file
- * @param _record_start first record position in sorted records file
- * @param _record_end last record position in sorted records file
- * @param _type type as byte, current usage as sorted records file
- * column index
- */
- public IndexedRecord2(String _name, int _record_start, int _record_end, byte _type, int _pos) {
- name = _name;
- record_start = _record_start;
- record_end = _record_end;
- type = _type;
- pos = _pos;
- }
- }