Class SegmentDirectory.Writer

    • Constructor Detail

      • Writer

        public Writer()
    • Method Detail

      • newIndexFor

        public abstract PinotDataBuffer newIndexFor​(String columnName,
                                                    ColumnIndexType indexType,
                                                    long sizeBytes)
                                             throws IOException
        create a new buffer for writers to store index. This buffer will be visible after this point. Failures in the middle can cause corruption.
        Parameters:
        columnName - column name
        indexType - column index type
        sizeBytes - sizeBytes of index data
        Returns:
        PinotDataBufferOld that writers can update
        Throws:
        IOException
      • removeIndex

        public abstract void removeIndex​(String columnName,
                                         ColumnIndexType indexType)
        Removes an existing column index from directory
        Parameters:
        columnName - column name
        indexType - column index type