/alaspatial/src/main/java/org/ala/spatial/analysis/index/IndexedRecord2.java
Java | 55 lines | 17 code | 4 blank | 34 comment | 0 complexity | bc838598d8cc4093480b8eb807189afe MD5 | raw file
1package org.ala.spatial.analysis.index; 2 3import java.io.Serializable; 4 5/** 6 * record for indexing of a species name (or other level such as genus) 7 * against sorted records file 8 * 9 * @author adam 10 * 11 */ 12public class IndexedRecord2 implements Serializable { 13 14 static final long serialVersionUID = 238184888719362147L; 15 /** 16 * String value of this record 17 */ 18 public String name; 19 /** 20 * first record position in sorted records file 21 */ 22 public int record_start; 23 /** 24 * last record position in sorted records file 25 */ 26 public int record_end; 27 /** 28 * indexed record type, arbitary 29 * 30 * current usage as sorted records file column index 31 */ 32 public byte type; 33 /** 34 * array position 35 */ 36 public int pos; 37 38 /** 39 * constructor for new IndexedRecord 40 * @param _name value of this record as String 41 * @param _file_start first char position in sorted records file 42 * @param _file_end last char position in sorted records file 43 * @param _record_start first record position in sorted records file 44 * @param _record_end last record position in sorted records file 45 * @param _type type as byte, current usage as sorted records file 46 * column index 47 */ 48 public IndexedRecord2(String _name, int _record_start, int _record_end, byte _type, int _pos) { 49 name = _name; 50 record_start = _record_start; 51 record_end = _record_end; 52 type = _type; 53 pos = _pos; 54 } 55}