Package | Description |
---|---|
com.asakusafw.runtime.io |
Classes for data model input/output.
|
com.asakusafw.runtime.io.csv |
CSV Reader and Emitter.
|
com.asakusafw.runtime.io.csv.directio |
Direct I/O adapters for CSV format.
|
com.asakusafw.runtime.io.json.directio |
Direct I/O adapters of JSON files.
|
com.asakusafw.runtime.io.json.value |
Converts between runtime values and JSON values.
|
com.asakusafw.runtime.io.line |
Line reader and emitter.
|
com.asakusafw.runtime.io.line.directio |
Direct I/O adapters of line read/write.
|
com.asakusafw.runtime.io.text.directio |
Direct I/O adapters of formatted text files.
|
com.asakusafw.runtime.io.text.value |
Converts between runtime values and text.
|
com.asakusafw.runtime.io.tsv |
Legacy TSV Reader and Emitter.
|
com.asakusafw.runtime.value |
Classes for runtime values.
|
Modifier and Type | Method and Description |
---|---|
void |
RecordEmitter.emit(StringOption option)
Writes the value as the next cell on in current record.
|
void |
RecordParser.fill(StringOption option)
Reads the next cell and set the value into the target object.
|
Modifier and Type | Method and Description |
---|---|
void |
CsvEmitter.emit(StringOption option) |
void |
CsvParser.fill(StringOption option) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
AbstractCsvStreamFormat.emit(CsvEmitter output,
T model,
StringOption path)
Emits the next record body from the data object into the target output.
|
protected abstract void |
AbstractCsvStreamFormat.parse(CsvParser input,
T model,
StringOption path)
Parses next record body and fill the contents into the target model.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractJsonStreamFormat.afterInput(T model,
StringOption path,
JsonInput<T> input)
Processes the data object, which has filled the current record data.
|
protected void |
AbstractJsonStreamFormat.beforeOutput(T model,
StringOption path,
JsonOutput<T> output)
Process the data object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
StringOptionPropertyAdapter.doRead(ValueReader reader,
StringOption property) |
protected void |
StringOptionPropertyAdapter.doWrite(StringOption property,
ValueWriter writer) |
Modifier and Type | Method and Description |
---|---|
boolean |
Utf8LineInput.readTo(StringOption model) |
boolean |
BasicLineInput.readTo(StringOption model) |
void |
BasicLineOutput.write(StringOption model) |
void |
Utf8LineOutput.write(StringOption model) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
AbstractLineStreamFormat.emit(LineOutput output,
T model,
StringOption path)
Emits the next line from the data object into the target output.
|
protected abstract boolean |
AbstractLineStreamFormat.parse(LineInput input,
T model,
StringOption path)
Parses next line and fill into the target data object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractTextStreamFormat.afterInput(T model,
StringOption path,
TextInput<T> input)
Processes the data object, which has filled the current record data.
|
protected void |
AbstractTextStreamFormat.beforeOutput(T model,
StringOption path,
TextOutput<T> output)
Process the data object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
StringOptionFieldAdapter.doEmit(StringOption property,
StringBuilder output) |
protected void |
StringOptionFieldAdapter.doParse(CharSequence contents,
StringOption property) |
Modifier and Type | Method and Description |
---|---|
void |
TsvEmitter.emit(StringOption option) |
void |
TsvParser.fill(StringOption option) |
Modifier and Type | Method and Description |
---|---|
StringOption |
StringOption.modify(byte[] utf8,
int offset,
int length)
Deprecated.
Application developer should not use this method directly
|
StringOption |
StringOption.modify(String newText)
Deprecated.
Application developer should not use this method directly
|
StringOption |
StringOption.modify(org.apache.hadoop.io.Text newText)
Deprecated.
Application developer should not use this method directly
|
Modifier and Type | Method and Description |
---|---|
static void |
StringOptionUtil.append(CharBuffer source,
StringOption destination,
CharsetEncoder encoder,
ByteBuffer buffer)
Appends source contents into the destination string.
|
static void |
StringOptionUtil.append(StringBuilder target,
StringOption contents)
Appends the text in the given
StringOption into the StringBuilder . |
static void |
StringOptionUtil.append(StringOption target,
String contents)
Appends the text in the second
StringOption into the first one. |
static void |
StringOptionUtil.append(StringOption target,
StringOption contents)
Appends the text in the second
StringOption into the first one. |
static Reader |
StringOptionUtil.asReader(StringOption option)
Returns a
Reader to read the text contents in the StringOption . |
boolean |
StringOption.contains(StringOption sub)
Returns whether or not this text contains the given substring.
|
void |
StringOption.copyFrom(StringOption optionOrNull)
Deprecated.
|
static int |
StringOptionUtil.countCodePoints(StringOption option)
Returns the number of code-points in the given
StringOption . |
boolean |
StringOption.endsWith(StringOption suffix)
Returns whether or not this text ends with the given suffix.
|
static BigDecimal |
StringOptionUtil.parseDecimal(StringOption contents)
Parses the given
StringOption which may represent a decimal value. |
static int |
StringOptionUtil.parseInt(StringOption contents)
Parses the given
StringOption which may represent a int value. |
static long |
StringOptionUtil.parseLong(StringOption contents)
Parses the given
StringOption which may represent a long value. |
boolean |
StringOption.startsWith(StringOption prefix)
Returns whether or not this text starts with the given prefix.
|
static void |
StringOptionUtil.trim(StringOption option)
Trims the leading/trailing classical whitespace characters in the
StringOption . |
static Date |
Date.valueOf(StringOption dateString,
Date.Format format)
Parses the target string and returns the corresponding date as the elapsed days from
0001/01/01 (YYYY/MM/DD) . |
static DateTime |
DateTime.valueOf(StringOption timeString,
DateTime.Format format)
Parses the target string using the specified format, and returns the corresponding date and time as the elapsed
seconds from
0001/01/01 (YYYY/MM/DD) 00:00:00 . |
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.