apache / apache/lucene

Simplify StoredFieldsVisitor [LUCENE-5870]

Open
#6,932 5 comments 0 reactions 1 assignee Claimed by @jpountz View on GitHub
legacy-jira-fix-version:4.10 legacy-jira-fix-version:6.0 legacy-jira-priority:Major type:enhancement
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

StoredFieldVisitor has a visitor method for 4 numeric types: int, long, float and double. We should remove this specialization and just have a method that takes a java.lang.Number.

---
Migrated from [LUCENE-5870](https://issues.apache.org/jira/browse/LUCENE-5870) by Adrien Grand (@jpountz), updated May 09 2016
Attachments: [LUCENE-5870.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-5870/LUCENE-5870.patch)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.