Skip to content

Commit 71a92d4

Browse files
committed
First attempt block building at codec level
1 parent 2559e28 commit 71a92d4

File tree

6 files changed

+563
-13
lines changed

6 files changed

+563
-13
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the "Elastic License
4+
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side
5+
* Public License v 1"; you may not use this file except in compliance with, at
6+
* your election, the "Elastic License 2.0", the "GNU Affero General Public
7+
* License v3.0 only", or the "Server Side Public License, v 1".
8+
*/
9+
10+
package org.elasticsearch.index.codec.tsdb.es819;
11+
12+
import org.apache.lucene.index.NumericDocValues;
13+
import org.elasticsearch.index.mapper.BlockLoader;
14+
15+
import java.io.IOException;
16+
17+
public abstract class BlockAwareNumericDocValues extends NumericDocValues {
18+
19+
public abstract void loadBlock(BlockLoader.LongBuilder builder, BlockLoader.Docs docs) throws IOException;
20+
21+
public abstract void loadDoc(BlockLoader.LongBuilder builder, int docId) throws IOException;
22+
23+
public abstract void loadBlock(BlockLoader.IntBuilder builder, BlockLoader.Docs docs) throws IOException;
24+
25+
public abstract void loadDoc(BlockLoader.IntBuilder builder, int docId) throws IOException;
26+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the "Elastic License
4+
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side
5+
* Public License v 1"; you may not use this file except in compliance with, at
6+
* your election, the "Elastic License 2.0", the "GNU Affero General Public
7+
* License v3.0 only", or the "Server Side Public License, v 1".
8+
*/
9+
10+
package org.elasticsearch.index.codec.tsdb.es819;
11+
12+
import org.apache.lucene.index.SortedNumericDocValues;
13+
import org.elasticsearch.index.mapper.BlockLoader;
14+
15+
import java.io.IOException;
16+
17+
public abstract class BlockAwareSortedNumericDocValues extends SortedNumericDocValues {
18+
19+
public abstract void loadBlock(BlockLoader.LongBuilder builder, BlockLoader.Docs docs) throws IOException;
20+
21+
public abstract void loadDoc(BlockLoader.LongBuilder builder, int docId) throws IOException;
22+
23+
public abstract void loadBlock(BlockLoader.IntBuilder builder, BlockLoader.Docs docs) throws IOException;
24+
25+
public abstract void loadDoc(BlockLoader.IntBuilder builder, int docId) throws IOException;
26+
27+
}

0 commit comments

Comments
 (0)