Package ai.rapids.cudf
Class RegexProgram
java.lang.Object
ai.rapids.cudf.RegexProgram
Regex program class, closely following cudf::strings::regex_program.
-
Constructor Summary
ConstructorsConstructorDescriptionRegexProgram
(String pattern) Constructor for RegexProgramRegexProgram
(String pattern, CaptureGroups capture) Constructor for RegexProgramRegexProgram
(String pattern, EnumSet<RegexFlag> flags) Constructor for RegexProgramRegexProgram
(String pattern, EnumSet<RegexFlag> flags, CaptureGroups capture) Constructor for RegexProgram -
Method Summary
Modifier and TypeMethodDescriptioncapture()
Get the capture groups setting used to create this instanceint
Combine the regex flags using 'or'flags()
Get the regex flags setting used to create this instancepattern()
Get the pattern used to create this instancevoid
setCapture
(CaptureGroups capture) Reset the capture groups setting for this instancevoid
Reset the regex flags setting for this instance
-
Constructor Details
-
RegexProgram
Constructor for RegexProgram- Parameters:
pattern
- Regex pattern
-
RegexProgram
Constructor for RegexProgram- Parameters:
pattern
- Regex patternflags
- Regex flags setting
-
RegexProgram
Constructor for RegexProgram- Parameters:
pattern
- Regex pattern settingcapture
- Capture groups setting
-
RegexProgram
Constructor for RegexProgram- Parameters:
pattern
- Regex patternflags
- Regex flags settingcapture
- Capture groups setting
-
-
Method Details
-
pattern
Get the pattern used to create this instance- Parameters:
return
- A regex pattern as a string
-
flags
Get the regex flags setting used to create this instance- Parameters:
return
- Regex flags setting
-
setFlags
Reset the regex flags setting for this instance- Parameters:
flags
- Regex flags setting
-
capture
Get the capture groups setting used to create this instance- Parameters:
return
- Capture groups setting
-
setCapture
Reset the capture groups setting for this instance- Parameters:
capture
- Capture groups setting
-
combinedFlags
public int combinedFlags()Combine the regex flags using 'or'- Parameters:
return
- An integer representing the value of combined (or'ed) flags
-