Examples of FilterType


Examples of ar.com.hjg.pngj.FilterType

        filtersPerf.updateFromFiltered(ftype, filtered, currentRow);
      }
    }
    filteredRows[0] = rowb;
    if (tryAdaptive) {
      FilterType preferredAdaptive = filtersPerf.getPreferred();
      filterBank[5].write(filteredRows[preferredAdaptive.val]);
    }
    if (currentRow == lastRowInThisBand) {
      int best = getBestCompressor();
      // if(currentRow>90&&currentRow<100)
View Full Code Here

Examples of co.nubetech.crux.model.FilterType

    ValueType valueType2 = new ValueType(502, datastore, "valueTypeTwo", "classValueType2",
        "className1", false);
    ValueType valueType3 = new ValueType(503, datastore, "valueTypeThree", "classValueType3",
        "className1", false);
   
    FilterType filterType1 = new FilterType(701, "filterTypeOne");
    FilterType filterType2 = new FilterType(702, "filterTypeTwo");
    FilterType filterType3 = new FilterType(703, "filterTypeThree");
   
    ValueFilterType valueFilterType1 = new ValueFilterType(valueType1, filterType1);
    ValueFilterType valueFilterType2 = new ValueFilterType(valueType2, filterType2);
    ValueFilterType valueFilterType3 = new ValueFilterType(valueType3, filterType3);
   
View Full Code Here

Examples of co.nubetech.crux.model.FilterType

   * @param rowFilter
   * @return
   * @throws CruxException
   */
  public static RowFilter getRowFilter(RowAliasFilter rowFilter, Mapping mapping) throws CruxException {
    FilterType type = rowFilter.getFilterType();
    CompareOp op = FilterHelper.getCompareOp(type);
    RowAlias alias = rowFilter.getRowAlias();
    String value = rowFilter.getValue();
    int offset = getOffset(rowFilter, mapping);
    Integer length = rowFilter.getRowAlias().getLength();
View Full Code Here

Examples of co.nubetech.crux.model.FilterType

  public Session session;
  @TransactionTarget
  Transaction transaction;

  public FilterType findById(Long id) {
    FilterType filterType = (FilterType) session.get(FilterType.class, id);
    return filterType;
  }
View Full Code Here

Examples of co.nubetech.crux.model.FilterType

public class TestRangeFilters {

  @Test
  public void testContainsTrue() {
    FilterType type1 = new FilterType();
    type1.setType("Greater Than");

    ValueType valueType1 = new ValueType();
    valueType1.setClassName("java.lang.Long");
   
    RowAlias alias1 = new RowAlias();
    alias1.setAlias("alias");
    alias1.setValueType(valueType1);
    alias1.setLength(8);
   
    RowAliasFilter rowFilter1 = new RowAliasFilter();
    rowFilter1.setFilterType(type1);
    rowFilter1.setValue("123");
    rowFilter1.setRowAlias(alias1);
   
    FilterType type2 = new FilterType();
    type2.setType("Equals");

    ValueType valueType2 = new ValueType();
    valueType2.setClassName("java.lang.String");
   
    RowAlias alias2 = new RowAlias();
View Full Code Here

Examples of co.nubetech.crux.model.FilterType

   
  }
 
  @Test
  public void testContainsNullPassed() {
    FilterType type1 = new FilterType();
    type1.setType("Greater Than");

    ValueType valueType1 = new ValueType();
    valueType1.setClassName("java.lang.Long");
   
    RowAlias alias1 = new RowAlias();
    alias1.setAlias("alias");
    alias1.setValueType(valueType1);
    alias1.setLength(8);
   
    RowAliasFilter rowFilter1 = new RowAliasFilter();
    rowFilter1.setFilterType(type1);
    rowFilter1.setValue("123");
    rowFilter1.setRowAlias(alias1);
   
    FilterType type2 = new FilterType();
    type2.setType("Equals");

    ValueType valueType2 = new ValueType();
    valueType2.setClassName("java.lang.String");
   
    RowAlias alias2 = new RowAlias();
View Full Code Here

Examples of co.nubetech.crux.model.FilterType

   
  }
 
  @Test
  public void testContainsBlank() {
    FilterType type1 = new FilterType();
    type1.setType("Greater Than");

    ValueType valueType1 = new ValueType();
    valueType1.setClassName("java.lang.Long");
   
    RowAlias alias1 = new RowAlias();
View Full Code Here

Examples of co.nubetech.crux.model.FilterType

    valueType.setClassName("java.lang.String");
    rAlias.setValueType(valueType);
    mapping.addRowAlias(rAlias);

    RowAliasFilter rowFilter = new RowAliasFilter();
    FilterType filter1 = new FilterType();
    filter1.setType("Substring");
    rowFilter.setFilterType(filter1);
    rowFilter.setRowAlias(rAlias);
    rowFilter.setValue("row5");

    assertEquals(0, HBaseFilterFactory.getOffset(rowFilter, mapping));
View Full Code Here

Examples of co.nubetech.crux.model.FilterType

    mapping.addRowAlias(rAlias);
    mapping.addRowAlias(rAlias1);

    RowAliasFilter rowFilter = new RowAliasFilter();
    FilterType filter1 = new FilterType();
    filter1.setType("Substring");
    rowFilter.setFilterType(filter1);
    rowFilter.setRowAlias(rAlias);
    rowFilter.setValue("row5");

    assertEquals(0, HBaseFilterFactory.getOffset(rowFilter, mapping));
View Full Code Here

Examples of co.nubetech.crux.model.FilterType

    assertEquals(18l, HBaseFilterFactory.getOffset(rowFilter, mapping));
  }

  @Test
  public void testGetColumnFilterLongGreaterThan() throws CruxException {
    FilterType type = new FilterType();
    type.setType("Greater Than");

    ValueType valueType = new ValueType();
    valueType.setClassName("java.lang.Long");

    ColumnAlias alias = new ColumnAlias();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.