private void finish() throws IOException { UnfilteredSerializer.serializer.writeEndOfPartition(writer); // It's possible we add no rows, just a top level deletion if (written == 0) return; // the last column may have fallen on an index boundary already. if not, index it explicitly. if (firstClustering != null) addIndexBlock(); // If we serialize the IndexInfo objects directly in the code above into 'buffer', // we have to write the offsts to these here. The offsets have already been are collected // in indexOffsets[]. buffer is != null, if it exceeds Config.column_index_cache_size_in_kb. // In the other case, when buffer==null, the offsets are serialized in RowIndexEntry.IndexedEntry.serialize(). if (buffer != null) RowIndexEntry.Serializer.serializeOffsets(buffer, indexOffsets, columnIndexCount); // we should always have at least one computed index block, but we only write it out if there is more than that. assert columnIndexCount > 0 && headerLength >= 0; }
private void finish() throws IOException { UnfilteredSerializer.serializer.writeEndOfPartition(writer); // It's possible we add no rows, just a top level deletion if (written == 0) return; // the last column may have fallen on an index boundary already. if not, index it explicitly. if (firstClustering != null) addIndexBlock(); // If we serialize the IndexInfo objects directly in the code above into 'buffer', // we have to write the offsts to these here. The offsets have already been are collected // in indexOffsets[]. buffer is != null, if it exceeds Config.column_index_cache_size_in_kb. // In the other case, when buffer==null, the offsets are serialized in RowIndexEntry.IndexedEntry.serialize(). if (buffer != null) RowIndexEntry.Serializer.serializeOffsets(buffer, indexOffsets, columnIndexCount); // we should always have at least one computed index block, but we only write it out if there is more than that. assert columnIndexCount > 0 && headerLength >= 0; }
private void finish() throws IOException { UnfilteredSerializer.serializer.writeEndOfPartition(writer); // It's possible we add no rows, just a top level deletion if (written == 0) return; // the last column may have fallen on an index boundary already. if not, index it explicitly. if (firstClustering != null) addIndexBlock(); // If we serialize the IndexInfo objects directly in the code above into 'buffer', // we have to write the offsts to these here. The offsets have already been are collected // in indexOffsets[]. buffer is != null, if it exceeds Config.column_index_cache_size_in_kb. // In the other case, when buffer==null, the offsets are serialized in RowIndexEntry.IndexedEntry.serialize(). if (buffer != null) RowIndexEntry.Serializer.serializeOffsets(buffer, indexOffsets, columnIndexCount); // we should always have at least one computed index block, but we only write it out if there is more than that. assert columnIndexCount > 0 && headerLength >= 0; }
private void finish() throws IOException { UnfilteredSerializer.serializer.writeEndOfPartition(writer); // It's possible we add no rows, just a top level deletion if (written == 0) return; // the last column may have fallen on an index boundary already. if not, index it explicitly. if (firstClustering != null) addIndexBlock(); // If we serialize the IndexInfo objects directly in the code above into 'buffer', // we have to write the offsts to these here. The offsets have already been are collected // in indexOffsets[]. buffer is != null, if it exceeds Config.column_index_cache_size_in_kb. // In the other case, when buffer==null, the offsets are serialized in RowIndexEntry.IndexedEntry.serialize(). if (buffer != null) RowIndexEntry.Serializer.serializeOffsets(buffer, indexOffsets, columnIndexCount); // we should always have at least one computed index block, but we only write it out if there is more than that. assert columnIndexCount > 0 && headerLength >= 0; }