Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.factual.driver;
 
 import java.util.Map;
 
 public class ColumnSchema {
   public final String name;
   public final String description;
   public final boolean faceted;
   public final boolean sortable;
  public final String label;
  public final String datatype;
  public final boolean searchable;

  
Constructor. Maps raw column schema data into a new ColumnSchema.

Parameters:
map A column schema map object as provided by Factual.
  public ColumnSchema(Map<StringObjectmap) {
     = (String)map.get("name");
     = (String)map.get("description");
     = (String)map.get("label");
     = (String)map.get("datatype");
     = (Boolean)map.get("faceted");
     = (Boolean)map.get("sortable");
     = (Boolean)map.get("searchable");
  }
New to GrepCode? Check out our FAQ X