Package ai.platon.pulsar.common
Miscellaneous utility classes.
See: Description
-
Class Summary Class Description DateTimeDetector Detect a date time in a text. DeflateUtils A collection of utility methods for working on deflated data. DomUtil DomUtil class. FSUtils Utility methods for common filesystem operations. Histogram Histogram class. LocalFSUtils Utility methods for common filesystem operations. NetUtil NetUtil class. NodeWalker A utility class that allows the walking of any DOM tree using a stack instead of recursion. ObjectCache TODO: use BeanFactory(Spring or Apache Configuration) PrefixStringMatcher A class for efficiently matching Strings against a set of prefixes.PulsarParams Created by vincent on 16-9-24. ReflectionUtils Created by vincent on 17-3-2. RegexExtractor Created by vincent on 17-8-3. ScoreEntry Created by vincent on 17-4-20. ScoreVector Created by vincent on 17-4-20. IntegerRanges A class that represents a set of positive integer ranges. SParser A common string parser Strings SuffixStringMatcher A class for efficiently matching Strings against a set of suffixes.TrieStringMatcher TrieStringMatcher is a base class for simple tree-based string matching. NamedColor Cookie JvmTimedValue NoSuchCriticalObjectException NotSupportedException Frequency Maintains a frequency distribution. FrequencyManager A set of term counters JarTool CheckState Both 0 and 200 are good states DescriptiveResult A result with a message StartStopRunner PrioriClosable UrlExtractor TODO: org.nibor.autolink. MessageWriter A simple log system MultiSinkWriter Created by vincent on 16-10-12. 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 Wildchar ColorsKt HtmlsKt DateTimesKt ExceptionsKt LangKt LogsKt PingKt StringsKt -
Interface Summary Interface Description DublinCore A collection of Dublin Core metadata names. HttpHeaders A collection of HTTP header names. Reportable Reportable interface. 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. -
Enum Summary Enum Description TraditionalBinaryPrefix The traditional binary prefixes, kilo, mega, ..., exa, which can be represented by a 64-bit integer. State 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. 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 HtmlUtils Companion ObjectConverter Companion LinkExtractors Companion Companion Companion Ping ClassReflect MethodReflect ResourceLoader The ResourceLoader class is a utility class to load resources from the classpath. 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.