public ExtSSTRecord createExtSSTRecord(int sstOffset) {if (bucketAbsoluteOffsets == null || bucketRelativeOffsets == null) {throw new IllegalStateException("SST record has not yet been serialized.");}ExtSSTRecord extSST = new ExtSSTRecord();extSST.setNumStringsPerBucket((short)8);int[] absoluteOffsets = bucketAbsoluteOffsets.clone();int[] relativeOffsets = bucketRelativeOffsets.clone();for ( int i = 0; i < absoluteOffsets.length; i++ ) {absoluteOffsets[i] += sstOffset;}extSST.setBucketOffsets(absoluteOffsets, relativeOffsets);return extSST;}
public ExtSSTRecord CreateExtSSTRecord(int sstOffset){if (bucketAbsoluteOffsets == null || bucketAbsoluteOffsets == null)throw new InvalidOperationException("SST record has not yet been Serialized.");ExtSSTRecord extSST = new ExtSSTRecord();extSST.NumStringsPerBucket=((short)8);int[] absoluteOffsets = (int[])bucketAbsoluteOffsets.Clone();int[] relativeOffsets = (int[])bucketRelativeOffsets.Clone();for (int i = 0; i < absoluteOffsets.Length; i++)absoluteOffsets[i] += sstOffset;extSST.SetBucketOffsets(absoluteOffsets, relativeOffsets);return extSST;}