congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
CSVUtil.inferNullableSchema
Code IndexAdd Tabnine to your IDE (free)

How to use
inferNullableSchema
method
in
org.kitesdk.data.spi.filesystem.CSVUtil

Best Java code snippets using org.kitesdk.data.spi.filesystem.CSVUtil.inferNullableSchema (Showing top 4 results out of 315)

origin: org.kitesdk/kite-tools

.inferNullableSchema(
  recordName, open(samplePaths.get(0)), props, required)
.toString(!minimize);
origin: kite-sdk/kite

@Test
public void testSchemaNamespace() throws Exception {
 InputStream stream = new ByteArrayInputStream(csvLines.getBytes("utf8"));
 Schema schema = CSVUtil.inferNullableSchema("com.example.TestRecord",
   stream, new CSVProperties.Builder().hasHeader().build());
 Assert.assertEquals("Should use name", "TestRecord", schema.getName());
 Assert.assertEquals("Should set namespace",
   "com.example", schema.getNamespace());
}
origin: kite-sdk/kite

@Test
public void testNullableSchemaInference() throws Exception {
 InputStream stream = new ByteArrayInputStream(csvLines.getBytes("utf8"));
 Schema schema = CSVUtil.inferNullableSchema("TestRecord", stream,
   new CSVProperties.Builder().hasHeader().build(),
   ImmutableSet.of("float"));
origin: kite-sdk/kite

@Test
public void testNullableSchemaInferenceWithoutHeader() throws Exception {
 InputStream stream = new ByteArrayInputStream(csvLines.getBytes("utf8"));
 Schema schema = CSVUtil.inferNullableSchema("TestRecord", stream,
   new CSVProperties.Builder().build(),
   ImmutableSet.of("long", "field_1"));
org.kitesdk.data.spi.filesystemCSVUtilinferNullableSchema

Popular methods of CSVUtil

  • inferSchema
  • sample
  • inferFieldType
  • inferSchemaInternal
  • newParser
  • newReader
  • newWriter
  • schema
    Create a Schema for the given type. If the type is null, the schema will be a nullable String. If is

Popular in Java

  • Updating database using SQL prepared statement
  • runOnUiThread (Activity)
  • getSystemService (Context)
  • compareTo (BigDecimal)
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • JFrame (javax.swing)
  • JTextField (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Runner (org.openjdk.jmh.runner)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now