/** * Constructs a EOFRecord record and Sets its fields appropriately. * @param in the RecordInputstream to Read the record from */ public ExtSSTRecord(RecordInputStream in1) { field_2_sst_info = new ArrayList(); field_1_strings_per_bucket = in1.ReadShort(); while (in1.Remaining > 0) { ExtSSTInfoSubRecord rec = new ExtSSTInfoSubRecord(in1); field_2_sst_info.Add(rec); } }
/** * Constructs a EOFRecord record and Sets its fields appropriately. * @param in the RecordInputstream to Read the record from */ public ExtSSTRecord(RecordInputStream in1) { field_2_sst_info = new ArrayList(); field_1_strings_per_bucket = in1.ReadShort(); while (in1.Remaining > 0) { ExtSSTInfoSubRecord rec = new ExtSSTInfoSubRecord(in1); field_2_sst_info.Add(rec); } }
public void SetBucketOffsets(int[] bucketAbsoluteOffsets, int[] bucketRelativeOffsets) { this.field_2_sst_info = new ArrayList(bucketAbsoluteOffsets.Length); for (int i = 0; i < bucketAbsoluteOffsets.Length; i++) { ExtSSTInfoSubRecord r = new ExtSSTInfoSubRecord(); r.BucketRecordOffset = (short)bucketRelativeOffsets[i]; r.StreamPos = bucketAbsoluteOffsets[i]; field_2_sst_info.Add(r); } }
public override int Serialize(int offset, byte [] data) { LittleEndian.PutShort(data, 0 + offset, sid); LittleEndian.PutShort(data, 2 + offset, (short)(RecordSize - 4)); LittleEndian.PutShort(data, 4 + offset, field_1_strings_per_bucket); int pos = 6; for (int k = 0; k < NumInfoRecords; k++) { ExtSSTInfoSubRecord rec = GetInfoRecordAt(k); pos += rec.Serialize(pos + offset, data); } return(pos); }
public void SetBucketOffsets( int[] bucketAbsoluteOffsets, int[] bucketRelativeOffsets ) { this.field_2_sst_info = new ArrayList(bucketAbsoluteOffsets.Length); for ( int i = 0; i < bucketAbsoluteOffsets.Length; i++ ) { ExtSSTInfoSubRecord r = new ExtSSTInfoSubRecord(); r.BucketRecordOffset=(short)bucketRelativeOffsets[i]; r.StreamPos=bucketAbsoluteOffsets[i]; field_2_sst_info.Add(r); } }
public void AddInfoRecord(ExtSSTInfoSubRecord rec) { field_2_sst_info.Add(rec); }
public void AddInfoRecord(ExtSSTInfoSubRecord rec) { field_2_sst_info.Add(rec); }