Package org.jesterj.ingest.processors
Class PreAnalyzeFields.Builder
- java.lang.Object
-
- org.jesterj.ingest.model.impl.NamedBuilder<PreAnalyzeFields>
-
- org.jesterj.ingest.processors.PreAnalyzeFields.Builder
-
- All Implemented Interfaces:
Buildable<PreAnalyzeFields>,ConfiguredBuildable<PreAnalyzeFields>
- Enclosing class:
- PreAnalyzeFields
public static class PreAnalyzeFields.Builder extends NamedBuilder<PreAnalyzeFields>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PreAnalyzeFieldsbuild()PreAnalyzeFields.BuilderforTypeNamed(java.lang.String name)PreAnalyzeFields.BuilderfromFile(java.lang.String filename)Set the file in the classpath for the schema file.protected PreAnalyzeFieldsgetObj()PreAnalyzeFields.BuilderloadingResourcesVia(java.util.function.Supplier<java.lang.ClassLoader> provider)PreAnalyzeFields.Buildernamed(java.lang.String name)PreAnalyzeFields.BuilderpreAnalyzingField(java.lang.String field)PreAnalyzeFields.BuilderwithLuceneMatchVersion(java.lang.String version)PreAnalyzeFields.BuilderwithSchemaVersion(float version)-
Methods inherited from class org.jesterj.ingest.model.impl.NamedBuilder
isValid
-
-
-
-
Method Detail
-
named
public PreAnalyzeFields.Builder named(java.lang.String name)
- Specified by:
namedin classNamedBuilder<PreAnalyzeFields>
-
preAnalyzingField
public PreAnalyzeFields.Builder preAnalyzingField(java.lang.String field)
-
forTypeNamed
public PreAnalyzeFields.Builder forTypeNamed(java.lang.String name)
-
withLuceneMatchVersion
public PreAnalyzeFields.Builder withLuceneMatchVersion(java.lang.String version)
-
loadingResourcesVia
public PreAnalyzeFields.Builder loadingResourcesVia(java.util.function.Supplier<java.lang.ClassLoader> provider)
-
fromFile
public PreAnalyzeFields.Builder fromFile(java.lang.String filename)
Set the file in the classpath for the schema file. The file will be loaded from the top of the class path (as if / is pre-pended), but may begin with / and any amount of sub-paths resources such as stopwords.txt are loaded relative to the position of this file in the class path.- Parameters:
filename- the name of the file, usually schema.xml or managed-schema- Returns:
- this builder for further configuration
-
withSchemaVersion
public PreAnalyzeFields.Builder withSchemaVersion(float version)
-
getObj
protected PreAnalyzeFields getObj()
- Overrides:
getObjin classNamedBuilder<PreAnalyzeFields>
-
build
public PreAnalyzeFields build()
-
-