Package ai.platon.pulsar.common
Miscellaneous utility classes.
See: Description
-
Enum Summary Enum Description FuzzyProbability FuzzyProbability class. TraditionalBinaryPrefix The traditional binary prefixes, kilo, mega, ..., exa, which can be represented by a 64-bit integer. State ListType HtmlIntegrity FlowState Priority5 Smaller value, higher priority, keep consistent with PriorityQueueNotice: can not use Int.MIN_VALUE as the highest priority value nor Int. Priority13 Smaller value, higher priority, keep consistent with PriorityQueueNotice: can not use Int.MIN_VALUE as the highest priority value nor Int. Priority21 Smaller value, higher priority, keep consistent with PriorityQueueNotice: can not use Int.MIN_VALUE as the highest priority value nor Int. -
Class Summary Class Description NodeWalker A utility class that allows the walking of any DOM tree using a stack instead of recursion. ScoreVector Created by vincent on 17-4-20. LocalFSUtils Utility methods for common filesystem operations. ObjectCache TODO: use BeanFactory(Spring or Apache Configuration) MathUtils A minimal math utility class. FuzzyTracker FuzzyTracker class. Strings GZIPUtils A collection of utility methods for working on GZIPed data. RegexExtractor Created by vincent on 17-8-3. PrefixStringMatcher A class for efficiently matching Strings against a set of prefixes.IntegerRanges A class that represents a set of positive integer ranges. SParser A common string parser DomUtil DomUtil class. Histogram Histogram class. SuffixStringMatcher A class for efficiently matching Strings against a set of suffixes.DeflateUtils A collection of utility methods for working on deflated data. OrderedIntDoubleMapping From mahout DateTimeDetector Detect a date time in a text. DefaultPreprocessor FiledLines FiledLines class. FSUtils Utility methods for common filesystem operations. ReflectionUtils Created by vincent on 17-3-2. NetUtil NetUtil class. TrieStringMatcher TrieStringMatcher is a base class for simple tree-based string matching. ScoreEntry Created by vincent on 17-4-20. PulsarParams Created by vincent on 16-9-24. BeanFactory BlackWhiteResourceConfig BlackWhiteList Manage black-white list words, words are written in files line by line. NamedColor Cookie JvmTimedValue NoSuchCriticalObjectException NotSupportedException Frequency Maintains a frequency distribution. FrequencyManager A set of term counters Node FrequencyTree JarTool CheckState Both 0 and 200 are good states DescriptiveResult A result with a message StartStopRunner UrlExtractor TODO: org.nibor.autolink. MessageWriter A simple log system MultiMessageWriter Created by vincent on 16-10-12. MultiSinkWriter Created by vincent on 16-10-12. MultipleFiledLines OpenMapAnyTableFormatter Metadata Column Cell Row OpenMapTable A simple excel like table, every column, every row and every cell can hold metadata and variables TableAttribute ColumnAttribute RowAttribute CellAttribute PreemptChannelSupport The preemptive channel concurrency pattern, there are two channels: preemptive channel and normal channelTODO: compare with ReadWriteLock both channel allows multiple threads
new workers have to wait until there is no ready preemptive tasks nor running preemptive tasks
a preemptive task locks the working channel immediately, but have to wait to run util all workers are finished
|------ waiting ------------|- ready -|-------------- critical -------------------|---finished----
The entrance gate The exit gate
ResourceWalker TextPreprocessor RegexPreprocessor SingleFiledLines BinaryTreeNode Wildchar ColorsKt HtmlsKt DateTimesKt ExceptionsKt LangKt LogsKt PingKt StringsKt -
Interface Summary Interface Description Reportable Reportable interface. DublinCore A collection of Dublin Core metadata names. HttpHeaders A collection of HTTP header names. Preprocessor StartStopRunnable PulsarJobBase Hadoop's MapReduce support ClassFactory The utility methods will try to use the provided class factories to convert binary name of class to Class object. Preprocessor -
Object Summary Object Description AppContext AppFiles AppPaths Created by vincent on 18-3-23. BTreePrinter ColorFamily Named colors, see https://stackoverflow.com/questions/4126029/convert-rgb-values-to-color-name Popular color family, see http://www.ip138.com/yanse/common. DateTimes FileCommand Companion Companion HtmlUtils Companion ObjectConverter Companion LinkExtractors Companion Companion Companion Ping ClassReflect MethodReflect ResourceLoader Load resources ResourceStatus Keep consistent with standard http status Companion Runtimes Runtime utility ProcessLauncher The process launcher Sockets Simple utility methods for working with network sockets for example, for finding available ports on localhost.Systems -
Annotation Summary Annotation Description RequiredFile RequiredDirectory ExperimentalApi This annotation marks the API that is considered experimental.