Package ai.platon.pulsar.common
Miscellaneous utility classes.
See: Description
-
Class Summary Class Description Histogram Histogram class. FSUtils Utility methods for common filesystem operations. DefaultPreprocessor FiledLines FiledLines class. PulsarParams Created by vincent on 16-9-24. DomUtil DomUtil class. ScoreEntry Created by vincent on 17-4-20. LocalFSUtils Utility methods for common filesystem operations. DateTimeDetector Detect a date time in a text. ObjectCache TODO: use BeanFactory(Spring or Apache Configuration) BlockRectangle Created by vincent on 16-6-15. MathUtils A minimal math utility class. ScoreVector Created by vincent on 17-4-20. NetUtil NetUtil class. FuzzyTracker FuzzyTracker class. NodeWalker A utility class that allows the walking of any DOM tree using a stack instead of recursion. DeflateUtils A collection of utility methods for working on deflated data. ReflectionUtils Created by vincent on 17-3-2. TrieStringMatcher TrieStringMatcher is a base class for simple tree-based string matching. GZIPUtils A collection of utility methods for working on GZIPed data. PrefixStringMatcher A class for efficiently matching Strings against a set of prefixes.OrderedIntDoubleMapping From mahout Strings A minimal String utility class. RegexExtractor Created by vincent on 17-8-3. IntegerRanges A class that represents a set of positive integer ranges. SParser A common string parser SuffixStringMatcher A class for efficiently matching Strings against a set of suffixes.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 CheckState Both 0 and 200 are good states StartStopRunner UrlExtractor MessageWriter A simple log system 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 OpenResourceStatus 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 freeze nor running freezer
a freezer 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 ReflectionsKt StringsKt -
Interface Summary Interface Description Preprocessor HttpHeaders A collection of HTTP header names. DublinCore A collection of Dublin Core metadata names. Reportable Reportable interface. StartStopRunnable PulsarJobBase ClassFactory The utility methods will try to use the provided class factories to convert binary name of class to Class object. Preprocessor -
Enum Summary Enum Description FuzzyProbability FuzzyProbability class. TraditionalBinaryPrefix The traditional binary prefixes, kilo, mega, ..., exa,which can be represented by a 64-bit integer.TraditionalBinaryPrefix symbol are case insensitive. 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 Priority21 -
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 Companion HtmlUtils Companion ObjectConverter Companion LinkExtractors Companion Companion Companion Ping ResourceLoader Load resources ResourceStatus Keep consistent with standard http status Companion Runtimes 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.