@Test(expectedExceptions = RuntimeException.class) public void testMissingIndex() throws IOException, ConfigurationException { try (SingleFileIndexDirectory columnDirectory = new SingleFileIndexDirectory(TEMP_DIR, segmentMetadata, ReadMode.mmap)) { columnDirectory.getBuffer("column1", ColumnIndexType.DICTIONARY); } }
@Override public PinotDataBuffer getBuffer(String column, ColumnIndexType type) throws IOException { return checkAndGetIndexBuffer(column, type); }
SingleFileIndexDirectory extends ColumnIndexDirectory { @Override public PinotDataBuffer getBuffer(String column, ColumnIndexType type) throws IOException { return checkAndGetIndexBuffer(column, type); } }
SingleFileIndexDirectory extends ColumnIndexDirectory { @Override public PinotDataBuffer getBuffer(String column, ColumnIndexType type) throws IOException { return checkAndGetIndexBuffer(column, type); } SingleFileIndexDirectory(File segmentDirectory, SegmentMetadataImpl metadata, ReadMode readMode); }
SingleFileIndexDirectory extends ColumnIndexDirectory { @Override public PinotDataBuffer getBuffer(String column, ColumnIndexType type) throws IOException { return checkAndGetIndexBuffer(column, type); } SingleFileIndexDirectory(File segmentDirectory, SegmentMetadataImpl metadata, ReadMode readMode); @Override PinotDataBuffer getBuffer(String column, ColumnIndexType type); @Override PinotDataBuffer newBuffer(String column, ColumnIndexType type, long sizeBytes); @Override boolean hasIndexFor(String column, ColumnIndexType type); @Override void close(); @Override void removeIndex(String columnName, ColumnIndexType indexType); @Override boolean isIndexRemovalSupported(); @Override String toString(); }
SingleFileIndexDirectory extends ColumnIndexDirectory { @Override public PinotDataBuffer getBuffer(String column, ColumnIndexType type) throws IOException { return checkAndGetIndexBuffer(column, type); } SingleFileIndexDirectory(File segmentDirectory, SegmentMetadataImpl metadata, ReadMode readMode); @Override PinotDataBuffer getBuffer(String column, ColumnIndexType type); @Override PinotDataBuffer newBuffer(String column, ColumnIndexType type, long sizeBytes); @Override boolean hasIndexFor(String column, ColumnIndexType type); @Override void close(); @Override void removeIndex(String columnName, ColumnIndexType indexType); @Override boolean isIndexRemovalSupported(); @Override String toString();  }