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) {
  }
  private boolean resolveBoolean(Object valboolean defaultVal) {
    if (val instanceof Boolean)
      return (Booleanval;
    return defaultVal;
  }
New to GrepCode? Check out our FAQ X