Examples of Binary


Examples of org.hivedb.util.functional.Binary

    throw new RuntimeException(String.format("Class %s not supported", clazz.getSimpleName()));
  }
 
  public static Binary getMinFunction(final Class<?> clazz) {
   
    return new Binary() {
      public Object f(Object t1, Object t2) {
        if (isInteger(clazz))
          return Math.min((Integer)t1, (Integer)t2);
        if (isLong(clazz))
          return Math.min((Long)t1, (Long)t2);
View Full Code Here

Examples of org.hsqldb.types.Binary

                    if (!(o instanceof byte[])) {
                        throw Util.sqlException(
                            Trace.error(Trace.INVALID_CONVERSION));
                    }

                    o = new Binary((byte[]) o, !connection.isNetConn);
                    break;

                case Types.DATE :
                    if (o instanceof java.util.Date) {
                        long t = HsqlDateTime.getNormalisedDate(
View Full Code Here

Examples of org.infinispan.schematic.document.Binary

    }

    @Test
    public void shouldRoundTripSimpleBsonObjectWithBinary1() {
        byte[] data = new byte[] {0x16, 0x00, 0x00, 0x00, 0x02, 0x68, 0x65, 0x6c};
        input = new BasicDocument("foo", new Binary(data));
        assertRoundtrip(input);
    }
View Full Code Here

Examples of org.jboss.dna.graph.property.Binary

    @SuppressWarnings( "unused" )
    private byte[] getContent( Object[] objs ) {
        byte[] content = null;
        for (Object object : objs) {
            if (object != null && object instanceof Binary) {
                Binary buf = (Binary)object;
                content = buf.getBytes();
            }
        }
        return content;
    }
View Full Code Here

Examples of org.modeshape.jcr.api.Binary

                    // Try to get the MIME type for the binary value ...
                    org.modeshape.jcr.value.Property dataProp = node.getProperty(JcrLexicon.DATA, cache);
                    if (dataProp != null) {
                        Object dataValue = dataProp.getFirstValue();
                        if (dataValue instanceof Binary) {
                            Binary binaryValue = (Binary)dataValue;
                            // Get the name of this node's parent ...
                            String fileName = null;
                            NodeKey parentKey = node.getParentKey(cache);
                            if (parentKey != null) {
                                CachedNode parent = cache.getNode(parentKey);
                                Name parentName = parent.getName(cache);
                                fileName = stringFactory().create(parentName);
                            }
                            String mimeType = binaryValue.getMimeType(fileName);
                            if (mimeType != null) {
                                node.setProperty(cache, propertyFactory.create(JcrLexicon.MIMETYPE, mimeType));
                            }
                        }
                    }
View Full Code Here

Examples of org.openquark.cal.internal.javamodel.JavaExpression.OperatorExpression.Binary

     * @see org.openquark.cal.internal.runtime.lecc.JavaModelVisitor#visitBinaryOperatorExpression(org.openquark.cal.internal.runtime.lecc.JavaExpression.OperatorExpression.Binary, java.lang.Object)
     */
    public JavaExpression visitBinaryOperatorExpression(Binary binaryOperator,
            T arg) {
       
        return new Binary (
                binaryOperator.getJavaOperator(),
                (JavaExpression)binaryOperator.getArgument(0).accept(this, arg),
                (JavaExpression)binaryOperator.getArgument(1).accept(this, arg));
    }
View Full Code Here

Examples of parquet.io.api.Binary

  @Override
  public Binary readBytes() {
    int prefixLength = prefixLengthReader.readInteger();
    // This does not copy bytes
    Binary suffix = suffixReader.readBytes();
    int length = prefixLength + suffix.length();
   
    // We have to do this to materialize the output
    if(prefixLength != 0) {
      byte[] out = new byte[length];
      System.arraycopy(previous.getBytes(), 0, out, 0, prefixLength);
      System.arraycopy(suffix.getBytes(), 0, out, prefixLength, suffix.length());
      previous =  Binary.fromByteArray(out);
    } else {
      previous = suffix;
    }
    return previous;
View Full Code Here

Examples of tree.expression.Binary

                  // Haxe.g:285:33: BARBAR ^ logicAndExpr
                  {
                  BARBAR180=(Token)match(input,BARBAR,FOLLOW_BARBAR_in_logicOrExpr2985); if (state.failed) return retval;
                  if ( state.backtracking==0 ) {
                  BARBAR180_tree =
                  new Binary(BARBAR180)
                  ;
                  root_0 = (Object)adaptor.becomeRoot(BARBAR180_tree, root_0);
                  }

                  pushFollow(FOLLOW_logicAndExpr_in_logicOrExpr2991);
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.