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

How to use
values
method
in
org.apache.asterix.om.types.ATypeTag

Best Java code snippets using org.apache.asterix.om.types.ATypeTag.values (Showing top 3 results out of 315)

origin: apache/asterixdb

@Override
public IScalarEvaluatorFactory[] next() {
  IScalarEvaluatorFactory[] scalarEvaluatorFactories = new IScalarEvaluatorFactory[argSize];
  for (int j = 0; j < argSize; ++j) {
    int base = (int) Math.pow(ATypeTag.values().length, j);
    // Enumerates through all possible type tags.
    byte serializedTypeTag = (byte) ((index / base) % ATypeTag.values().length);
    scalarEvaluatorFactories[j] = new ConstantEvalFactory(new byte[] { serializedTypeTag });
  }
  ++index;
  return scalarEvaluatorFactories;
}
origin: apache/asterixdb

private Iterator<IScalarEvaluatorFactory[]> getArgCombinations(final int inputArity) {
  final int argSize = inputArity >= 0 ? inputArity : 3;
  final int numCombinations = (int) Math.pow(ATypeTag.values().length, argSize);
  return new Iterator<IScalarEvaluatorFactory[]>() {
    private int index = 0;
    @Override
    public boolean hasNext() {
      return index < numCombinations;
    }
    @Override
    public IScalarEvaluatorFactory[] next() {
      IScalarEvaluatorFactory[] scalarEvaluatorFactories = new IScalarEvaluatorFactory[argSize];
      for (int j = 0; j < argSize; ++j) {
        int base = (int) Math.pow(ATypeTag.values().length, j);
        // Enumerates through all possible type tags.
        byte serializedTypeTag = (byte) ((index / base) % ATypeTag.values().length);
        scalarEvaluatorFactories[j] = new ConstantEvalFactory(new byte[] { serializedTypeTag });
      }
      ++index;
      return scalarEvaluatorFactories;
    }
  };
}
origin: apache/asterixdb

@Override
public void readFromFuncArgs(List<Mutable<ILogicalExpression>> funcArgs) {
  super.readFromFuncArgs(funcArgs);
  int index = super.getNumParams();
  // Read search modifier type.
  int searchModifierOrdinal = AccessMethodUtils.getInt32Constant(funcArgs.get(index + SEARCH_MODIFIER_INDEX));
  searchModifierType = SearchModifierType.values()[searchModifierOrdinal];
  // Read similarity threshold. Concrete type depends on search modifier.
  similarityThreshold = ((ConstantExpression) funcArgs.get(index + SIM_THRESHOLD_INDEX).getValue()).getValue();
  // Read type of search key.
  int typeTagOrdinal = AccessMethodUtils.getInt32Constant(funcArgs.get(index + SEARCH_KEY_TYPE_INDEX));
  searchKeyType = ATypeTag.values()[typeTagOrdinal];
  // Read full-text search information.
  isFullTextSearchQuery = AccessMethodUtils.getBooleanConstant(funcArgs.get(index + IS_FULLTEXT_SEARCH_INDEX));
  // Read key var list.
  keyVarList = new ArrayList<>();
  readVarList(funcArgs, index + KEY_VAR_INDEX, keyVarList);
  // TODO: We could possibly simplify things if we did read the non-key var list here.
  // We don't need to read the non-key var list.
  nonKeyVarList = null;
}
org.apache.asterix.om.typesATypeTagvalues

Popular methods of ATypeTag

  • serialize
  • isDerivedType
  • equals
  • ordinal
  • isListType
  • toString
  • hashCode
  • name

Popular in Java

  • Reactive rest calls using spring rest template
  • putExtra (Intent)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setScale (BigDecimal)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • JList (javax.swing)
  • Top plugins for Android Studio
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