Examples of readSelfDelimUTF8()


Examples of it.unimi.dsi.lang.MutableString.readSelfDelimUTF8()

          command = inputStream.readByte();
          if ( DEBUG ) LOGGER.debug( "Received remote command: " + command );

          switch ( command ) {
          case RemoteTermMap.GET_NUMBER:
            outputStream.writeLong( prefixMap.getLong( s.readSelfDelimUTF8( (InputStream)inputStream ) ) );
            outputStream.flush();
            break;

          case RemoteTermMap.GET_TERM:
            new MutableString( prefixMap.list().get( inputStream.readInt() ) ).writeSelfDelimUTF8( (OutputStream)outputStream );
View Full Code Here

Examples of it.unimi.dsi.lang.MutableString.readSelfDelimUTF8()

            outputStream.writeBoolean( prefixMap.list() != null );
            outputStream.flush();
            break;

          case RemotePrefixMap.GET_INTERVAL:
            interval = prefixMap.rangeMap().get( s.readSelfDelimUTF8( (InputStream)inputStream ) );
            outputStream.writeInt( interval.left );
            outputStream.writeInt( interval.right );
            outputStream.flush();
            break;
View Full Code Here

Examples of it.unimi.dsi.lang.MutableString.readSelfDelimUTF8()

        final DataInputStream rawContentDataInputStream = new DataInputStream( rawContent );
        int nextFieldToRead = 0;
        final MutableString uri = new MutableString();
       
        {
          uri.readSelfDelimUTF8( rawContent ).compact();
        }
       
        @Override
        public void close() throws IOException {
          super.close();
View Full Code Here

Examples of it.unimi.dsi.lang.MutableString.readSelfDelimUTF8()

          case TEXT:
            MutableString word = new MutableString();
            MutableString nonWord = new MutableString();
            do {
              word.readSelfDelimUTF8( rawContent );
              if ( exact ) nonWord.readSelfDelimUTF8( rawContent );
            } while ( word.length() > 0 || ( exact && nonWord.length() > 0 ) );
            break;
          case VIRTUAL:
            final int nfrag = rawContentDataInputStream.readInt();
            for ( int i = 0; i < 2 * nfrag; i++ ) MutableString.skipSelfDelimUTF8( rawContent );
View Full Code Here

Examples of it.unimi.dsi.lang.MutableString.readSelfDelimUTF8()

              MutableString doc = new MutableString();
              MutableString text = new MutableString();
              VirtualDocumentFragment[] fragArray = new VirtualDocumentFragment[ nfrag ];
              for ( int i = 0; i < nfrag; i++ ) {
                doc.readSelfDelimUTF8( rawContent );
                text.readSelfDelimUTF8( rawContent );
                fragArray[ i ] = new AnchorExtractor.Anchor( doc.copy(), text.copy() );
              }
              result = new ObjectArrayList<VirtualDocumentFragment>( fragArray );
            }
            else if ( fieldType( nextFieldToRead ) != FieldType.TEXT ) {
View Full Code Here

Examples of it.unimi.dsi.lang.MutableString.readSelfDelimUTF8()

                    MutableString text = new MutableString();
                    MutableString word = new MutableString();
                    MutableString nonWord = new MutableString();
                    do {
                      text.append( word.readSelfDelimUTF8( rawContent ) );
                      if ( exact ) text.append( nonWord.readSelfDelimUTF8( rawContent ) );
                      else text.append( ' ' );
                    } while ( word.length() > 0 || ( exact && nonWord.length() > 0 ) );
                    fbr = new FastBufferedReader( text );
                    nextFieldToRead++;
                  }
View Full Code Here

Examples of it.unimi.dsi.lang.MutableString.readSelfDelimUTF8()

                }
                nonWord.length( 0 );
               
                if ( exact ) {
                  try {
                    nonWord.readSelfDelimUTF8( rawContent );
                  }
                  catch( EOFException e ) {
                    return true; // TODO: a bit raw
                  }
                }
View Full Code Here

Examples of it.unimi.dsi.lang.MutableString.readSelfDelimUTF8()

          command = inputStream.readByte();
          if ( DEBUG ) LOGGER.debug( "Received remote command: " + command );

          switch ( command ) {
          case RemoteTermMap.GET_NUMBER:
            outputStream.writeLong( termMap.getLong( s.readSelfDelimUTF8( (InputStream)inputStream ) ) );
            outputStream.flush();
            break;

          case RemoteTermMap.GET_TERM:
            new MutableString( termMap.list().get( inputStream.readInt() ) ).writeSelfDelimUTF8( (OutputStream)outputStream );
View Full Code Here

Examples of it.unimi.dsi.lang.MutableString.readSelfDelimUTF8()

          termsFrequencyKeeper.reset();
          if ( exact ) nonTermsFrequencyKeeper.reset();

          while( len-- != 0 ) {
            termsInputStream.position( termOffsets.getLong( termsFrequencyKeeper.decode( documentsInputBitStream.readDelta() ) ) );
            s.readSelfDelimUTF8( termsInputStream );
            fieldContent.append( s );
            if ( exact ) {
              nonTermsInputStream.position( nonTermOffsets.getLong( nonTermsFrequencyKeeper.decode( documentsInputBitStream.readDelta() ) ) );
              s.readSelfDelimUTF8( nonTermsInputStream );
              fieldContent.append( s );
View Full Code Here

Examples of it.unimi.dsi.lang.MutableString.readSelfDelimUTF8()

            termsInputStream.position( termOffsets.getLong( termsFrequencyKeeper.decode( documentsInputBitStream.readDelta() ) ) );
            s.readSelfDelimUTF8( termsInputStream );
            fieldContent.append( s );
            if ( exact ) {
              nonTermsInputStream.position( nonTermOffsets.getLong( nonTermsFrequencyKeeper.decode( documentsInputBitStream.readDelta() ) ) );
              s.readSelfDelimUTF8( nonTermsInputStream );
              fieldContent.append( s );
            }
            else fieldContent.append( ' ');
          }
          return new FastBufferedReader( fieldContent );
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.