public static final Index createTestIndexAllFieldTypes(){
  Index index=new Index("myindexallfields");
  index.setTable(DB,"mytable");
  ArrayList<IndexField> fields=new ArrayList<>();
  fields.add(new IndexField("thisisauudid",FieldDataType.UUID));
  fields.add(new IndexField("thisisastring",FieldDataType.TEXT));
  fields.add(new IndexField("thisisanint",FieldDataType.INTEGER));
  fields.add(new IndexField("thisisadouble",FieldDataType.DOUBLE));
  fields.add(new IndexField("thisisbase64",FieldDataType.BINARY));
  fields.add(new IndexField("thisisaboolean",FieldDataType.BOOLEAN));
  fields.add(new IndexField("thisisadate",FieldDataType.DATE_TIME));
  fields.add(new IndexField("thisisalong",FieldDataType.LONG));
  index.setFields(fields);
  index.isUnique(false);
  return index;
}

public static final Index createTestIndexAllFieldTypes ( ) { Index index = new Index ( "myindexallfields" ) ; index . setTable ( DB , "mytable" ) ; ArrayList < IndexField > fields = new ArrayList < > ( ) ; fields . add ( new IndexField ( "thisisauudid" , FieldDataType . UUID ) ) ; fields . add ( new IndexField ( "thisisastring" , FieldDataType . TEXT ) ) ; fields . add ( new IndexField ( "thisisanint" , FieldDataType . INTEGER ) ) ; fields . add ( new IndexField ( "thisisadouble" , FieldDataType . DOUBLE ) ) ; fields . add ( new IndexField ( "thisisbase64" , FieldDataType . BINARY ) ) ; fields . add ( new IndexField ( "thisisaboolean" , FieldDataType . BOOLEAN ) ) ; fields . add ( new IndexField ( "thisisadate" , FieldDataType . DATE_TIME ) ) ; fields . add ( new IndexField ( "thisisalong" , FieldDataType . LONG ) ) ; index . setFields ( fields ) ; index . isUnique ( false ) ; return index ; }
creates at test index with a all possible field types .
