Class SQLAnalyzer
java.lang.Object
org.apache.lucene.analysis.Analyzer
org.opengrok.indexer.analysis.AbstractAnalyzer
org.opengrok.indexer.analysis.FileAnalyzer
org.opengrok.indexer.analysis.TextAnalyzer
org.opengrok.indexer.analysis.plain.PlainAnalyzer
org.opengrok.indexer.analysis.sql.SQLAnalyzer
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opengrok.indexer.analysis.AbstractAnalyzer
AbstractAnalyzer.Genre
Nested classes/interfaces inherited from class org.apache.lucene.analysis.Analyzer
org.apache.lucene.analysis.Analyzer.ReuseStrategy, org.apache.lucene.analysis.Analyzer.TokenStreamComponents
-
Field Summary
Fields inherited from class org.opengrok.indexer.analysis.AbstractAnalyzer
countsAggregator, ctags, DUMMY_READER, factory, foldingEnabled, project, scopesEnabled, symbolTokenizerFactory
Fields inherited from class org.apache.lucene.analysis.Analyzer
GLOBAL_REUSE_STRATEGY, PER_FIELD_REUSE_STRATEGY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSubclasses should override to return the case-insensitive name aligning with either a built-in Universal Ctags language name or an OpenGrok custom language name.protected int
Gets a version number to be used to tag processed documents so that re-analysis can be re-done later if a stored version number is different from the current implementation.protected JFlexXref
Creates a wrappedSQLXref
instance.Methods inherited from class org.opengrok.indexer.analysis.plain.PlainAnalyzer
analyze, getReader
Methods inherited from class org.opengrok.indexer.analysis.TextAnalyzer
writeXref
Methods inherited from class org.opengrok.indexer.analysis.FileAnalyzer
addNumLinesLOC, createComponents, getFileTypeName, getVersionNo, normalize, supportsScopes
Methods inherited from class org.opengrok.indexer.analysis.AbstractAnalyzer
getFactory, getGenre, setCountsAggregator, setCtags, setFoldingEnabled, setProject, setScopesEnabled
Methods inherited from class org.apache.lucene.analysis.Analyzer
attributeFactory, close, getOffsetGap, getPositionIncrementGap, getReuseStrategy, initReader, initReaderForNormalization, normalize, tokenStream, tokenStream
-
Constructor Details
-
SQLAnalyzer
-
-
Method Details
-
getCtagsLang
Description copied from class:AbstractAnalyzer
Subclasses should override to return the case-insensitive name aligning with either a built-in Universal Ctags language name or an OpenGrok custom language name.- Overrides:
getCtagsLang
in classPlainAnalyzer
- Returns:
"SQL"
-
getSpecializedVersionNo
protected int getSpecializedVersionNo()Gets a version number to be used to tag processed documents so that re-analysis can be re-done later if a stored version number is different from the current implementation.- Overrides:
getSpecializedVersionNo
in classPlainAnalyzer
- Returns:
- 20191216_00
-
newXref
Creates a wrappedSQLXref
instance.- Overrides:
newXref
in classPlainAnalyzer
- Parameters:
reader
- the data to produce xref for- Returns:
- a defined instance
-