Class StandardWriteFilterFactory
- java.lang.Object
-
- org.apache.tika.metadata.writefilter.StandardWriteFilterFactory
-
- All Implemented Interfaces:
MetadataWriteFilterFactory
public class StandardWriteFilterFactory extends Object implements MetadataWriteFilterFactory
Factory class forStandardWriteFilter
. See that class for how the estimated sizes are calculated on Strings.
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_MAX_FIELD_SIZE
static int
DEFAULT_MAX_KEY_SIZE
static int
DEFAULT_MAX_VALUES_PER_FIELD
static int
DEFAULT_TOTAL_ESTIMATED_BYTES
-
Constructor Summary
Constructors Constructor Description StandardWriteFilterFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
getIncludeFields()
int
getMaxFieldSize()
int
getMaxKeySize()
int
getMaxTotalEstimatedBytes()
int
getMaxValuesPerField()
boolean
isIncludeEmpty()
MetadataWriteFilter
newInstance()
void
setIncludeEmpty(boolean includeEmpty)
void
setIncludeFields(List<String> includeFields)
void
setMaxFieldSize(int maxFieldSize)
void
setMaxKeySize(int maxKeySize)
void
setMaxTotalEstimatedBytes(int maxTotalEstimatedBytes)
void
setMaxValuesPerField(int maxValuesPerField)
String
toString()
-
-
-
Method Detail
-
newInstance
public MetadataWriteFilter newInstance()
- Specified by:
newInstance
in interfaceMetadataWriteFilterFactory
-
setMaxTotalEstimatedBytes
public void setMaxTotalEstimatedBytes(int maxTotalEstimatedBytes)
-
setMaxKeySize
public void setMaxKeySize(int maxKeySize)
-
setMaxFieldSize
public void setMaxFieldSize(int maxFieldSize)
-
setIncludeEmpty
public void setIncludeEmpty(boolean includeEmpty)
-
setMaxValuesPerField
public void setMaxValuesPerField(int maxValuesPerField)
-
getMaxKeySize
public int getMaxKeySize()
-
getMaxFieldSize
public int getMaxFieldSize()
-
getMaxTotalEstimatedBytes
public int getMaxTotalEstimatedBytes()
-
getMaxValuesPerField
public int getMaxValuesPerField()
-
isIncludeEmpty
public boolean isIncludeEmpty()
-
-