Class IndexSummary.IndexSummarySerializer

  • Enclosing class:
    IndexSummary

    public static class IndexSummary.IndexSummarySerializer
    extends java.lang.Object
    • Constructor Detail

      • IndexSummarySerializer

        public IndexSummarySerializer()
    • Method Detail

      • serialize

        public void serialize​(IndexSummary t,
                              DataOutputPlus out)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • deserialize

        public <T extends java.io.InputStream & DataInputPlusIndexSummary deserialize​(T in,
                                                                                        IPartitioner partitioner,
                                                                                        int expectedMinIndexInterval,
                                                                                        int maxIndexInterval)
                                                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • deserializeFirstLastKey

        public Pair<DecoratedKey,​DecoratedKey> deserializeFirstLastKey​(DataInputPlus.DataInputStreamPlus in,
                                                                             IPartitioner partitioner)
                                                                      throws java.io.IOException
        Deserializes the first and last key stored in the summary

        Only for use by offline tools like SSTableMetadataViewer, otherwise SSTable.first/last should be used.

        Throws:
        java.io.IOException