congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
org.apache.parquet.io.api
Code IndexAdd Tabnine to your IDE (free)

How to use org.apache.parquet.io.api

Best Java code snippets using org.apache.parquet.io.api (Showing top 20 results out of 315)

origin: apache/hive

@Override
public boolean hasDictionarySupport() {
 return wrapped.hasDictionarySupport();
}
origin: apache/hive

@Override
public void addInt(int value) {
 wrapped.addInt(value);
}
origin: apache/hive

@Override
public void addLong(long value) {
 wrapped.addLong(value);
}
origin: apache/hive

 @Override
 public void write(RecordConsumer rc) {
  rc.startMessage();
  rc.startField("list_of_ints", 0);
  rc.startGroup();
  rc.startField("array", 0);
  rc.addInteger(34);
  rc.addInteger(35);
  rc.addInteger(36);
  rc.endField("array", 0);
  rc.endGroup();
  rc.endField("list_of_ints", 0);
  rc.endMessage();
 }
});
origin: apache/hive

 @Override
 public void write(RecordConsumer consumer) {
  for(int i = 0; i < 100; i++) {
   consumer.startMessage();
   consumer.startField("int", 0);
   consumer.addInteger(i);
   consumer.endField("int", 0);
   consumer.endMessage();
  }
 }
});
origin: apache/hive

 @Override
 public void write(Object value) {
  String v = inspector.getPrimitiveJavaObject(value);
  recordConsumer.addBinary(Binary.fromString(v));
 }
}
origin: apache/hive

 @Override
 public void write(Object value) {
  byte[] vBinary = inspector.getPrimitiveJavaObject(value);
  recordConsumer.addBinary(Binary.fromByteArray(vBinary));
 }
}
origin: apache/hive

protected static Binary getBinaryValue(
  boolean isDictionaryEncoding,
  int index) {
 return Binary.fromString(getStr(isDictionaryEncoding, index));
}
origin: apache/hive

@Override
public byte[] readVarchar() {
 // we need to enforce the size here even the types are the same
 return valuesReader.readBytes().getBytesUnsafe();
}
origin: apache/hive

@Override
public void addBoolean(boolean value) {
 wrapped.addBoolean(value);
}
origin: apache/hive

@Override
public void addDouble(double value) {
 wrapped.addDouble(value);
}
origin: apache/hive

@Override
public void addFloat(float value) {
 wrapped.addFloat(value);
}
origin: apache/hive

@Override
public void addBinary(Binary value) {
 wrapped.addBinary(value);
}
origin: apache/hive

@Override
public void setDictionary(Dictionary dictionary) {
 wrapped.setDictionary(dictionary);
}
origin: apache/hive

@Override
public void addValueFromDictionary(int dictionaryId) {
 wrapped.addValueFromDictionary(dictionaryId);
}
origin: apache/hive

 @Override
 public void write(RecordConsumer rc) {
  rc.startMessage();
  rc.startField("list_of_ints", 0);
  rc.startGroup();
  rc.startField("list_of_ints_tuple", 0);
  rc.addInteger(34);
  rc.addInteger(35);
  rc.addInteger(36);
  rc.endField("list_of_ints_tuple", 0);
  rc.endGroup();
  rc.endField("list_of_ints", 0);
  rc.endMessage();
 }
});
origin: apache/hive

 @Override
 public void write(RecordConsumer rc) {
  rc.startMessage();
  rc.startField("list_of_ints", 0);
  rc.addInteger(34);
  rc.addInteger(35);
  rc.addInteger(36);
  rc.endField("list_of_ints", 0);
  rc.endMessage();
 }
});
origin: apache/hive

 @Override
 public void write(Object value) {
  String v = inspector.getPrimitiveJavaObject(value).getStrippedValue();
  recordConsumer.addBinary(Binary.fromString(v));
 }
}
origin: apache/hive

 @Override
 public void write(Object value) {
  String v = inspector.getPrimitiveJavaObject(value).getValue();
  recordConsumer.addBinary(Binary.fromString(v));
 }
}
origin: apache/hive

private void addString(String value) {
 inOrder.verify(mockRecordConsumer).addBinary(Binary.fromString(value));
}
org.apache.parquet.io.api

Most used classes

  • Binary
  • RecordConsumer
    Abstraction for writing records It decouples the striping algorithm from the actual record model exa
  • PrimitiveConverter
    converter for leaves of the schema
  • GroupConverter
    converter for group nodes
  • Binary$ByteArrayBackedBinary
  • Binary$ByteBufferBackedBinary,
  • Binary$FromCharSequenceBinary,
  • Binary$FromStringBinary,
  • Converter,
  • RecordMaterializer,
  • RecordMaterializer$RecordMaterializationException
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