Package org.apache.tika.parser.inference
Class InferenceBinding
java.lang.Object
org.apache.tika.parser.inference.InferenceBinding
One entry of the
"inference" list: engine, input, tasks, filters, budget.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intBelow this, in either dimension, an image is a spacer, not a picture. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanAsaccepts(InputKind, MediaType), and for an image its recorded dimensions (tiff:ImageWidth,tiff:ImageLength) must reach the minimum when known.static InferenceBinding.BuilderThe three things every binding needs; everything else has a default.How a TEXT binding cuts a document's text; null means the whole text is one chunk.getId()getInput()longLargest unit this binding accepts, in bytes; -1 for no limit.intUnits this binding may enrich per document; -1 for no limit.intintNarrowest image this binding takes, in pixels; images of unknown size are taken.What the engine is shown; implied by the input kind except for MEDIA, where it is required.getTasks()boolean
-
Field Details
-
DEFAULT_MIN_PIXELS
public static final int DEFAULT_MIN_PIXELSBelow this, in either dimension, an image is a spacer, not a picture.- See Also:
-
-
Method Details
-
builder
The three things every binding needs; everything else has a default. -
getId
-
getEngine
-
getInput
-
getTasks
-
getMaxChunks
public int getMaxChunks()Units this binding may enrich per document; -1 for no limit. -
getMaxBytes
public long getMaxBytes()Largest unit this binding accepts, in bytes; -1 for no limit. -
isEnabled
public boolean isEnabled() -
getModality
What the engine is shown; implied by the input kind except for MEDIA, where it is required. -
getChunker
How a TEXT binding cuts a document's text; null means the whole text is one chunk. -
getMinWidth
public int getMinWidth()Narrowest image this binding takes, in pixels; images of unknown size are taken. -
getMinHeight
public int getMinHeight() -
accepts
Asaccepts(InputKind, MediaType), and for an image its recorded dimensions (tiff:ImageWidth,tiff:ImageLength) must reach the minimum when known. -
accepts
-