/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

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