mirror of https://github.com/apache/lucene.git
Small optimization to not gerenate too many "null"s
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1376517 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4c47c26686
commit
1ecbbd2877
|
@ -126,38 +126,6 @@ abstract class BulkOperation implements PackedInts.Decoder, PackedInts.Encoder {
|
|||
null,
|
||||
null,
|
||||
new BulkOperationPackedSingleBlock32(),
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -436,7 +436,7 @@ if __name__ == '__main__':
|
|||
|
||||
f.write(' // NOTE: this is sparse (some entries are null):\n')
|
||||
f.write(' private static final BulkOperation[] packedSingleBlockBulkOps = new BulkOperation[] {\n')
|
||||
for bpv in xrange(1, 65):
|
||||
for bpv in xrange(1, max(PACKED_64_SINGLE_BLOCK_BPV)+1):
|
||||
if bpv in PACKED_64_SINGLE_BLOCK_BPV:
|
||||
f2 = open('BulkOperationPackedSingleBlock%d.java' % bpv, 'w')
|
||||
f2.write(HEADER)
|
||||
|
|
Loading…
Reference in New Issue