|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.crunch.contrib.text.TokenizerFactory.Builder
public static class TokenizerFactory.Builder
A class for constructing new TokenizerFactory instances using the Builder pattern.
| Constructor Summary | |
|---|---|
TokenizerFactory.Builder()
|
|
| Method Summary | |
|---|---|
TokenizerFactory |
build()
Returns a new TokenizerFactory with settings determined by this
Builder instance. |
TokenizerFactory.Builder |
delimiter(String delim)
Sets the delimiter used by the TokenizerFactory instances constructed by
this instance. |
TokenizerFactory.Builder |
drop(Integer... indices)
Drop the specified fields found by the input scanner, counting from zero. |
TokenizerFactory.Builder |
keep(Integer... indices)
Keep only the specified fields found by the input scanner, counting from zero. |
TokenizerFactory.Builder |
locale(Locale locale)
Sets the Locale to use with the TokenizerFactory returned by
this Builder instance. |
TokenizerFactory.Builder |
skip(String skip)
Sets the regular expression that determines which input characters should be ignored by the Scanner that is returned by the constructed
TokenizerFactory. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TokenizerFactory.Builder()
| Method Detail |
|---|
public TokenizerFactory.Builder delimiter(String delim)
TokenizerFactory instances constructed by
this instance.
delim - The delimiter to use, which may be a regular expression
Builder instancepublic TokenizerFactory.Builder skip(String skip)
Scanner that is returned by the constructed
TokenizerFactory.
skip - The regular expression of input values to ignore
Builder instancepublic TokenizerFactory.Builder locale(Locale locale)
Locale to use with the TokenizerFactory returned by
this Builder instance.
locale - The locale to use
Builder instancepublic TokenizerFactory.Builder keep(Integer... indices)
indices - The indices to keep
Builder instancepublic TokenizerFactory.Builder drop(Integer... indices)
indices - The indices to drop
Builder instancepublic TokenizerFactory build()
TokenizerFactory with settings determined by this
Builder instance.
TokenizerFactory
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||