Package ai.platon.pulsar.common
Miscellaneous utility classes.
See: Description
-
Class Summary Class Description Histogram Histogram class. GZIPUtils A collection of utility methods for working on GZIPed data. FuzzyTracker FuzzyTracker class. DateTimeDetector Detect a date time in a text. LocalFSUtils Utility methods for common filesystem operations. MathUtils A minimal math utility class. ReflectionUtils Created by vincent on 17-3-2. ScoreEntry Created by vincent on 17-4-20. DeflateUtils A collection of utility methods for working on deflated data. TrieStringMatcher TrieStringMatcher is a base class for simple tree-based string matching. PulsarParams Created by vincent on 16-9-24. IntegerRanges A class that represents a set of positive integer ranges. SParser A common string parser ScoreVector Created by vincent on 17-4-20. DefaultPreprocessor FiledLines FiledLines class. FSUtils Utility methods for common filesystem operations. DomUtil DomUtil class. PrefixStringMatcher A class for efficiently matching Strings against a set of prefixes.OrderedIntDoubleMapping From mahout RegexExtractor Created by vincent on 17-8-3. ObjectCache TODO: use BeanFactory(Spring or Apache Configuration) NodeWalker A utility class that allows the walking of any DOM tree using a stack instead of recursion. Strings SuffixStringMatcher A class for efficiently matching Strings against a set of suffixes.NetUtil NetUtil class. 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 DublinCore A collection of Dublin Core metadata names. Preprocessor Reportable Reportable interface. HttpHeaders A collection of HTTP header names. 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 -
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. -
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.