public class DiscoverInputSchemaResult extends Object implements Serializable, Cloneable
Constructor and Description |
---|
DiscoverInputSchemaResult() |
Modifier and Type | Method and Description |
---|---|
DiscoverInputSchemaResult |
clone() |
boolean |
equals(Object obj) |
SourceSchema |
getInputSchema()
Schema inferred from the streaming source.
|
List<List<String>> |
getParsedInputRecords()
An array of elements, where each element corresponds to a row in a stream
record (a stream record can have more than one row).
|
List<String> |
getRawInputRecords()
Raw stream data that was sampled to infer the schema.
|
int |
hashCode() |
void |
setInputSchema(SourceSchema inputSchema)
Schema inferred from the streaming source.
|
void |
setParsedInputRecords(Collection<List<String>> parsedInputRecords)
An array of elements, where each element corresponds to a row in a stream
record (a stream record can have more than one row).
|
void |
setRawInputRecords(Collection<String> rawInputRecords)
Raw stream data that was sampled to infer the schema.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DiscoverInputSchemaResult |
withInputSchema(SourceSchema inputSchema)
Schema inferred from the streaming source.
|
DiscoverInputSchemaResult |
withParsedInputRecords(Collection<List<String>> parsedInputRecords)
An array of elements, where each element corresponds to a row in a stream
record (a stream record can have more than one row).
|
DiscoverInputSchemaResult |
withParsedInputRecords(List<String>... parsedInputRecords)
An array of elements, where each element corresponds to a row in a stream
record (a stream record can have more than one row).
|
DiscoverInputSchemaResult |
withRawInputRecords(Collection<String> rawInputRecords)
Raw stream data that was sampled to infer the schema.
|
DiscoverInputSchemaResult |
withRawInputRecords(String... rawInputRecords)
Raw stream data that was sampled to infer the schema.
|
public void setInputSchema(SourceSchema inputSchema)
Schema inferred from the streaming source. It identifies the format of the data in the streaming source and how each data element maps to corresponding columns in the in-application stream that you can create.
inputSchema
- Schema inferred from the streaming source. It identifies the
format of the data in the streaming source and how each data
element maps to corresponding columns in the in-application stream
that you can create.public SourceSchema getInputSchema()
Schema inferred from the streaming source. It identifies the format of the data in the streaming source and how each data element maps to corresponding columns in the in-application stream that you can create.
public DiscoverInputSchemaResult withInputSchema(SourceSchema inputSchema)
Schema inferred from the streaming source. It identifies the format of the data in the streaming source and how each data element maps to corresponding columns in the in-application stream that you can create.
inputSchema
- Schema inferred from the streaming source. It identifies the
format of the data in the streaming source and how each data
element maps to corresponding columns in the in-application stream
that you can create.public List<List<String>> getParsedInputRecords()
An array of elements, where each element corresponds to a row in a stream record (a stream record can have more than one row).
public void setParsedInputRecords(Collection<List<String>> parsedInputRecords)
An array of elements, where each element corresponds to a row in a stream record (a stream record can have more than one row).
parsedInputRecords
- An array of elements, where each element corresponds to a row in a
stream record (a stream record can have more than one row).public DiscoverInputSchemaResult withParsedInputRecords(List<String>... parsedInputRecords)
An array of elements, where each element corresponds to a row in a stream record (a stream record can have more than one row).
NOTE: This method appends the values to the existing list (if
any). Use setParsedInputRecords(java.util.Collection)
or
withParsedInputRecords(java.util.Collection)
if you want to
override the existing values.
parsedInputRecords
- An array of elements, where each element corresponds to a row in a
stream record (a stream record can have more than one row).public DiscoverInputSchemaResult withParsedInputRecords(Collection<List<String>> parsedInputRecords)
An array of elements, where each element corresponds to a row in a stream record (a stream record can have more than one row).
parsedInputRecords
- An array of elements, where each element corresponds to a row in a
stream record (a stream record can have more than one row).public List<String> getRawInputRecords()
Raw stream data that was sampled to infer the schema.
public void setRawInputRecords(Collection<String> rawInputRecords)
Raw stream data that was sampled to infer the schema.
rawInputRecords
- Raw stream data that was sampled to infer the schema.public DiscoverInputSchemaResult withRawInputRecords(String... rawInputRecords)
Raw stream data that was sampled to infer the schema.
NOTE: This method appends the values to the existing list (if
any). Use setRawInputRecords(java.util.Collection)
or
withRawInputRecords(java.util.Collection)
if you want to
override the existing values.
rawInputRecords
- Raw stream data that was sampled to infer the schema.public DiscoverInputSchemaResult withRawInputRecords(Collection<String> rawInputRecords)
Raw stream data that was sampled to infer the schema.
rawInputRecords
- Raw stream data that was sampled to infer the schema.public String toString()
toString
in class Object
Object.toString()
public DiscoverInputSchemaResult clone()
Copyright © 2016. All rights reserved.